How To Shutdown Or Restart Windows 10 PC Using CMD
Suppose you are downloading a software on your PC and you need to leave your computer on for several hours, but you want it to shut down once your downloading completed, if you are in this situation then we have a simple solution. You don’t need any third-party software, and it will only take a minute or two to set up.
It’s very useful to learn how to use command line to shutdown or restart a Windows 10 computer. Or even you can create a timer also.
STEP 1. Start->Run->CMD;
STEP 2. Type “shutdown” in the open command prompt window;
STEP 3. List of various choices that you can do with the command will be listed down;
STEP 4. Type “shutdown /s” to Shutdown your computer;
STEP 5. Type “shutdown /r “to Restart your windows PC;
STEP 6. Type shutdown /l” to Log off your computer
SETP 7. Type “shutdown /a”to Abort the shutdown process before the timeout;
Create A Shutdown Timer For Windows
To create a shutdown timer manually, open Command Prompt and type the command shutdown -s -t XXXX. The “XXXX” should be the time in seconds you want to elapse before the computer shuts down. For instance, if you want the computer to shut down in 2 hours, the command should look like shutdown -s -t 7200.
If you want to restart your computer on a delay, use shutdown -r -t XXXX instead.
To cancel the timer, open the Run window or Command Prompt again and enter shutdown -a.