After entering the command you will receive a small notification in the right corner of the screen, indicating the time the computer will turn off.
Notice that the time will turn off the computer
If you need to cancel the timer to turn off the computer you just created, simply press Windows + R and then enter the following command or enter the command into the search bar on Windows 10, Windows 7, Windows XP:
shutdown -a
Cancel the timer command to turn off the computer
Then the computer shutdown timer command message will be canceled as shown below:
The computer shutdown timer command has been canceled
To create the Shutdown.exe shortcut, do the following:
Step 1: Right click on the desktop> New> Shortcut
Step 2: Browse to the Shutdown.exe file that usually has the C: WindowsSystem32Shutdown.exe path> Next
Step 3: Name the shortcut> Finish
Step 4: Right-click the newly created shortcut and select Properties
Step 5: In the Target box enter the following command to shutdown
Step 6: Enter -t xx after the above command to schedule a shutdown (xx is the number of seconds waiting to shutdown)
Step 7: Add -c "text" after the above command to say something when the computer is turned off
The following operations will appear as follows:
Step 1: Select the Shortcut in the menu that appears
Step 2: Find the shutdown.exe file
Step 3: Click Finish to complete
Step 4-7: Order entry -s -t 1020 -c "Say goodbye"
(automatically shutdown after 1020 seconds and the message "Say goodbye")
Notice of the system when double-clicking the shortcut file to turn off the computer
If you combine the shortcut Shutdown.exe just created with the Windows Task Scheduler, you can schedule a shutdown of your computer, so you won't have to worry about turning off your computer at the end of the day. This is especially useful for computer managers who are full of computers, if they turn off the computer normally, it will take a long time.
To schedule a computer shutdown, do the following: Go to Control Panel , open Scheduled Tasks , then double-click Add Scheduled Task . In the Scheduled Task Wizard dialog box, click Next , then select the Browse button and navigate to the file: Windowssystem32shutdown.exe . Put a name you want and select the Daily option. Choose the time of day you want the computer to turn off. After that, a dialog box will appear asking for a username and password; You can fill or skip.
Before pressing the Finish button to finish, please put a checkmark in the Open advanced properties for this task when I click Finish button . This way you can set additional options for timer shutdown. In the dialog box that appears, in the Run box, append –s to the command line and -t xx statements (xx is the number of seconds to turn off the machine) and -c "the word you want" (for example, say 'Goodbye 'according to this article) (should know that the command -t xx and -c ' the word you want 'can be ignored).
Before clicking the OK button to close the dialog box, click your mouse on the Settings tab and put a checkmark in the Only start the task box if the computer has been idle for at least:, then set the time you find appropriate for you.
How to schedule a computer shutdown according to the above instructions for computers running Windows XP. To set the time to turn off the computer in Windows Vista, the steps are similar. Instead of opening Scheduled Tasks in Control Panel, you can select Task Scheduler from the Start menu, in the Run box, type taskschd.msc . Then, in the right pane, click Create Task .
In the dialog box that appears, give the name you want in the General tab. In the Triggers tab, create New trigger . Select On a schedule , and specify the time, then place a checkmark in the Enabled box at the bottom. From the Actions tab, select Start a program , navigate to the file: C: Windowssystem32Shutdown.exe , and set the command like you would with Windows XP ( -s to shutdown, -r to reboot and -l to log off) . Finally, in the Conditions tab, put a checkmark in the Start the task only if the computer is idle for: box , and select a time you find reasonable for you.
If you're using Windows 10, you can refer to other ways to turn off another computer at: Instructions for scheduling a Windows 10 computer shutdown