If you want to shutdown your computer automatically at or after a specific time, you can learn here about how to do it. In this article, we’ve covered how to automatically shutdown a computer.
Suppose, you are downloading a large file or installing a software that may take a long time to complete. So, you can’t shutdown your computer until the task is finished. In this scenario, you can set your computer to be shutdown automatically and leave your computer without any headache of coming back to shut it down.
Automatically Shutdown Computer in Windows
If you are using Windows as the operating system, there are several methods to shutdown the computer automatically. We’ve discussed two methods for you.
Method 1: Creating Shortcut to Auto-shutdown Computer
Windows lets you create shortcuts for any command. So, create a shortcut for the shutdown command with appropriate attributes and double-click the shortcut icon to trigger the command.
Step 1: Create a Shortcut to Initiate auto-shutdown
Right-click on your desktop and select New > Shortcut.
The ‘Create Shortcut’ wizard appears. Type
shutdown -s -t 3600 at the text box where it asks to type the location of the item.
Click the ‘Next’ button.
If you want to display any message before shutting down your computer, type the following instead of the above code:
shutdown -s -c "The computer will shutdown in a moment"-t 3600
Type a name for the shortcut and click the ‘Finish’ button. For instance, give the name as ‘Automatic Shutdown’
Now, double-clicking on the shortcut will set your computer to shutdown after 1 hour.
If you want to change the time duration before the shutdown, just replace 3600 with your time calculated in seconds.
Step 2: Create Another Shortcut to Abort the Automatic Shutdown
By the above method, you can’t simply stop your computer from shutting down once you initiate it by double-clicking the shortcut. But there is way to abort the shutdown process.
Right-click on your desktop and and select New > Shortcut.
shutdown -a at the text box where it ask to type the location of the item.
Click the ‘Next’ button and give a suitable name for the shortcut. For instance, say it is ‘Abort Shutdown’.
Click the ‘Finish’ button. This will create another shortcut at your desktop.
Double-click on the ‘Abort Shutdown’ shortcut to stop the computer from getting shutdown.
Method 2: Auto-Shutdown PC using Windows Task Scheduler
By the previous method, you need to initiate the automatic shutdown manually by double-clicking the shortcut. If you need more advanced method to automatically shutdown your computer, you can use the Windows task scheduler.
The task scheduler is available in Windows XP, Windows 7 and Windows 8. In Windows XP, click Start > Control Panel > Performance and Maintenance > Scheduled Tasks. In Windows 7, go to Start > Control Panel > System and Security > Administrative Tools > Task Scheduler. In Windows 8, press the Win key, place the cursor at the right-top corner of the windows. The Windows 8 doc bar appears. Type ‘task schedule’ at the search box and select ‘Schedule task’ from the search results.
Though we’ve written the method for Windows 7 you can apply this procedure at Windows XP and Windows 8.
After opening the task scheduler, click ‘Create Basic Task’ from the right sidebar of the window.
The ‘Create a Basic Task Wizard’ appears. Give a suitable name and description for the task. Give the name as something easy to remember such as ‘Automatic shutdown’. Click the ‘Next’ button.
Choose the schedule. Select the ‘Daily’ option from the ‘Task Trigger’ window and click ‘Next’.
Set the time you want to shutdown your computer automatically. Leave the ‘Recur every: 1 days’ settings as it is. Click the ‘Next’ button.
At the ‘Action’ window choose ‘Start a program’ as the action and click ‘Next’.
Put the location path of the program or script to shutdown the computer. Here we’ll use the program that the Windows uses to shut the system down. It is called as shutdown.exe and the path of the location is
C:\Windows\System32\shutdown.exe. So put this path, set the argument as
/s and click the ‘Next’ button.
Review the settings and click the ‘Finish’ button.
You are done. Now your computer will get shutdown automatically at the specified time everyday.Using the Task Scheduler you can also Shutdown your Windows PC Automatically at Night If Idle.
Automatically Shutdown Computer in Linux
If you want to automatically shutdown your computer running with Linux, you can do it by a simple command at the terminal. Open the terminal and run the following command:
sudo shutdown -h XXX
XXX represents the time span in minutes. For instance, if you choose
XXX as 120, your computer will automatically shutdown after 120 minutes i.e 2 hours.
You can also set your Linux computer to shutdown automatically at a specific time. Run this command at the terminal.
sudo shutdown -h XX:YY
XX:YY represents the clock time. For instance, if you choose
00:30, the computer will automatically shutdown at
If you want to abort the shutdown process, run the following command:
sudo shutdown -c
Automatically Shutdown Your MAC Computer
If you want to shutdown your MAC automatically, here is how to do that.
Click the Apple icon at your MAC and select ‘System preferences’ from the drop-down menu.
Click on ‘Energy saver’ at the ‘System preferences’ window.
The ‘Energy Saver’ dialog window appears. Click the ‘Schedule’ button from the bottom of the window.
In the drop-down tray, check the ‘Sleep’ option, select the the day (by default it is ‘Everyday’) and the time.
Click the ‘OK’ button and your MAC will automatically shutdown at the specified date and time.
Do you have your own method? Share with us at the comment section.