Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Task Scheduler : Create Shut Down PC Automatically Task


Task Scheduler : Create Shut Down PC Automatically Task

How to Create a Task that will Shut Down the PC Automatically
Published by Bare Foot Kid
04 Jul 2010
Published by

How to Create a Task that will Shut Down the PC Automatically

This will show a very easy way to create a task in the Task Scheduler that will shut down the PC whenever you like. This will work for Windows 7 and Windows Vista.
Let's get started!
1) In the Windows start menu search box type "Task Scheduler" (without the quotes) right click the entry and select "Run as Administrator" then enter your user credentials for the UAC prompt and click "Yes" to open the Task Scheduler.
click an image to enlarge
Name:  Search.jpg
Views: 119420
Size:  83.9 KB
Name:  UAC Task.jpg
Views: 119158
Size:  116.9 KB
2) In the left pane of Task Scheduler, click on Task Scheduler Library, then in the "Actions" menu in the right pane click on Create Task.
-create.jpg
3) In the Create Task window under the General tab, set a name and description for the task then dot "Run whether user is logged on or not" then put a check/tick at "Run with highest privileges", be sure to set the "Configure for:" for your flavor of Windows, then continue on to #4 below.
-general.jpg
4) Now at the Actions tab at the lower left click "New", in the "New Action" dialog box leave "Action" set at "Start a program" at "Program/script:" type shutdown.exe then at "Add arguments" type /s /f (take note of the space between the /s and /f) then click OK.
-action-new.jpg
-new-action.jpg
5) Now at the Triggers tab at the lower left click "New" in the "New Trigger" dialog box set the parameters that you want for the task, as everyone's needs will be different, I just highlighted a few of the ones that need to be set to give some ideas.
-triggers-new.jpg
-set-trigger2.jpg
6) After you have the Triggers set click "OK", you will then be prompted to enter your user credentials one last time and then click "OK" to finish creating the task. That's it the task has been created, at "File" click "Exit" to close the Task Scheduler.
-password.jpg
-exit.jpg
Note   Note

Be sure to have a look at the "Conditions" tab if you need to add any parameters that must be met before the task is able to run.
-condidions.jpg
Should the PC be in use at the scheduled shutdown time you will get a dialog box stating that you are about to be logged off.
Name:  Warning.jpg
Views: 117858
Size:  45.2 KB
Enjoy!

04 Jul 2010   #1
derekimo

Microsoft Community Contributor Award Recipient

 
 

Nice work Ted, easy to follow too!


My System SpecsSystem Spec
04 Jul 2010   #2
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Thanks Derek!
My System SpecsSystem Spec
05 Jul 2010   #3
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

Very nice Ted, you do good work. A Guy
My System SpecsSystem Spec
.

05 Jul 2010   #4
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Quote   Quote: Originally Posted by A Guy View Post
Very nice Ted, you do good work. A Guy




Thank you!
My System SpecsSystem Spec
24 Jul 2010   #5
Dave76

Microsoft Community Contributor Award Recipient

Windows 7 Ult x64 - SP1/ Windows 8 Pro x64
 
 

Great work Ted, well done
My System SpecsSystem Spec
24 Jul 2010   #6
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

Thanks Dave, I'm pleased you find it useful.
My System SpecsSystem Spec
05 Jan 2012   #7
sonshi

Windows 7 Pro 64bit SP1
 
 

hi Bare Foot Kid:

Is there a way to make pc auto restart using the same method?
My System SpecsSystem Spec
05 Jan 2012   #8
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

Hello Sonshi, and welcome to Seven Forums.

Yes. You could use the same tutorial, but just substitute the arguments in step 4 with /R instead to restart the computer.

Hope this helps,
Shawn
My System SpecsSystem Spec
05 Jan 2012   #9
sonshi

Windows 7 Pro 64bit SP1
 
 

Thank you Blink.

I did exactly that. And it work. except that I needed to type my login password to start Windows.

Windows needs user password in order to use run Task Scheduler and password is again needed to login.

How can I solve this?
My System SpecsSystem Spec
Comment

 Task Scheduler : Create Shut Down PC Automatically Task




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Task Scheduler - Create Task to Display a Message Reminder
How to Display a Message Reminder in Windows with Task Scheduler This will show you how to create yourself, or another user or group, a message reminder scheduled to display for when and how often you like in Windows 7 or Vista using Task Scheduler. All users on the computer will be able to...
Tutorials
Task Scheduler - Create New Task
How to Create Automated Task that Runs at Set Time in Windows 7 A very handy feature within Vista, Windows Server 2008 & now Windows 7 is the Task Scheduler. This app will allow the automated running of files and programs at a user designated time. Here's How: 1. Open up Task...
Tutorials
Can't create a task in task scheduler, account unknown.
"Task scheduler cannot create the task. The user account is unknown, the password is incorrect, or the user account does not have permission to create this task." I'm getting that message. I read you needed a passworded account to create a task, so I made a new account because I didn't want a...
General Discussion
Task Scheduler - Shut down IE9
I have a scheduled task that runs, using IE9. In Windows 7 Pro, the scheduled task Action is - Start a Program - "C:\Program Files (x86)\Internet Explorer\iexplore.exe" and the argument is "What Is My IP Address - Shows Your IP Address". It runs at the same time every night. It starts a...
Browsers & Mail
Task Scheduler problem - won´t login automatically
Hello, i have a little problem with the Task scheduler on Windows 7. I would like to use it to start a program, while my PC is at hibernation through the nighttime, so it can run while i am not at the PC. The problem is, that when i plan the Task in the Scheduler, my PC will start at the...
General Discussion
What can I shut down or delete in Task Scheduler ?
Hello all I remember that I had noting running in Task Scheduler in XP but in Win7 there seems to be a whole bunch of stuff that is there by default. Seems like a lot of it is not needed but I wouldn't really be the best to determine so can anyone point me to a tutorial or page that discusses...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 06:26.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App