How To Automatically Shut Down Your Windows 7 Computer

    

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.

    

{ 159 comments… read them below or add one }

151 Ls 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.

152 dustinfox 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.

153 Ls December 16, 2011 at 12:54 am

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

154 dustinfox 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”

155 Ls December 16, 2011 at 2:12 pm

dustinfox: you are awesome. thank you!

156 Shams December 28, 2011 at 10:12 pm

Thanks Bro. Helped me a lot.

157 K. 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!” …?

158 Drew January 9, 2012 at 7:28 pm

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

159 Bill 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.

Leave a Comment

Comment Policy: Please leave the best comment you can. Comments like, "Hey Nice Post" or comments that have been automated and make no sense, will be deleted. Feel free to argue when necessary, but no name calling. They will be edited out. I appreciate it and others will too.

CommentLuv badge

{ 14 trackbacks }

Previous post:

Next post:

Real Time Analytics