Multi-Thread in PowerShell
This command allow to launch the same script many times at the same time.
In this example, $serverslist contains 4 server names that the cmdlet invoke-command will send in argument to myscript.ps1, the –asjob parameter will free us of the sequential processing time of each execution of the invoke-command (just see the screenshot below)
You must be logged in to post a comment.