Q: When I run Windows PowerShell Invoke-Command on more than 32 remote servers, the command runs only on the first 32 servers and queues the others. How can I change this?
Use PowerShell to change the concurrent limit of remote command executions.
John Savill
June 24, 2012
1 Min Read
A: The queuing of commands is by design, done to control the amount of concurrent remote command executions. However, you can change the concurrent limit by using the -ThrottleLimit parameter for Invoke-Command to increase it. Here's an example of how to use it:
Invoke-Command -ThrottleLimit 64 -ComputerName a,b,c -ScriptBlock {command}
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like