PowerShell Script to Restart multiple Remote Computers
Right before Christmas, PowerShell team released Windows PowerShell V2 Community Technology Preview 3 (CTP3). There is a new cmdlets caught my eye, see below
gc c:\Temp\ServerList.txt |%{Restart-computer –computername $_ –force}
It gets a list of computers and force the immediate restart!
It’s very handy and also can be very dangerous, you could potentially reboot every single computer in your company!
Get-QADComuter|%{Restart-Computer –computername $_ –force –throtllelimit 1-}