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.
Thanks in advance,
Regards,
Vi
Solved! Go to Solution.
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.
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
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
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.
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.
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
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
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.
Thanks Kaif for your valuable suggestions
Thanks MichaelAnnis for your help