First, countdown shutdown:
Specifies that the system automatically shuts down after 10 minutes: Click "Start → run", enter the command "shutdown-s-T 60" (note: quotation marks are not entered, there is a space between the parameters, 60 units is seconds), click the "OK" button.
Second, timed shutdown:
Specifies that the system automatically shuts down at a certain time (such as 12:00): Click "Start → run" and enter the command "at Shutdown-s".
Third, cancel the timer shutdown:
Click "Start → run" and enter the command "Shutdown-a".
Shutdown.exe the parameter meaning:
-S: Indicates that the local computer is shut down.
-A: Indicates cancel shutdown operation,
-F: Forcibly closing the application
-m//Computer name: Controlling remote computer
-I: Displays the graphical user interface, but must be the first option of shutdown
-L: Log off the current user
-R: Shutdown and restart
-T time: Set shutdown countdown
-C "Message content": Enter the message content in the Shutdown dialog box (cannot exceed 127 characters)
http://blog.csdn.net/lchen_fhhls/article/details/3972378