# Executing Workflows [![Workflow automation](https://www.manageengine.com/network-monitoring/images/cisco-aci-topology.jpg)](https://www.youtube-nocookie.com/embed/gijlHhIkTzg) OpManager's [IT workflow automation](https://www.manageengine.com/network-monitoring/it-workflow-automation.html) allows you to automate repetitive tasks and processes efficiently. By leveraging a simple drag-and-drop interface, you can easily create a workflow tailored to your specific needs and configure the criteria for its execution. This documentation will guide you through the steps to execute a workflow in OpManager. - [Executing Workflows](#to-execute-a-workflow) - [How can I run a powershell script using Execute Windows Script task in Workflow?](#how-can-i-run-a-powershell-script-using-execute-windows-script-task-in-workflow) ## To execute a workflow Before executing a workflow, ensure that you have associated the workflow to the respective devices. 1. Click on the **Workflow** tab. Here, all the created workflows will be listed. 2. Click against the "Execute" icon on the respective workflow, and then select the devices in which the workflows must be executed. ![Executing workflow in OpManager: All workflows](https://www.manageengine.com/network-monitoring/help/images/workflow-exec-1.png) 3. There is also an option to execute the workflow from the respective device's snapshot page. Go to the Device snapshot page, and then click on the "Workflow" icon at the top-right corner of the page, and then click on the "Execute" option of the respective workflow. ![Executing workflow in OpManager: Associate workflows](https://www.manageengine.com/network-monitoring/help/images/workflow-exec-2.png) ## How can I run a powershell script using Execute Windows Script task in Workflow? 1. Go to **Workflow > New Workflow > External Actions > [Execute Windows Script](https://www.manageengine.com/network-monitoring/help/workflow-conditions-actions.html#executewindowsscript)**. ![Executing workflow in OpManager: Drag and drop workflow](https://www.manageengine.com/network-monitoring/help/images/workflow-exec-3.png) 2. Drag and drop the **Execute Windows Script** action into the workspace. In the pop-up, configure the **Name**, **Destination Device** and **Command Line**. 3. In **Script Body**, enter the powershell script shown below: ```vbscript Set objShell = CreateObject("Wscript.Shell") objShell.Run("powershell.exe -noexit c:\scripts\test.ps1") ``` ![Executing workflow in OpManager: Execute windows script](https://www.manageengine.com/network-monitoring/help/images/workflow-exec-4.png) 4. Click **OK.** To gain in-depth insights into OpManager's automated workflows, explore the following help documents. - [Workflow variables](https://manageengine.com/network-monitoring/help/workflow-variables.html) - [Workflow](https://www.manageengine.com/network-monitoring/help/workflow.html) - [Add a new workflow](https://www.manageengine.com/network-monitoring/help/add-workflow.html) - [Workflow conditions and actions](https://www.manageengine.com/network-monitoring/help/workflow-conditions-actions.html) - [Workflow execution logs](https://www.manageengine.com/network-monitoring/help/workflow-execution-logs.html)