How to run a command against multiple servers simultaneously in Powershell
问题 I am looking for a way to restart three services on multiple servers simultaneously. I know how to restart services against a list of servers by using a loop but as I have many servers it would take a long time to wait for each service on each server to restart in a sequential order. Is there a way to send restart service command to all servers at once instead of waiting for each server? 回答1: You could try to work with jobs. Jobs are run in the background and you have to retrieve them with