Automation with PowerShell Workflows

Did you know that PowerShell has Workflow capabilities? If not, you are not the only one. PowerShell Workflows are a more powerful way to do automation and is used for long-running processes that needs to survive restarts and may require persistence. Most of the times you can manage most with a simple script but in some cases you need a more advanced workflow engine. Best of all, it is free!

When is PowerShell Workflows a good idea?
  • Long-running activities.
  • Repeatable activities.
  • Frequently executed activities.
  • Running activities in parallel across one or more machines.
  • Interruptible activities that can be stopped and re-started.

Here are some workflow related functions / featues:
  • Workflow
  • Parallel
  • Foreach –parallel
  • Sequence
  • InlineScript
  • Checkpoint-workflow
  • Suspend-workflow

Onify is a perfect tool and interface for either running synchronous PowerShell scripts or asynchronous PowerShell workflows.

For more information about PowerShell workflows, please read https://docs.microsoft.com/en-us/system-center/sma/overview-powershell-workflows.