OpManager's IT workflow automation 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.
Before executing a workflow, ensure that you have associated the workflow to the respective devices.
Click against the "Execute" icon on the respective workflow, and then select the devices in which the workflows must be executed.
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.
Go to Workflow > New Workflow > External Actions > Execute Windows Script.
Drag and drop the Execute Windows Script action into the workspace. A configuration pop-up will appear. Fill in the following fields:
Destination Device — Choose where the script should run:
${DeviceName} to resolve it dynamically from the triggering device.cscript //Nologo ${FileName}.vbsIf Remote was selected in the previous step, ensure the OpManager monitoring agent is installed and running on the target device. The script is sent and executed through the agent — the device must be reachable and agent-monitored for remote execution to succeed. Also ensure that the communication between the Monitoring Agent and the OpManager Server is happening seamlessly for effective script execution.
In the Script Body field, enter the PowerShell script below. This VBScript wrapper launches PowerShell and runs your .ps1 file:
Set objShell = CreateObject("Wscript.Shell")
objShell.Run("powershell.exe -noexit c:\scripts\test.ps1")To gain in-depth insights into OpManager's automated workflows, explore the following help documents.