How to reboot a 2000 server everyday by Task Scheduler

  • Thread starter Thread starter Dave Patrick
  • Start date Start date
Hi,

How to reboot a 2000 server everyday by Task Scheduler

I want get a step-by-step help

Thank Advance

Jonathan
 
Using WMI and a VBS script

'Shutdown.vbs
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
 
Thanks everyone

I have finished this function using psshutdown.

Because my ISA 2000 find an intruder from external

so I want to reboot this server every night.

Jonathan
 
Hi,

You are right, maybe rebooting is unnecessary

I find an intruder from external again this morning

Jonathan
 
Back
Top