PowerShell Workflows

suggest change

Versions

Windows PowerShell 3.0 through 5.1. PowerShell 6 and later do not include workflows.

Introduction

PowerShell Workflow was introduced in Windows PowerShell 3.0. Workflow definitions look very similar to PowerShell function definitions, but they execute in the Windows Workflow Foundation environment instead of directly in the PowerShell engine.

Several unique out-of-the-box features are included with the workflow engine, most notably job persistence.

Remarks

PowerShell Workflow is supported only on Windows, in Windows PowerShell 3.0 through 5.1. PowerShell 6 and later, including PowerShell 7 on Windows, do not support it.

When authoring a PowerShell Workflow, keep in mind that workflows call activities, not cmdlets. You can still call cmdlets from a PowerShell Workflow, but the Workflow Engine will implicitly wrap the cmdlet invocation in an InlineScript activity. You can also explicitly wrap code inside of the InlineScript activity, which executes PowerShell code; by default the InlineScript activity runs in a separate process, and returns the result to the calling Workflow.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents