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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top