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!

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


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 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. I don’t know if it’s just me or if perhaps everyone else experiencing issues with your
    site. It seems like some of the text on your content are running off the screen.
    Can somebody else please comment and let me know if this
    is happening to them as well? This might be a problem with my web browser because I’ve
    had this happen before. Thank you

  10. Rob says:

    What is the /s and /f for?

Leave a Reply