Windows 7 schedule auto shutdown

April 26th, 2009

Below is a simple example about how to schedule shutdown your windows 7 automatically.

 

Method 1: automatically shutdown windows 7 using at command

 

1.Create a bat file,for example, “shutdown.bat” (Customize folder options to show file extensions ,then create a text file and rename it to shutdown.bat ,then right click this bat file and click Edit)

2.Add the following lines to this file

@echo off
 
at 22:50 /every:M,T,W,Th,F,S,Su shutdown -s -t 60 -c "Too late,it's time to go to bed!"
 
echo Done!
 
pause&end

3.Right-Click this file then click Run as administrator

runasadministrator

4.(Optional)To remove this job,just open an Open an Elevated Command Prompt  ,type command  at ,press Enter to find the Job ID,then use

at ID /delete

to remove this job

 

Updated 2011/10/19:

1 .Alternatively you can combine steps 1~3 by running the 2nd line code as a command in Elevated Command Prompt without creating a bat file

2.You also can refer Schedule a  task in Windows 7 to see how to schedule auto shutdown using Task Scheduler

 

Method 2: automatically shutdown windows 7 using  Task Scheduler

 

1.Click Start ,type scheduler in your search box then Hit Enter to open Task Scheduler

2.click Create Basic Task

3.Input your task name and description,then click Next

4.Select Daily(selected by default) then click Next

5.Choose the time that you want to shutdown your windows 7,then click Next

6.Choose Start a program ,then click Next

7. Click Browse and select C:\Windows\System32\ and selece shutdown.exe then add below line as argument

/s /f /t 90 /c "System will be shutdown within 90 Seconds"

8.Done.Now system will automatically shutdown your windows 7 at the time you choose every day.

61 Responses to “Windows 7 schedule auto shutdown”

  1. Prawo jazdy says:

    Pretty part of content. I simply stumbled upon your weblog and in accession capital to say that I get actually enjoyed account your blog posts. Anyway I will be subscribing in your feeds or even I achievement you access persistently rapidly.

  2. Lord John says:

    Thanx heaps men you have made a simple task so EASY

  3. Kathy says:

    If it’s supposed to auto-shutdown, it doesn’t work.

  4. Ared says:

    @Kathy you’re supposed to be in the kitchen

  5. Chivo says:

    Nice! Works perfectly.

  6. JOSEA says:

    The task scheduler method works flawlessly – I did check the box to “run with highest privledges”
    Many kudos to the author!

  7. Kathy says:

    @Ared you’re supposed to be killing something- enemy males/dinner/whatever

    but you can’t of course because you’re a too weak, as well as stupid

    make your own fucking dinner you extraneous piece of undershoe detritus

  8. alinuxg says:

    Thanks very much for these clear instructions on shutting down! I prefer your instructions with screenshots rather than videos.

  9. Pete says:

    Fantastic goods from you, man. I’ve understand your stuff previous to and
    you’re just extremely magnificent. I really like what you’ve acquired here,
    really like what you are saying and the way in which you say it.

    You make it enjoyable and you still take care of to keep it sensible.
    I can not wait to read far more from you. This is actually a terrific website.

  10. No matter if some one searches for his required thing, thus
    he/she wishes to be available that in detail, thus that thing is
    maintained over here.

Leave a Reply