Automatic Shutdown

M

Mike

I am wondering if there is a way to have Windows 2000 pro.
shutdown at a scheduled time. For example, we have a five
user peer to peer network; employee's leave at 5pm and our
backups run at 5:15pm. I'd rather not have the machines
on all night, so I would like at 6pm for the PC's to shut
themselves down. Is there a utility or script that can do
this?? Thanks in advance for any help with this.
 
O

Oli Restorick [MVP]

Hi there

Head off to www.sysinternals.com and look for PSTools in the NT/2K/XP/2003
utilities section. One of the PSTools is called psshutdown.exe. Copy this
into the c:\winnt\system32 directory on each machine.

at 18:00 /every:M,T,W,Th,F,Sa,Su "psshutdown -k -s -t:5"

Ensure that the Task Scheduler service is running and set for automatic
startup.

Regards

Oli
 
P

Pegasus \(MVP\)

In this command

at 18:00 /every:M,T,W,Th,F,Sa,Su "psshutdown -k -s -t:5"

the double quotes are not only unnecessary; they actually
prevent the job from running, because the Task Scheduler
will look for a file called

"c:\winnt\system32\psshutdown -k -s -t:5.exe"

This syntax should work:

at 18:00 /every:M,T,W,Th,F,Sa,Su psshutdown.exe -k -s -t:5
 
O

Oli Restorick [MVP]

Thanks for the correction.

Oli


Pegasus (MVP) said:
In this command

at 18:00 /every:M,T,W,Th,F,Sa,Su "psshutdown -k -s -t:5"

the double quotes are not only unnecessary; they actually
prevent the job from running, because the Task Scheduler
will look for a file called

"c:\winnt\system32\psshutdown -k -s -t:5.exe"

This syntax should work:

at 18:00 /every:M,T,W,Th,F,Sa,Su psshutdown.exe -k -s -t:5
 

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