There are times when you have to leave your computer on during the night – most of us have faced a similar situation. Maybe you just have to go out but you can’t turn off your computer right away because a program is being installed. How convenient it would be if the computer would shut itself down after a certain time wouldn’t it? Well, you can schedule automatic shutdown on your Windows PC. Not many people use it but Windows has had a Task Scheduler for quite a few years. Good job advertising it Microsoft. This article will tell you how to get your computer to shut down at a time specified by you. This works for almost all versions of windows from 7 to 10.
Use Run dialog
- Show Run by pressing Windows+R on your keyboard.
- Type shutdown –s –t number and tap OK. The number in the run command represents the amount of time after which you want the system to shutdown, measured in seconds. For instance, if you want your PC to automatically shut down in 10 minutes, the command to be entered is shutdown –s –t 600. The system will then prompt you about the auto shutdown time, as shown in the following screen shot. Click on close and go have fun … or whatever.
Use Command Prompt or Powershell
- Open Command Prompt. You can do this by right-clicking on the windows start button in Windows 10. Alternatively, you can search for command prompt or type cmd in the Run dialog and hit enter.
- Type the same command as you would’ve in the Run dialog in the previous method. That is, shutdown –s –t number and press Enter.
- To do this with Windows Powershell, open it by hitting the windows key on your keyboard and typing ‘powershell’. On the latest versions of Windows 10, a right-click on the start button shows the option to ope Powershell instead of the command prompt. In the Powershell window, type in the same command, shutdown –s –t number and hit Enter.
These methods simply adds one more step to the first method and you end up typing up the same thing anyways.
Use Task Scheduler
- Open Task Scheduler (by searching for it just like powershell).
- Click on Create Basic Task on the right.
- Type Shutdown as the task name and click Next.
- Choose when to start the task. The available options are – Daily, Weekly, Monthly, One time, When the computer starts,When I log on and When a specific event is logged. Click Next.
- Set the start time of the task and click Next.
- Select Start a program and click Next.
- On the next page, click the Browse button, then type shutdown.exe in the File name field and hit Enter. You can also scroll down and find the shutdown.exe file and double click o it to select it.
- In the field labelled Add arguments type –s and click Next.
- Click Finish to complete the task creation and bring the task into effect.
That’s it, you now know how to schedule a shutdown in Windows 10. If you have any questions, just reach for the comments below.