CMD ( Command Prompt) is a component with Windows. CMD is used to perform some actions using code. Here, lets see how to make timed Shutdown and Restart.
Follow the steps below
1. Go to Run by pressing Windows key + R and enter the term “CMD” and press ok.
2. Now the CMD(Command Prompt) window will open up. Now the code you have to enter is “shutdown -s -t 3600″ for shutdown and “shutdown -r -t 3600″ for restart. The code will perform the order in your pc after 1 minute.
How to set the Shutdown and Restart time?
In the code “shutdown -s -t 3600″ and “shutdown -r -t 3600″.
-s means Shutdown the pc
-r means Restart the pc
-t xx means set the time for Shutdown or Restart (You have to enter the time in seconds Eg : 3600 means 1minute)
By adjusting -t xx you can change the time of Shutdown or Restarting
After entering code a small pop-up window will show you the shutdown time in right side taskbar.
How to stop timed shutdown or restart?
1. Go to CMD.
2. In CMD just enter the code “shutdown -a” ( This code works to cancel Restart and Shutdown). When you enter this code there will be a pop-up window at the right task bar to inform that the Shutdown or Restart was cancelled.