powershell - Running remote power shell scripts in parallel -


i want call 4 different powershell scripts on 4 different remote servers in parallel. them execute @ same time , not wait first remote script execution complete before next job runs.

one solution have considered call batch file in turn call 4 remote scripts because invoke-command call wait called script complete.

i new in scripting. please let me know way possible.

thanks, hanu

you want use background jobs in powershell. check out -asjob parameter on invoke-command, , read get-help about_jobs documentation details on starting jobs , gathering output again when done running.