How to Shutdown Windows 10 on a Timer?

Sometimes users perform very long tasks on their computers that do not require human presence, for example, rendering a big video or downloading a large game. If you do not want or cannot sit at your PC for several hours, you can schedule Windows 10 shutdown and leave. Your PC will start counting down the specified time and then automatically turn itself off.

Many third-party apps allow you to schedule Windows 10 shutdown. But the truth is that you do not need any of them. The operating system in your computer has built-in instruments for scheduling shutdown, log-out, or restart. This article will tell you how to schedule Windows 10 shutdown without third-party apps.

Schedule Windows 10 Shutdown

Again, you do not need additional apps nor a user with Administrator privileges. All that is needed is a simple command and the Run dialog box. To turn off Windows PC on a timer, do the following:

  1. Press the Win + R shortcut on your keyboard to launch the Run dialog box.
  2. In a new window, enter shutdown -s -t XXX. Replace XXX with the time specified in seconds. shutdown timer windows 10
  3. Press Ok to execute the command. Windows will show you notification about the upcoming shutdown. shutdown command windows 10 timer

Here is the example of the schedule Windows 10 shutdown command:

shutdown -s -t 600

It means Windows 10 will automatically turn itself off in 10 minutes or 600 seconds.

Do note that some open apps may prevent your PC from shutting down. If you want to override these apps, add the -f argument to the command:

shutdown -s -f -t 600

To cancel the scheduled Windows 10 shutdown, execute the following command:

shutdown -a

Schedule Windows 10 Shutdown: Better Option

You can automate shutting down Windows 10 on a timer and make it more interactive using a simple bat file. Every time you launch this file to schedule Windows 10 shutdown, Command Prompt will ask you when to turn your PC off.

Open Notepad and enter the following text:

echo off
cls
set /p timer_shutdown="Enter time in seconds: "
shutdown -s -t %timer_shutdown%

shutdown windows 10 timer

In case you want to force close all apps when Windows 10 shuts down on the timer, use the following code:

echo off
cls
set /p timer_shutdown="Enter time in seconds: "
shutdown -s -f -t %timer_shutdown%

Save the file and rename its extension from txt to bat. pc shutdown timer windows 10

When you need to schedule Windows 10 shutdown, launch the newly created file and enter the desired period. This method will eliminate the need to open the Run dialog box and enter the command manually.

set shutdown timer windows 10

Done.

I enjoy technology and developing websites. Since 2012 I'm running a few of my own websites, and share useful content on gadgets, PC administration and website promotion.
Cyril Kardashevsky

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.