How to Restart or Shutdown Windows After Certain Time Interval

In many situations people look to shutdown Windows PC after certain time. Like after music finishes or after the update of a software is completed. For this you can schedule the auto shutdown very easily in Windows. Also, people look for shutdown and restart option and not for hibernate as there are some disadvantages of hibernating a Windows PC. So this article will take you through how to automatically shutdown Windows after specific time interval.

how to restart or shutdown windows after specific time interval

Shutdown Windows after Specific Time using Command Prompt

We will use command prompt here to make the PC Shutdown after a particular time of interval. Follow the below steps.

1) Open Command prompt.

2) Type the below command line:

     shutdown -s -t XXXX

Here the XXXX is the time in seconds. So the only effort you have to make is to convert hours/minutes into seconds to make the laptop/PC shutdown after that specific time. For example: if you want to shutdown the system after 1 hour then you can write the command as shutdown -s -t 3600.

how to automatically restart or shutdown windows after specific time interval

3) Next, press enter. The timer will start and will make the computer shutdown after XXXX seconds. You might also see a message that when your PC/laptop will shutdown as shown in the picture above.

How to Cancel the Set Timer for Windows Shutdown

If you come across an important work on your laptop/PC and you want to cancel the timer you have set for the Shutdown, then you can easily do it with just one command line.

Open Command Prompt and type in shutdown -a to cancel the timer.

how to restart or shutdown windows after specific time - cancel shutdown

Restart PC after Specific Amount of time

Apart from shut down, you can also make Windows system to restart after a particular time.

The method is same, you can use the same command line for the restart which you used for shutdown. Just replace ‘s’ with ‘r’ letter and press enter. Here is how the command line will look like.

shutdown -r -t XXXX

Here also the XXXX is the time in seconds.

ALSO READ: How to turn on/off Hibernate on Windows 8/10

Create Shortcut to Automatically Shutdown or Restart

If you frequently need the feature to Shutdown or restart the Windows system after a particular time interval, then you can create a shortcut.

By creating a shortcut you will not need to write the commands again and again. Below are the steps to create the shutdown and restart shortcuts.

1) Right click on Desktop and navigate to New->Shortcut.

how to schedule restart or shutdown windows after specific time interval - new

2) A window will open where you need to type in the command for shutdown or restart as shown in the picture below.

how to restart or shutdown windows after particular time - shortcut

3) After this, click on Next button and give some appropriate name to the shortcut. Like Shutdown after 1 hour and click on finish button.

From next time onward you just need to double click to start the timer for shutdown.

Want to change the time of the shutdown timer?

1) Right-click on the shortcut you have created and click on Properties.

2) In the target field, you can change the time. Next, click on Apply.

So anytime you want to make changes in the timer, you can easily do from shortcut properties.

Similarly, you can create a shortcut to cancel the timer by creating a shortcut icon with target field having shutdown -a command line. So whenever you want to cancel the timer you can run this shortcut.

I hope the shortcut method to automatically restart or shutdown the Windows after a particular time will be very helpful for you.


Please enter your comment!
Please enter your name here