Shutdown Computer Action in Desktop Flow using Microsoft Power Automate

Microsoft Power Automate, is a software by Microsoft for automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. More Details https://powerautomate.microsoft.com/en-us/

Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate all repetitive desktop processes.

 The workstation group of actions provides a collection of actions that automate some essential functionalities of your workstation. To Shutdown, Restart, Suspend, Hibernate the system, we can use the Shutdown Computer action. Although a desktop flow containing the Shutdown computer action is set to shut down the machine, some unrelated factors, such as other running Windows processes, may prevent it from achieving it.

When you run the Shutdown computer action through the flow designer, the action prompts you to verify that you want to shut down the computer. However, the action doesn't require confirmation when the flow is run through the console or cloud flows. In all cases, the action will terminate the flow.

Reading this article, you can learn how to Shutdown, Restart, Suspend, or Hibernate the system using Shutdown Computer action in a workstation group of actions with Desktop flow using Microsoft Power Automate.

The following important tools are required for developing Microsoft Power Automate,

  1. Windows 10/11 (Recommended)
  2. Power Automate Desktop - Download the Power Automate installer

Now we can discuss step-by-step App development.

Step 1

Open Microsoft Power Automate ->  New Flow

Next, Give the Flow name as PADShutdown, Click the Create button,

After that, we are able to see the Desktop flow,

Step 2

For Testing Shutdown Computer action in Workstation group of actions,

Shutdown Computer action has 4 different types of action to perform: Shutdown, Restart, Suspend and Hibernate,

Add the Shutdown Computer action, and Set the Action to perform the parameter as Shutdown, Click Save Button.

Now, Save the PADShutdown Desktop Flow,

Step 3

Now we can run your PADShutdown Desktop Flow in Microsoft Power Automate, 

The output of the PADShutdown, Notify the user for shutdown the machine,

Summary

Now, you are successfully tested Shutdown Computer action in Desktop flow – PADShutdown in Microsoft Power Automate.


Similar Articles