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!