Run Workflow as a Background Job
suggest changePowerShell Workflows are inherently equipped with the ability to run as a background job. To call a workflow as a PowerShell background job, use the -AsJob
parameter when invoking the workflow.
workflow DoSomeWork {
Get-Process -ComputerName server01
Get-Process -ComputerName server02
Get-Process -ComputerName server03
}
DoSomeWork -AsJob
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents