Maintaining your computer is equally important as buying. There are many simple ways to ensure the health of your system especially the battery. It is always a good practice to shutdown your PC when you are not using it to save power. However, you could forget to turn off the PC when necessary or probably you need to leave the computer to complete some tasks in your absence.
Fortunately, there are various ways of setting an automatic shutdown in Windows 10 to turn off the machine at your own preferred time.
1. Using Run Utility
- Press the “Win + R” keys on the keyboard or type “run” in search and select “Run” from the results to launch the utility.
- Enter the following command, “shutdown –s –t [time]” and click “OK” or press enter on your keyboard. The [time] represents the amount of time before the automatic shutdown in seconds. For instance, in place of [time], type 600 (equivalent to 10 minutes).
- This will automatically turn off the PC after 10 minutes.
2. Using Command Prompt (CMD)
- Type “Command” on the Windows search box, and on the right-side panel select “Run as administrator” or by right clicking on “Command Prompt” to open with administrative controls.
- User account control will prompt you asking whether to allow the program to make changes to your computer. Click “Yes”
- Type the same command as in the above option “shutdown –s –t 1800”. In this case 1800 means the PC will automatically shut down after 30 minutes.
- Press enter key on your keyboard to implement the command.
3. Using PowerShell Task Automation
- Search for “PowerShell” from the Windows search box or right-click on the Windows start button, then select “Window PowerShell (Admin)” from the options to open the utility.
- Click “Yes” on the resulting user control window.
- Similarly, type, “shutdown –s –t 3600”. This will schedule automatic shutdown after 1 hour (3600 seconds).
- Then press enter to complete the task scheduling.
Note: You can cancel the scheduled shutdown by running “shutdown –a” command in “Run”, “Command Prompt” or “PowerShell”.
4. Using Windows Task Scheduler
You can set an automatic shutdown using the Windows Task Scheduler tool. The feature allows you to schedule any task on your PC from startup, shutdown to opening other apps.
- Start the Task Scheduler by typing, “schedule” in the Windows search bar and select “Schedule tasks” from the result.
- In the Task Scheduler window, select “Create Basic Task” option under the “Action” panel located on the right side of the window.
- Type your preferred name for the task next to the “Name” heading and click “Next”. You can also type description for the task.
- Select the time trigger by checking one of the option and click “Next”.
- Set the start time and date and click “Next”.
- Under “Action” select the “Start a program” option and click “Next”.
- Browse the system files to select the script or program under the “Program/ Script” box.
- From the resulting window, scroll down and choose “shutdown” from the list, then click “Open”.
- This will take you back to the “Create Basic Task Wizard” and display the selected program on the “Program/ Script” box Click “Next”.
- Review the summary for the new task and click “Finish” to add the task to the Windows schedule.
You can modify the settings for the scheduled automatic shutdown. For instance you can trigger automatic shutdown whenever the computer is idle for a specific duration.
Related: Fix slow Windows 10 issues.
To configure more settings on the “Task Scheduler”, go to the “Task Scheduler Library” on the left-side panel.
- Look for the task you have created above “AutoShutdown”, right-click the task and select properties.
- From the properties window, open the “Conditions” tab and check the “Start the task only if the computer is idle for:” then specify the amount of idle time before your PC shuts down automatically.
- Click “Ok” to change the properties.
- You may also edit other properties by selecting the respective tabs on the properties window.