This article introduces how to shut down and restart the shutdown.exe program during windows shutdownrealtime. This program is located in the Windows \ System32 folder. If you want Windows to be the same, copy shutdown.exe to the system directory.
Shutdown.exe-a cancel Shutdown
Shutdown.exe-s Shutdown
Shutdown.exe-f force close the application
Shutdown.exe-m \ computer name Control Remote Computer
Shutdown.exe-I: displays the graphical user interface, but must be the first parameter of Shutdown.
Shutdown.exe-l log out of the current user
Shutdown.exe-r shutdown and restart
Shutdown.exe-t time setting shutdown countdown setting the timeout before shutdown is set to xxx seconds. For windows 2003, the valid range is 0-600. The default value is 30.
Shutdown.exe-c "message content": Enter the message content in the shutdown dialog box (cannot exceed 127 characters)
Practical Application
Instance: at shutdown-s-t 20 is to shut down the host at and countdown to 20 seconds.
You must enable the "Task Scheduler" service before using it.
Depends on your needs.
-F: forcibly close the application.
-M \ computer name: controls the remote computer.
-I: displays the graphic user interface, but must be the first option of Shutdown.
-L: log out of the current user.
-R: Shut down and restart.
-T time: Set the shutdown countdown.
-C "message content": Enter the message content in the shutdown dialog box (cannot exceed 127 characters ).