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.
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.
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.
Click image for larger view
The next screen you’ll see is the Start Date and Time screen.
Click image for larger view
The following screen is the Action screen. Let’s Start a program.
Click image for larger view
The next screen you’ll see is the Start a Program screen.
Click image for larger view
And finally the Summary screen.
Click image for larger view
Let’s take a look at our task in the 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.
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.
Click image for larger view
There you have it. Now you can automatically shutdown your Windows 7 computer.
KLR says
Hi Bill,
Can these steps be used to shutdown laptops? I followed your steps on my own laptops but the task didn’t come up in the Active Tasks list, which doesn’t bode well. Second question – if these steps do work on a laptop, will the shutdown occur if the lid of the laptop is down?
Thanks!
Ls says
KLR, I use it on my laptop and it works great but I don’t think it will work if your lid is down unless you have the laptop set to stay on even when the lid is shut.
CWF1952 says
My scheduled shutdown task would not run under Window 7 Home Premium until I changed Security Options. This procedure worked for me:
Open Task Scheduler, create task as in above article or select task.
In *TaskName* Properties (Local Computer);
Security Options/”Change User or Group” button will open:
Select User or Group.
Select “Advanced” button/”Find Now”
I selected USERS from the list and OK. (“When running the task, use the following user account” showed just my name, the task would not run.)
The Security Option default appears to be “Run only when user is logged on”
I selected “Run only with highest privileges.”
You’re done and created task should run as expected.
Bill says
CWF1952 » Awesome. Thanks for letting everyone know here.
Thiyagarajan says
@dustinfox: all is working fine, but the created task shown only in library not in the task list(i have refreshed it, count also not increased)
Second thing i tried to add(edit) the activity from library to add time and could not be able to save /t120, where to edit and save( or else i delete the activity and save with time again?)
Lesleyanneyp says
I will try this soon, I often fall asleep while working. I have to put my computer on automatic shutdown too.
Akash says
Hi thanks for showing us how to automatically shut down my PC. I have some tools running throughout the entire day. And it’s good to give my computer a break overnight. I also have it start up automatically as well. Maybe a tutorial on this topic for those who want to do this as well. (I’m not sure if you have a post on this already). Also thanks to dustinfox showing how to add a custom message when shutting down!
thiyagarajan says
guys, if the scheduled shutdown doesn’t triggers, then don’t worry ,
because for me also not triggered, then i repeated for some other time (nearby earlier schedules and kept the old schedules as it is),
it was triggering exactly for other times , suddenly what happened u know? , the required schedule also started to trigger…now i have deleted other schedules….
Rene says
Hey thx for this post, can you tell me, how does it work with windows 8 ? Windows 8 is an complete new windows, i search there a lot of the functions..
Brodie says
@bed bug boy I couldn’t get this to work either until I typed in your argument of “/s /t 300” and now it works a treat! Thanks!
dustinfox says
jamba juice man, Have you read the title subject? The idea is to schedule a shutdown LOL… Technically I suppose this could mean scheduling a time for you to go and push the power button. 🙂
anshul says
thanks for the info man,really simple and easy.
RaeAnn Thomas says
Is there any way to use the task scheduler without the windows user having a password. We have not found a way to do this. We have a generic login for students and it has no password.
RicherRed says
Hey mam, thanks a lot. Can you tell me the way to remove the task. !!!!!
dustinfox says
RicherRed, Just “right click” the task and delete it.
matt29 says
thank for this tutorial and this article. nice
J Pinter says
Good posts. But a question, maybe about Task Scheduler in general. I was asked to Diagnose a PC that was shutting down shortly after booting it up. I found that the Task Scheduler had a shutdown task scheduled for a time that the PC was most often already shut down. The question is whether a task that could NOT be done at the scheduled time will be executed later when the PC is turned on. Any ideas??
Anurag says
but sheduling the shutdown is not working in my netbook runnigg windows 7 proffesional.
i did as mentiond above…….
but………………….
can anybody help.
Jake H says
May I ask.. I had an earlier task to shut down the computer at 815am… I’ve added a recent one to shut down at 715 am.
Will it shut down my computer twice? Or will the recent task override the earlier task? If it will shut down twice, how do I get rid of the 815 task?