shutting down PCs in batch

  • Thread starter Thread starter Reggie
  • Start date Start date
R

Reggie

Looking for an easy way to script the shutdown of
multiple PCs. PC names contained in a text file.

Any ideas?
 
Hi Reggie,

This vbs script will shut down a PC. (Warning, it will shut down, even
if you have programs running and_have not saved_documents in them!!)


Set wmi = GetObject("winmgmts:{(Shutdown)}")
set objset = wmi.instancesof("win32_operatingsystem")
for each obj in objset
set os = obj : exit for
next
os.win32shutdown (8)


Good luck
 
Back
Top