• Skip to main content
  • Skip to primary sidebar
  • Newsletter
  • Contact
  • About

The Spinning Donut

Helping People Use Technology

How To Automatically Shut Down Your Windows 7 Computer

July 18, 2009 By Bill 171 Comments

Well, here we go again.  In addition to my How To Automatically Shut Down Your Windows XP Computer I showed how to set it up so you can use the ShutDown.exe command to schedule and automatically shut your Windows XP computer off. In my How To Automatically Shut Down Your Windows Vista Computer we stepped through the same idea.  And now, here’s Windows 7.  Guess what?  Not too different.  So let’s get going.

For this How To, I’m using Windows 7 Release Candidate (RC).  Hopefully not too many changes between now and the final version of Windiows 7  changes in regards to running a scheduled task.  Below is the first screen shot after I clicked on the Start button and Control Panel.  You’ll find the Scheduled Tasks under System and Security.

Click on System and Security and you should see the Administrative Tool selections at the bottom of the control panel window.  Click on Schedule Tasks and you’ll be presented with the screen below.

Windows 7 Task Scheduler

Click image for larger view (800px)

The Task Scheduler is pretty much the same in Windows 7 as Windows Vista.  The Task Scheduler can look intimidating but it’s not too bad. Just move forward. We are going to look at one task and not all the extra stuff in Task Scheduler.

In the Actions column on the right, click Create Basic Task…
You’ll see the following window and I’ve already filled in the Name and Description of our task.

In the Actions column on the right, click Create Basic Task…

You’ll see the following window and I’ve already filled in the Name and Description of our task.

Windows 7 Create Basic Task

Click image for larger view

After clicking Next you’ll see the Task Trigger screen. We want to shut down our Windows 7 computer in the middle of the night, every night so we’ll pick Daily.

Windows 7 Task Trigger

Click image for larger view

The next screen you’ll see is the Start Date and Time screen.

Windows 7 Daily Task

Click image for larger view

The following screen is the Action screen. Let’s Start a program.

Windows 7 Task Action

Click image for larger view

The next screen you’ll see is the Start a Program screen.

Windows 7 Start a Program

Click image for larger view

And finally the Summary screen.

Windows 7 Task Summary

Click image for larger view

Let’s take a look at our task in the Active Tasks list.

Windows7 Active Tasks List

Click image for larger view (800px)

Double-click the Task Name if you need to work with the settings.

Here’s the screen when the task fires off and starts to automatically shut down Windows 7. A window pops up telling us that Windows will shut down in less than a minute. You can click on the Close button but that will just close that window and Windows itself will continue to shut down.

Windows 7 Automatic Shutdown

Click image for larger view

There’s quite a bit of detail with the shutdown.exe command and here is the output when you run the shutdown.exe /? command at the command prompt in Windows 7. It lists the choices of how you want to run the shutdown.exe command.

Windows 7 Task Scheduler Parameters

Click image for larger view

There you have it. Now you can automatically shutdown your Windows 7 computer.

Filed Under: Microsoft Windows

Reader Interactions

