pre-scheduled shut down

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Is there any way to shut down the system at a specific
time automatically without using additional resources like
Shutdown.exe utility from the Windows 2000 Resource Kit?
 
Using WMI and a VBS script

set osSet = GetObject("winmgmts:").InstancesOf("Win32_OperatingSystem")
for each os in osSet
os.Win32Shutdown 1
' coment the above and uncoment the below for forced shutdown
' os.Win32Shutdown 4
next
 
Back
Top