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
 

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

Similar Threads

Converting Filesystem trough VBScript not working 13
reboot? 3
Reboot specific systems WMI script 0
Set previlege with Windows Management 3
logon and move cn script 2
HTA's in Vista 3
File format 1
How to code this? 5

Back
Top