Comments

  1. Phil says

    November 5, 2010 at 10:18 pm

    What a great way to automatically shut down your pc when you want to. Seems like this would be on the Windows 7 menu system somewhere. Thanks. Pennsylvania College of Technology.

  2. Joe says

    November 8, 2010 at 10:47 am

    Is there any way to get it to not run on weekends?

    Im trying schedule my sons pc to shut-down at 6 o’clock so he doesn’t stay up and miss school :P.

  3. Joe says

    November 8, 2010 at 10:50 am

    Never-mind just figured it out.

    You have to set it to weekly and you can select each day individually if you wanted to know.

  4. Dustin says

    November 9, 2010 at 6:27 am

    Thanks for the Windows 7 update on this very handy tool. I have Windows 7 installed as a 64 bit OS and it appears as though I have two versions of the “shutdown” program. One is in the “System32” folder and the other is in the “SysWOW64” folder. Does it matter which one I use? Should I use the SysWOW64 version?

    Thanks!

  5. Bill says

    November 9, 2010 at 10:28 pm

    @Dustin: Thanks for stoppin’ by Dustin. I don’t know the answer to this but if you try one of them and see which works. Sounds like some folks are having problems calling shutdown.exe from c:\windows\system32 and other calling from c:\windows\syswow64 if it even exists in that folder from some. Good luck and let us know your results.

  6. Dustin says

    November 10, 2010 at 6:32 am

    Thanks Bill. I opened up the task scheduler in Windows 7 and began to create a basic task. When I got to the “Start a Program” screen, I clicked browse. At that point, Windows defaulted to the System32 directory. So I chose the shutdown command that was located there. Seems to work fine.

  7. Sri says

    November 11, 2010 at 11:11 pm

    Thanks. I was looking for this for a long time.
    Simple step by step instructions.
    Easy to Do.

  8. Bill says

    November 12, 2010 at 10:33 pm

    @Sri: Thanks Sri, good to hear.

  9. Fernan says

    November 18, 2010 at 12:19 pm

    Thanks. this is great! Very simple.

    By the way, is there also a way to have my pc automatically put into sleep mode without using third party program?

  10. Neil McCann says

    December 1, 2010 at 6:00 am

    Thanks
    On you XP article you used this argument: -f which stands for “Forces running applications to close without warning”.
    Is that not needed in Windows 7, as it will force everything to shut down anyway?

  11. flavinho says

    December 14, 2010 at 6:52 am

    amigo queria saber se depois de ter feito isso o pc volta a ligar na mesma hora se eu tentar ou ele fica inativo ???
    ( porque eu vou durmir e o meu filho volta pro pc )

  12. Aaron says

    December 14, 2010 at 3:35 pm

    This was really helpful! Thanks alot!

  13. Anthony Vincent Real says

    December 14, 2010 at 8:01 pm

    How To Make a Shutdown Virus – Presentation Transcript

    How To Make A Shutdown Virus In this presentation you will learn how to make a virus joke to your friends and shut down their computer. Replace one of their used icons on the desktop with a fake one . And when they try to open it, their computer will close.

    … first step… Right click on the desktop and go to New -> Create Shortcut .
    … second step… Type in the windows that appears: shutdown -s -t 60 -c "Virus Detection. Computer is shutting down." Instead of 60 you can put what value you want. It represents the time in seconds . And also between quotes you can put what message you desire.
    … third step… Click Next and type firefox . You can write whatever you want.
    … fourth step… We need to change its icon to look like Mozilla Firefox.
    The ‘virus’ will look Mozilla Firefox.

    Thanks for your attention and… … Shutdown more computer you can!!!! The only way is…

    or simply go here: http://www.sevenforums.com/tutorials/16801-shut-down-windows-shortcut.html

    http://www.tothepc.com/archives/pc-shutdown-restart-windows7-shortcuts/

  14. D Thomas says

    December 20, 2010 at 11:03 am

    I cannot wait to get Windows 7. I am one of those who bought a laptop and ‘had’ to get Vista because XP was no longer preinstalled. Anyway the more I see and read about Windows 7 the more it appears Vista should not have been released at all. Thanks for the tips.

  15. Bill says

    December 21, 2010 at 1:03 pm

    @D Thomas: I definitely like Windows 7 a lot better than Vista. Less problems. XP still rocks though. I believe XP will be around for a long time until Microsoft crushes it. Thanks for stoppin’ by.

  16. Craig Grant says

    December 31, 2010 at 5:29 am

    Thanks for the good post. Been looking for this for a while but just got round to doing it.

  17. Animesh chakraborty says

    January 4, 2011 at 1:23 pm

    Thanks……..i was looking for this….and this site really helped me….thanks again..

  18. Krishna says

    January 13, 2011 at 5:58 pm

    Good One Bill. I was looking for stuff like this. Now I can happily goto bed listening to all my favourite music. Thanks a ton.

  19. Susan says

    January 14, 2011 at 10:26 am

    Many thanks for sharing, It’s so useful option, I’ll use it for sure…
    Thanks again!

  20. markperterson says

    January 17, 2011 at 12:10 am

    There are many software available for this.
    SEO

  21. meehan says

    January 19, 2011 at 3:36 pm

    @markpeterson – Why buy some software when the feature is available for free through the OS? This is simple.

    Thank for the instructions. Works like a charm.

  22. Ls says

    February 6, 2011 at 11:44 pm

    Is there a way to cancel the shutdown if you need to on a certain night?

  23. Bill says

    February 11, 2011 at 6:02 am

    @Ls: Either stop the task in task scheduler or adjust the schedule. Thanks for stoppin’ by, hope that helps.

  24. Ls says

    February 11, 2011 at 11:55 am

    @Bill, thanks! I will give that a try and see if I am fast enough! 😉

  25. Longshanks says

    February 12, 2011 at 6:51 am

    Regarding instant start up post…. NEC used to make a small pc (a bit bigger than your palm) that had instant-on because the operating system was ROM, which means it couldn’t be updated. Worked fine, but was obviously limited in what it could run.

    Almost as good, dependening on what you need, are the ASUS motherboards that come with a built in LINUX on boot that gives access to the web and chat, etc…. but not your windows apps. It boots in 15 seconds on my machine. I use it to check stocks or weather … something short and sweet usually. You can then tell it to go ahead and boot to windows. It’s a nice compromise for instant on.

  26. Sharninder says

    February 13, 2011 at 4:19 pm

    Very cool. I wonder why Microsoft has “hidden” the task scheduler in Windows 7. In Windows XP it was there in the Accessories menu in plain view. Now, one has to search for it via the search bar.

  27. AlexZ ??????? says

    February 18, 2011 at 11:32 pm

    Thanks for the idea. I like to go sleep while listening to some audio books so this tool would be helpful to wake up without hearing my pc.

  28. Khey says

    March 4, 2011 at 12:51 pm

    I’ve been using Windows 7 for months now and didn’t even know about this. Thanks.

  29. tru says

    March 8, 2011 at 7:20 am

    thanks very much for this, now i can prank my roomy – do multi shutdown tasks with 10 min interval from 12am to 8am – freaking fb freak.. hehe, nah but seriously thanks for the infor (thumbs up)

  30. Amit Sharma says

    March 12, 2011 at 6:29 pm

    This is very useful tip as I always keep my laptop powered on and sleep every night working on laptop!:)

  31. Theah says

    March 15, 2011 at 7:29 pm

    Great article! One thing I wanted to point out is the /a option on shutdown.exe.

    There have been times I’ve accidently pushed the power button on my machine and it started to shut down programs. Since it takes a while, I am able to open up a command prompt and cancel the shutdown by using the /a option!

  32. Shan says

    March 20, 2011 at 1:57 am

    What option in the task wizard do I pick for shutting it down after I manually ask it to install the updates and it installs them?

    p.s. I stopped using the auto updates in Windows 7 after the darn thing rebooted for updates without warning me before I saved a file.

  33. Gary Corbett says

    March 28, 2011 at 12:37 am

    We do need to remember to shutdown our computers from time to time – via a restart or a turn off completely. This helps free up memory and help cool the CPU.

  34. Mike says

    April 2, 2011 at 8:39 am

    In my windows 7 there is no “System and Security” icon in the control panel. After poking around for awhile, I found “Task Scheduler” after clicking on the “Administrative Tools” icon in the control panel. Maybe some others have windows 7 setup like mine.

  35. Bill says

    April 2, 2011 at 9:49 pm

    Mike » Thanks Mike. What version of Windows 7 do you have? Also, another way to find stuff is by clicking on an empty spot on the Windows desktop and pressing F1 for help. Then search on the term you’re looking for and you’ll typically find a link to the tool(s) you’re looking for.

  36. Mike says

    April 3, 2011 at 12:04 pm

    Bill » I have Windows 7 Home Premium (64bit).
    Thanks for the F1 tip – that’s even faster

  37. Peggy S. White says

    May 4, 2011 at 12:58 pm

    I hope this can still be done with the windows 7 (complete) ,I never even thought Windows 7 has this. Now, I don’t have to tell my son to stop playing with my computer and go to sleep LOL. Thanks a lot!

  38. Tracy Mc Manamon says

    May 11, 2011 at 12:11 am

    I didnt know that it was so simple to automatically shut down Win 7. Cool. I like the descriptive and informative style of writing.

  39. hgh says

    May 11, 2011 at 5:44 am

    wow its nice article based on auto shut down you pc deeply described and well taken snapshots really enjoyed this article thanks

  40. Rocky says

    May 15, 2011 at 4:18 pm

    Wow, I’ve been looking for that. Previously, I used to write a small script to send the shut down signal and used to call it in Scheduler. But this one is so simple. Thanks for sharing, Bill.

    Mike wrote on April 3, 2011 at 12:04 pm:
    In my windows 7 there is no “System and Security” icon in the control panel.

    In Windows, you can find most of the System Tools by going to, All Programs > Accessories > System Tools. It works the same way in Windows7 too.

  41. Craig says

    May 17, 2011 at 11:33 am

    This was very helpful thank you. We have one of those keyboards with multimedia remotes that we bound a button to do something similar. Thanks again

  42. Rana Furqan Ali says

    May 24, 2011 at 6:34 am

    Im impressed. thankx for your help dude. I am really really impress that your have a deap knwoledge of Widows 7 and once again thankx for sharing your knowledge.

  43. Rajasthan Tours says

    May 24, 2011 at 6:43 am

    Hi i found you blog on google and found it both interesting and lnformative. Can You Provide A list Of all shortcats for Window 7 and window Xp

  44. Ashley Morrison says

    May 30, 2011 at 10:05 am

    My keyboard has one of the silly sleep buttons which you always seem to press by accident. That aside I like W7 but like a few of the posters probably don’t use it to it’s fullest potential.

  45. Khalid says

    June 4, 2011 at 12:01 am

    To Ashley Morrison,
    You can change the action that takes place when you press the sleep button from keyboard.
    Go to Control Panel > System & Security, Under Power Options, click on “Change what power buttons do”
    Here you can change your sleep button to “Do Nothing” or other.

  46. Peter says

    June 6, 2011 at 9:13 pm

    Thanks a lot. I was wondering how to do this and this post made it easy.

  47. Thomas@Monoreillerergonomique says

    June 9, 2011 at 3:51 am

    Very interesting, I tried it but I’m not used with the command.exe… I’m really a newbie with computers but I don’t give up 🙂

  48. Kerosene says

    June 19, 2011 at 9:45 am

    Great little tutorial. I’m using this to turn off my PC when it has finished recording TV shows in the middle of the night.

  49. Leo says

    June 21, 2011 at 2:45 am

    I tried and I made it! Thank you very much for the detailed guide for dummies (:

« Older Comments
Newer Comments »

Trackbacks

  1. Scheduled Shutdown | Stuart's Blog says:
    November 15, 2010 at 1:12 pm

    […] found a Batch file way of doing it, and the Manual option. This entry was posted in Uncategorized. Bookmark the permalink. ← Vodafone […]

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.

Primary Sidebar

Get Exclusive
Tech Tips

Learn tech topics
with exclusive tips and insights
that I only share with my private
newsletter subscribers.

Popular YouTube Videos

  • An Introduction to Ubuntu 8.04 (over 50,000 views)
  • Running Self-Hosted WordPress - 1 of 3
  • Running Self-Hosted WordPress - 2 of 3
  • Running Self-Hosted WordPress - 3 of 3

Subscribe to my YouTube Channel


YouTube Channel

Categories

Copyright © 2025 · Privacy Policy and Disclaimer · Hosting by HostGator