General discussion

Locked

shut down script needed

By kmerrillt ·
Hi. I'm looking for a script to use on XP Home to shut
down the computer using the task scheduler. There are
presently 2 profiles on the pc. Owner who has admin
rights and family which does not.
I want to be able to schedule the pc to shut down at a
specified time while FAMILY is logged on. I've tried the
old TSSHUTDOWN but it only works under OWNER. I've tried
changing the RUN AS as well as setting it up under both
both profiles. No luck. With past operating systems you
could use a system batch file. This is not recognized in
XP.
Also, is there a way to change the default coding in
TSSHUTDOWN? When it runs it gives the user a chance to
abort within 60 seconds. Kids aren't stupid....
Any help here would be nice. I've run out of ideas.

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Joseph Moore In reply to shut down script needed

XP does come with SHUTDOWN.EXE

Here is the help screen on it:

C>shutdown /?
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "
omment"] [-d up:xx:yy]

No args Display this message (same as -?)
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computername Remote computer to shutdown/restart/abort
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Forces running applications to close without wa
ning
-d [p]:xx:yy The reason code for the shutdown
u is the user code
p is a planned shutdown code
xx is the major reason code (positive integer l
ss than 256)
yy is the minor reason code (positive integer l
ss than 65536)

Collapse -

by Joseph Moore In reply to

Try running it in a Scheduled Job to see if it will suit your needs.

hope this helps

Collapse -

by kmerrillt In reply to

Poster rated this answer.

Collapse -

by kmerrillt In reply to shut down script needed

This question was closed by the author

Back to Windows Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums