Automatic Shutdown

  • Thread starter Thread starter Mike
  • Start date Start date
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.
 
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
 
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
 
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
 
Back
Top