Workflow with Input Parameters
suggest changeWorkflows exist only in Windows PowerShell 3.0 through 5.1. Like functions, they can take input parameters, optionally typed. Put param directly after the workflow declaration. Get-Process -ComputerName is available in that version.
workflow DoSomeWork {
param (
[string[]] $ComputerName
)
Get-Process -ComputerName $ComputerName
}
DoSomeWork -ComputerName server01, server02, server03
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents