Executing Workflows

Before executing a workflow, ensure that you have associated the workflow to the devices. To execute a worklow

  1. Click on Workflows from the left pane. All the created workflows are listed.
  2. Click against the Execute icon on the respective workflow.
  3. There is also an option to execute the workflow from the device page. Go to Device page > Workflow > click against the execute icon on the respective workflow.  

 

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.
  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:

    Set objShell = CreateObject("Wscript.Shell")
    objShell.Run("powershell.exe -noexit c:\scripts\test.ps1")

  4. Click OK.
  5.