How to Schedule Automatic Shutdown – Restart

How to Schedule Automatic Shutdown? You must know about this. Sometimes we are running some application or downloading anything on our system but most of the time it’s going to take a while. In this situation, you can use schedule automatic shutdown command. When you used this command, on your system shutdown automatically after all your tasks are done your selected time. Suppose you want to shut down the system after 2.5hours.

How to Schedule Automatic Shutdown - Restart

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

No.1 – Very easiest way is to open a command prompt and just run the command below.

sleep 9000; shutdown -s

Above command will shut down your computer 9000 seconds and it sleeps time. If your command shows the error report on to your computer when it will 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 – This below command to help to shut down the exact time. Which time you fixed, Suppose your current time 1 PM and you want to shutdown your system after 2.5 hours. Just you need to use this command.

at 03:30:00PM shutdown -s

No.3 – You can also use schtasks command for automatic shut down.

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 shut down daily, below command use. You can use schtasks or At command for daily schedule set. Suppose you set to shut down every day at 11 PM and it 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 knowing that the above commands are for shutting down computers. But, if you want to restart your system by using this command below. For example today at 11 PM, you need to restart and 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

You may also like...

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.