web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / A very simple flow of ...
Power Automate
Answered

A very simple flow of always failing computer restart

(0) ShareShare
ReportReport
Posted on by 13

Hello everyone,

 

I have set up a really very simple flow to restart a computer at 3 a.m.
This flow starts well, the computer starts well but the flow is still in failure (and therefore is deactivated because of the many failures)
How to carry out a relaunch and also be able to successfully complete the flow?

 

sigalou_1-1637996564493.png

 

 

sigalou_0-1637996405763.png

 

 

Thanks for your help.

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Can you setup the second part of the flow as a separate flow? Set it up to go on any computer restart (or startup).

     

    Begin the flow with (if current time is NOT between 3am and 310am, exit flow).  This will stop the flow from continuing on any other time that is not intended. 

  • sigalou Profile Picture
    13 on at

    there is no second part of the flow, just a single command.

  • Verified answer
    MichaelAnnis Profile Picture
    5,727 Moderator on at

    Right.  This flow is always going to fail by execution.  The computer shutting down breaks the flow. If you need confirmation that the flow was successful, I would create a second flow upon startup to confirm that startup happened and get a successful result that way. 

    If you just want it to not error out: instead of using the PAD command, I suggest you restart the computer via CMD (by default this has a 1 minute delay). You can read more about it here:  

    https://www.google.com/amp/s/windowstect.com/how-to-restart-reboot-windows-via-command-line-cmd-exe/%3Famp

     

    Add an “Exit Flow successfully” to complete the flow before the computer actually restarts.

  • sigalou Profile Picture
    13 on at

    Great idea, I will try with CMD
    I'll keep you informed

     

  • sigalou Profile Picture
    13 on at

    Excellent !!!!!!!!
    Thank you very much, running the :

     

    shutdown /r

     

    from the command line and for safety's sake adding an end of script successfully works PERFECT !!
    Thank you
    Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 258 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 198 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard