Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Rebooting multiple servers as same time via PowerShell?

$
0
0

We want to reboot 30+ servers at the same time.  This heart of the matter comes down to this script.

get-content c:\Servers.txt | %{Restart-computer –computername $_ –force}

 

But is using PowerShell really a good solution to the problem?  I don't know what version of Powershell (if any) is  running on each remote server, what firewall issues we may encounter, either.  I need a "rock solid" approach that does the job and hopefully spares me from needing to setup a "reboot" script on each individual server.

TIA,

Barkingdog

 



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>