How to Auto Shut Down Windows 10 PC

You can use either of the following two methods to shut down the Windows 10 computer at a specific time (once or repeatedly).

Method #1

Launch Run Command.

Type the following command in it: shutdown -s -t 300

The above command will automatically shut down the computer after 5 minutes (in the command, 300 mean seconds, which is 5 minutes) from when it’s executed. Replace 300 with the duration you want.

To execute the command, click the OK button. A confirmation pop-up will appear.


  • The above command only works once. Hence, it cannot repeat automatically shutting down the computer at a specific time in the future. It can, however, be achieved using the following method.
  • Use the shutdown -a command before the scheduled shutdown time in the Run Command to abort the shutdown.

Method #2

​Launch Task Scheduler.

Click Create Basic Task on the right side of the screen.

Enter the name and description (optional) for the task in the Create Basic Task Wizard pop-up. Click Next.

​You can now set the repeat frequency of the task. Daily is my choice, which is selected by default. Click Next.

​The start date of the task can be set here. Furthermore, you can set the time at which you want the PC to shut down automatically. You can also change the recurring days if you wish. I am only changing the time and leaving the rest the same. Click Next.

As you can see, the Start a program option is selected by default. Click the Next button.

Then click on Browse and select shutdown.exe from the System32 folder. Add /s to the Add arguments (optional) field. Click Next.

You can find an overview of the task’s settings here. Please review it. It’s okay, if it’s not to your liking, just hit Back, and make the necessary changes. Click the Finish button if you are happy with it.

That’s it. In the future, you will see a pop-up at your scheduled time.

The pop-up states that your computer will be shut down in less than a minute.


  • If you wish, you can use the shutdown -a command in the Run Command Box to abort the shutdown after the above pop-up appears.
  • You can view the task by clicking on the Task Scheduler Library on the left side of the screen.
  • Edit the task by right-clicking it and selecting Properties. You can now edit the task as you wish. There are also many options there, such as Security options, Settings, and Conditions. You can play with them if you like.
  • Delete the task by right-clicking on it and then selecting Delete. Click Yes in the confirmation pop-up.


By Thirumalraj

How To Raj was founded and run by Thirumalraj, an MCA graduate. Since August 2015, he has been blogging on his other blog, Technology Hint. Learn more about How To Raj here.