How to Schedule Automatic Shutdown – Restart

By | July 7, 2018

How to Schedule Automatic Shutdown? You must know about this. Sometimes, we run an application or download anything on our system, but most of the time, it takes a while. In this situation, you can use the schedule automatic shutdown command. When you use this command, your system shuts down automatically after completing all your tasks at your selected time. Suppose you want to shut down the system after 2.5 hours.

How to Schedule Automatic Shutdown - Restart

There are many ways to schedule the Auto shutdown of your system. These commands should work on every version of Windows – 7, 8, and 10.

No.1: The easiest way is to open a command prompt and run the below command.

sleep 9000; shutdown -s

The above command will shut down your computer for 9000 seconds and will sleep time if your command shows the error report on your computer when it does not work.

C:\> sleep
'sleep' is not recognized as an internal or external command, operable program or batch file.
C:\>

Read Also: Disable Administrative Shares

No.2: The command below will help to shut down the exact time. What time did you fix it? Suppose your current time is 1 PM, and you want to shut down your system after 2.5 hours. You need to use this command.

at 03:30:00PM shutdown -s

No.3: You can also use the schtasks command to shut down automatically.

schtasks /create /sc once /tn "auto shutdown my computer" /tr "shutdown -s" /st 15:30

Read Also: How to Enable / Disable WiFi Connection

How to Set Schedule Daily Shutdown?

You can also set automatic shutdown daily, below command use. You can use schtasks or At command to set the daily schedule. Suppose you set to shut down every day at 11 PM, which looks like below.

  1. At –
At 11:00:00PM /every:M,T,W,TH,F,SA,SU shutdown -s
  1. schtasks –
C:\>schtasks /create /sc daily /tn "auto shutdown my computer daily" /tr "shutdown -s" /st 23:00
SUCCESS: The scheduled task "auto shutdown my computer daily" has successfully been created.

How to Set Schedule Automatic Restart?

We know that the above commands are for shutting down computers. But if you want to restart your system, use the command below. For example, today at 11 PM, you need to restart, and the command would be

at 11:00:00PM shutdown -r

If you want to use sleep-

sleep number_of_seconds_to_wait; shutdown -r

Read Also: Open Network Connection from Command Line

Leave a Reply

Your email address will not be published. Required fields are marked *