May 30, 2009

Restart/Shutdown using powershell

Actually, this is very simple to do in powershell with some built in cmdlets (note this is v2 CTP3 only):
Restart-Computer -Computername (Get-Content c:\list.txt) -throttlelimit 5

Shutdown-Computer –Computername (Get-Content c:\list.txt) –force –throttlelimit 5
Just be careful that you don't take your network down.

No comments:

Post a Comment