• 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. Adrian says

    July 17, 2011 at 9:34 pm

    When i try & run the last step it automatically closes any suggestions?

  2. baidyabati says

    August 9, 2011 at 7:44 pm

    i hav done all da steps….but i cant find da shutdown task in da active task list……what would be da problem??? wat shud i do??? plz e mail me da answer sir……….

  3. Andrew Hall says

    August 25, 2011 at 8:10 am

    Previously I wrote many programs to achieve this. It’s great that its now built in 🙂

  4. mus says

    August 27, 2011 at 3:54 pm

    I’ve found others too, but this is one is the most simple and helpful. thanks

  5. Jaivik Rabara says

    August 27, 2011 at 4:48 pm

    Thanks a lot dud..
    i really need for this..
    i have night unlimited plan for broadband so when i forget to close internet then it chargeable for me.
    now i can shutdown my laptop on time every day with tension free.
    thanks for hard work out and kind help.

  6. Asukicco says

    August 28, 2011 at 4:44 pm

    Hi, I’ve just now found this post while googling for automatic shutdown and this is indeed the best way to do it. Exactly what I was searching for. Thanks : D

  7. Bill says

    August 29, 2011 at 6:20 am

    Jaivik Rabara » Glad it could help.

  8. Bill says

    August 29, 2011 at 6:21 am

    Asukicco » Thanks Asukicco, glad to hear it.

  9. Bill says

    September 1, 2011 at 10:33 am

    Landantwenty » Thanks for stoppin’ by. I love Linux. However, some of us have to use Windows and like it.

  10. Bill says

    September 1, 2011 at 3:22 pm

    Okay, time to add, “Play nicely in the comments.” to my comments policy right above this box.

  11. Greg says

    September 1, 2011 at 4:12 pm

    I’m sure its possible but I don’t know how to achieve this. Can I set my system to shutdown after a certain amount of non use? say 5 hours?

  12. Maurice Arney says

    September 1, 2011 at 6:20 pm

    Bill… Why not just delete crap like that? Hateful remarks like that do not deserve space in your forum.

  13. Joe says

    September 25, 2011 at 10:08 pm

    This is a really easy setting, wonderful. I was using download program to control auto shutdown, Thanks, man. If there is an explanation on command prompt setting for shutdown.exe, that would be so cool.

  14. yakuk says

    September 28, 2011 at 5:45 pm

    wow it seems to take so much long time to automate the task that i dont think it will save me any time to automate computer shutdown.

    I usually download the automated tasks I need from this macro collection.

  15. Scott says

    October 5, 2011 at 1:24 pm

    I am unclear if this will be a set and forget thing or do you have to re-set the date every day. I have a computer dedicated to playing music and want it to shut down at 8pm every day.
    Will this setting do that?

  16. Bill says

    October 6, 2011 at 6:18 am

    Scott » Hi Scott. Yes, this will happen every day automagically.

  17. Peter says

    October 8, 2011 at 5:43 pm

    I just scheduled a task now. I didn’t even know that there is a shutdown.exe 🙂 This should be a virus 🙂

  18. AJ says

    October 17, 2011 at 6:44 pm

    Thank you so much! I keep leaving my notebook on at night, and the habit led to me frying my last notebook. Your tutorial was so easy to follow; I am definitely going to bookmark you for other PC questions!

  19. Bill says

    October 18, 2011 at 5:54 am

    AJ » Glad it helped AJ.

  20. pasco mls says

    October 23, 2011 at 11:28 am

    It’s almost the same with Windows Vista. Loved the screenshots, it made the steps easier to follow.

  21. nicole says

    October 24, 2011 at 8:00 am

    I dont think it will save me any time to automate computer shutdown..Its a very easy to setting..

  22. Heather Clyne says

    November 20, 2011 at 3:05 pm

    What does ‘add argument’ and ‘start in’ do and how to use? or where to find out such info

  23. r_ig says

    November 21, 2011 at 10:30 am

    After recently migrating from XP, I have to say it’s taken me longer than expected to grasp all the functions of Windows 7. I quick shutdown.exe is exactly what I was looking for, and as a previous poster stated, the step by step guide and pictures made it a breeze to understand.

  24. Bill says

    November 21, 2011 at 2:47 pm

    Heather Clyne » Sometimes, when you run a program like shutdown.exe, anything after that command (.exe) is referred to as an argument. However, not all programs can have arguments.

    A program must be written so it can interpret those arguments, aka command-line arguments. So “shutdown.exe /s” means the “/s” is an argument or command-line argument.

    “Start in” means what folder do you want the command to start running from? Do you want it to start running from C:\ or C:\Windows, etc.

    Hope that helped. 🙂

  25. arafinshaon says

    November 22, 2011 at 8:43 am

    Tnx dude 🙂 I didn’t know this trick :S

  26. abegail says

    November 24, 2011 at 6:07 am

    The easiest thing to do is go in the registry and change the settings:

    In the registry, go to HKEY_CURRENT_USER\Control Panel\Desktop.

    Double click on AutoEndTasks and change the value to 1 from the default value of 0

    Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

    Double click on WaitToKillServiceTimeout and change the milliseconds value. For example, if it says 3,000 milliseconds then that equals 3 seconds. Change it to 1,000 for 1 second.

  27. Rinoplastica says

    December 7, 2011 at 2:35 pm

    Wow! Great tool. It will definitely help me when the night while I sleep, the computer makes the rendering of my videos. After a couple of hours I need to get up and turn it off. Not any more.

  28. Bill says

    December 9, 2011 at 6:34 am

    building material » Just set it once and you’re good to go.

  29. Tacori says

    December 10, 2011 at 3:46 pm

    OMG, thanks for posting this. My Windows 7 froze up yesterday and I haven’t been able to shut it down. I will give this a try

  30. kingskull says

    December 13, 2011 at 3:56 am

    Thank you so much for this great tutorial,

    this work great when there is no programs need to be closed

    sometimes programs lik MS Word or Adobe Photoshop need to be closed manualy because it will ask for saving the work or not before closing it. If I set my pc to be shutdowend a screen apeear to ask if I wish to force the computer to be shutdown or not

    what I want to say is there a way to AUTO save and close programs and after that it will shutdown automaticly without losing the work?

    thanks and sorry for my English

  31. Ls says

    December 14, 2011 at 11:28 pm

    Hey, Bill. Is there any way to make it give a longer warning time than “less than a minute”? Sometimes it’s not enough time for me to save everything I’m working on or finish a conversation or whatever.

    I also wish there was a way to abort it if I am working on something important and need to keep going. Once it notifies you, it doesn’t seem to affect it if I go into task scheduler and stop it.

  32. dustinfox says

    December 15, 2011 at 3:59 am

    LS, Use the -t option to specify the number of seconds before shutdown (i.e. -t 60 -t 120 etc)

    You can type shutdown -a at a command prompt at any time to abort the shutdown. The -a option means abort.

  33. Ls says

    December 16, 2011 at 12:54 am

    dustinfox, thanks so much for the info. Do I specify the -t under ‘arguments’?

  34. dustinfox says

    December 16, 2011 at 4:51 am

    Actually, if you look at the screen shot above showing the shutdown options, it is a forward slash not a dash. So yes, you would include a /t90 if you wanted 90 seconds or a /t120 if you wanted 120 seconds.

    Here is what mine looks like:
    C:\Windows\System32\shutdown.exe /s /t 90 /c “System will be shut down in 90 seconds. Please exit all programs”

  35. Ls says

    December 16, 2011 at 2:12 pm

    dustinfox: you are awesome. thank you!

  36. Shams says

    December 28, 2011 at 10:12 pm

    Thanks Bro. Helped me a lot.

  37. K. says

    January 7, 2012 at 5:41 pm

    Hey there,
    I think I pretty much followed you’re instructions but somehow I don’t get the task started. When I see the summary screen I click Finish but the task just won’t appear in the Active Tasks List. Where’s the magic button to tell my PC: “Yes I really really do want to shut you down!” …?

  38. Drew says

    January 9, 2012 at 7:28 pm

    Can you use this to just logoff? What would the command be?

  39. Bill says

    January 10, 2012 at 12:46 pm

    Drew » Yes try the /l switch. Place it where the arguments go. See screenshot above in the middle of the article where the /s is but just use /l

    Good luck.

  40. Josh says

    February 3, 2012 at 9:02 am

    reply to K.

    Push the refresh button below that list

  41. Bill says

    February 6, 2012 at 7:35 am

    Misrosoft Vibe » Try /h that should do it.

  42. Jonathan says

    February 11, 2012 at 9:41 pm

    I don’t want to use this daily, so I just hit once. However re creating the shutdown, I have to rename it. Is there a way to pull up the old one and “re-run” it?

    Thanks

  43. Ls says

    February 13, 2012 at 12:24 am

    Jonathon, what I have done is set up the shutdown as described in this article, and then if I don’t want to use it for awhile, I just go into the Task Scheduler Library and right-click on it and select ‘disable.’ Then later when I need it again, I go in and select ‘enable’ again. That way it’s always there and you don’t have to set it up again.

  44. Jonathan says

    February 13, 2012 at 12:32 am

    Thanks, I’ll try this in a bit.

  45. Kacey says

    March 16, 2012 at 7:16 pm

    help, it doesn’t show up in the active tasks
    is it only active when it is in use?

  46. Bill says

    March 16, 2012 at 7:22 pm

    Kacey » You might try backing out of the list and going back in.

  47. roger says

    March 23, 2012 at 3:59 pm

    hi
    is there away to set this to turn a windows 7 pc back on if it is shutdown

  48. Nguyen Hoai Tra says

    March 26, 2012 at 1:10 pm

    It’s improve my schedule ! Thank you very much ! bep ga

« Older Comments
Newer Comments »

Trackbacks

  1. Timed Shutdown says:
    October 9, 2011 at 12:17 pm

    […] to put a scheduled task into gpo linked to a ou with windows 7 with this site as my starting point How To Automatically Shut Down Your Windows 7 Computer Richard Reply With Quote […]

  2. ??????? Scheduler says:
    February 15, 2012 at 2:58 pm

    […] Scheduler ??? ????? ???? ????? ???? ????? ??? ?????? ???: How To Automatically Shut Down Your Windows 7 Computer — ??? ?? ???? ?????? XP: How To Automatically Shut Down Your Windows XP Computer […]

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