PowerShell Workflow User Manual
How to use PowerShell Workflow?
Open PowerShell Workflow from Start Menu -> PowerShell Workflow -> PowerShell Workflow
Drag the PowershellActivity on the Designer surface and connect from start to the new activity
Set Following properties for the activity
Continue On Error: Whether you want to continue running activities followed by this activity
Display Name: Given name to the activity
Execute in Isolated Environment: This activity will run under isolated environment apart of main execution environment. This is similar to opening new PowerShell window to execute the command.
Is Script File: Check the value if you want to run the command from a file. In this case you need to set the Script File property with the full file path. For e.g. “D:\mypowershellfile.ps1”
Result: The result returns System.Collections.ObjectModel.Collection<System.Management.Automation.PSObject>. This collection can be iterated to perform further operations with the result of previous activity.
Note: A variable needs to be declared from the Variables section of the designer to receive the result value.
Script File: The file from where PowerShell commands with be loaded and executed. E.g. “D:\mypoewrshellfile.ps1”
Statement: The PowerShell statement to execute. The statement will only execute if “Is Script File” property is unchecked.
Keep on adding more activity to automate the process.