Add a Parallel Block to a Workflow
suggest changeworkflow DoSomeWork {
parallel {
Get-Process -ComputerName server01
Get-Process -ComputerName server02
Get-Process -ComputerName server03
}
}
One of the unique features of PowerShell Workflow is the ability to define a block of activities as parallel. To use this feature, use the parallel
keyword inside your Workflow.
Calling workflow activities in parallel may help to improve performance of your workflow.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents