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 executed. Replace 300 with the duration you want.

To execute the command, click the OK button. A confirmation popup will appear.


  • You can also use the above command in Command Prompt, Windows PowerShell, Task Manager (In Task Manager, click File > Run new task to use the command), address toolbar, and address bar of File Explorer.
  • The above command only works once. Hence, it cannot repeat automatically shut 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 task’s name and description (optional) in the Create Basic Task Wizard popup. 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 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 popup at your scheduled time.

The popup 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 popup 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, 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 popup.

I hope this guide, “How to Auto Shut Down Windows 10 PC,” is helpful to you.

Thanks for reading.