Blog
By Tommy Gunn on 8/8/2009 5:18:23 AM • Rank (3397) • Views 3467
0

0
powershell2xa4 This handy one-liner will reboot a list of computers contained in a text file.

get-content c:\computers.txt | ForEach-Object { gwmi win32_operatingsystem -ComputerName $_  | ForEach-Object { $_.reboot() }}

 

I’ll follow up with some cool scripts for ConfigMgr 2007 that build on this.

Comments - Comment RSS


Who Viewed
Who Reviewed
Categories
Related Pages
Shortened URL
http://tinyurl.com/mwccrk

Top Contributors
Featured Members
Pete Zerger
Points: 65622
Level: System Center Expert
Tommy Gunn
Points: 42748
Level: System Center Expert
Simon Skinner
Points: 40804
Level: System Center Expert
Stefan Koell
Points: 28999
Level: System Center Expert
Andreas Zuckerhut
Points: 27734
Level: System Center Expert