Workflow with Input Parameters

suggest change

Workflows 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

Feedback about page:

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



Table Of Contents