13 Years
Discussion Span
Last Post by Mark2011

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Dominick>shutdown
Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "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 war
-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 le
ss than 256)
yy is the minor reason code (positive integer le
ss than 65536)

C:\Documents and Settings\Dominick>

those are the switches for the shutdown command. you can from the control panel set up a scheduled task to execute the shutdown command at a certain time of day.


Didn't the thread subject ask how to do it automatically?

how do i auto-shut down windows XP?

In the Control Panel go to Scheduled Tasks launch the wizard and where it gives you the option to browse go to C:\windows\system32 for the name of the file you can use the shutdown executable as mentioned above and schedule it to run whenever you want. Just don't forget it's there!



The XP shutdown utility can programmed to schdeule but you must use the SYSTEM acount to run the task in Windows task scheduler. If you use your own account it is unlikely to run.

Just type SYSTEM and Windows will prepend the full account name NT AUTHORITY\SYSTEM. Then it will run just fine.

No need for 3rd party tools to download, Windows has it all ready to use.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.