How to reboot a 2000 server everyday by Task Scheduler

J

Jonathan

Hi,

How to reboot a 2000 server everyday by Task Scheduler

I want get a step-by-step help

Thank Advance

Jonathan
 
P

Paul R. Sadowski

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
 
B

Bill Stewart

Jonathan said:
How to reboot a 2000 server everyday by Task Scheduler

I'll ask the larger question: Why do you need to reboot it every night?

Bill
 
J

Jonathan

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
 
J

Jonathan

Hi,

You are right, maybe rebooting is unnecessary

I find an intruder from external again this morning

Jonathan
 

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

Top