Schedule this VBScript or use shutdown.exe from the resource kit.
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\.\r oot\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
ObjOperatingSystem.Reboot()
Next
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect.
"Tony" wrote:
| Hi all
|
| I would like to know if you can schedule a win2k server to reboot itself
at
| a specified date and time. I would like to be able to reboot our server
| automatically every couple weeks.
|
| Thanks
| Tony
|
|