cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
av00
Frequent Visitor

Is there any way to unattended shutdown my PC in Power Automate Desktop?

I tried on 2 PCs. and both are showing the below confirmation message. I also enabled the "force" option as well but it is not working. I don't want a confirmation box. I want my PC to shut down automatically once the action executes. How to fix it. Please help.

b0ae5c92ad90351147406eef9011f5a5.png

Thanks in advance,

Regards,
Vi

3 ACCEPTED SOLUTIONS

Accepted Solutions
MichaelAnnis
Super User
Super User

Try a command line shutdown with delay and force errors. This will allow it to report back successful that it sent the command line and then shut down after the bot is finished. 

View solution in original post

Kaif_Siddique
Impactful Individual
Impactful Individual

Hi @av00 ,

 

The action doesn't require confirmation when the flow is run through the console or the portal. In all cases, the action will terminate the flow. Refer this link for more details: Workstation - Power Automate | Microsoft Learn

Kaif_Siddique_0-1663423889074.png

Force Shutdown or Restart from Command Line

https://blog-archive.josephcs.com/how-to-force-shutdown-or-restart/#main_content

 

To shutdown computer after 120 sec : shutdown -s -t 120

https://www.youtube.com/watch?v=ihRE6kGmDIA

 

If you like my response, please give it a Thumbs Up.
If this helps, please Accept as solution.

 

Regards

Kaif

View solution in original post

Pstork1
Dual Super User
Dual Super User

As @Kaif_Siddique points out the prompt is only used when you are in the PAD designer.  When you run the flow in production you will not be prompted.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

6 REPLIES 6
MichaelAnnis
Super User
Super User

Try a command line shutdown with delay and force errors. This will allow it to report back successful that it sent the command line and then shut down after the bot is finished. 

Kaif_Siddique
Impactful Individual
Impactful Individual

Hi @av00 ,

 

The action doesn't require confirmation when the flow is run through the console or the portal. In all cases, the action will terminate the flow. Refer this link for more details: Workstation - Power Automate | Microsoft Learn

Kaif_Siddique_0-1663423889074.png

Force Shutdown or Restart from Command Line

https://blog-archive.josephcs.com/how-to-force-shutdown-or-restart/#main_content

 

To shutdown computer after 120 sec : shutdown -s -t 120

https://www.youtube.com/watch?v=ihRE6kGmDIA

 

If you like my response, please give it a Thumbs Up.
If this helps, please Accept as solution.

 

Regards

Kaif

Pstork1
Dual Super User
Dual Super User

As @Kaif_Siddique points out the prompt is only used when you are in the PAD designer.  When you run the flow in production you will not be prompted.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
av00
Frequent Visitor

Thanks, Pstork1 for your valuable suggestion 

Thanks Kaif for your valuable suggestions

Thanks MichaelAnnis for your help

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,270)