Name of reboot program?

  • Thread starter Thread starter Dave Patrick
  • Start date Start date
D

Dave Patrick

This VBScript should work. Use task scheduler to schedule it.

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\.\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next
 
I want to schedule a reboot of my win 2000 box at a set time - any ideas
what the name of it is? - seem to remember reading somewhere it's in the
"option pack"? - but this might have been for nt 4!

thanks
 
Back
Top