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 New Task



Task Scheduler - Create New Task

How to Create Automated Task that Runs at Set Time in Windows 7
Published by Orbital Shark
07 Jun 2009
Default Task Scheduler - Create New Task

How to Create Automated Task that Runs at Set Time in Windows 7


information   Information
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 Scheduler by either typing "task" into the Start Menu search bar, or by opening All Programs - Accesories - System Tools.
Name:  Task Scheduler (Step 1 - Start).png
Views: 59072
Size:  65.1 KB
2. Select 'Create Basic Task' from the right hand pane and the 'Create Basic Task Wizard will open.

Task Scheduler - Create New Task-task-scheduler-step-2-opened-.png




3. With the Wizard open, type a 'Name' and 'Description' for your new task and click Next.
NOTE: The Next button will only be accessible once a 'Name' has been entered.

Task Scheduler - Create New Task-task-scheduler-step-3a-create-basic-task-.png




4. Select when you would like the event/task to run and click Next.
NOTE: For this tutorial i've selected 'Daily'.

Task Scheduler - Create New Task-task-scheduler-step-3b-create-basic-task-trigger-.png




5. Select the exact time and date at which you wish the first task to start (each task afterward will run based on your selection in step 4) then click Next.

Task Scheduler - Create New Task-task-scheduler-step-3c-create-basic-task-time-date-.png




6. Choose the action you with the task to execute from the list then click Next.
NOTE: For this tutorial i've selected 'Start a program'.

Task Scheduler - Create New Task-task-scheduler-step-3d-create-basic-task-action-.png




7. Click 'Browse' and navigate to the executable (exe) file of the program you wish to run then click Next.
NOTE: I've chosen to ignore 'Add arguments' and 'Start in'.
Task Scheduler - Create New Task-task-scheduler-step-3e-create-basic-task-select-program-.png



8. Review the task and make sure that you've set all your required information correctly. If satisfied click Finish.
Task Scheduler - Create New Task-task-scheduler-step-3f-create-basic-task-review-task-.png



9. Your new task has been created and will run at the user specified time. Click 'Refresh' and scroll the list to see your new task (in this case 'My Task'.
Task Scheduler - Create New Task-task-scheduler-step-4-check-task-.png





Note   Note
You can create a new task with the 'Create Task' option in the right hand pane, this will just open the 'Create New Task' windows without the Wizard
Name:  Task Scheduler (Create task step 1).png
Views: 58183
Size:  27.2 KB




10. If you Created a Task to Wake Up the Computer and Run
A) You would need to change how long Windows 7 will wait to go back to sleep mode automatically after waking up unattended (no activity made by the actual user) and idle. The default time is only 120 seconds (2 minutes), so you would need to set this for how long it may take for the program or task to run instead. The tutorial below can help show you how to. It will be the same in Windows 7. For how, see:

Sleep Return Timeout for Unattended Wake Up - Vista Forums

Edit/Change Task:

1. You can change you task settings at any time, just double-click the new task.
Task Scheduler - Create New Task-task-scheduler-step-5-edit-run-disable-delete-.png



OR

2. If you wish to delete the task you can just click the 'Delete' button in the right hand pane. You will get the confimation dialog upon clicking 'delete'
Name:  Task Scheduler Confirmation dialog.png
Views: 165394
Size:  8.1 KB




Published by
16 Jul 2009   #1
mikinho
Microsoft MVP

6x W2K8 R2 (x64), 6x W7 7600 (x64), 2x Gentoo (x64), 1x Ubuntu 9.04 (x64), 1x pfSense (FreeBSD)
 
 

Good tutorial. Don't forget about command line though

schtasks.exe /Create /RU "NT AUTHORITY\SYSTEM" /SC DAILY /TN "Run Notepad Daily" /TR "%SystemRoot%\notepad.exe" /ST 00:00:01


To me two of the most useful features of Vista or higher Task Scheduler are:

1- Allow you to run tasks with administrative rights at startup. This is great for apps that require admin rights and would previously run at startup via registry or start menu.

2- Triggers. You can trigger tasks (i.e. emails) based on event log errors or other events.


My System SpecsSystem Spec
17 Jul 2009   #2
Dave76

Microsoft Community Contributor Award Recipient

Windows 7 Ult x64 - SP1/ Windows 8 Pro x64
 
 

Great Tutorial.

Some programs might need 'Run as Administrator' privileges.
In the task properties, General tab, near the bottom check the 'Run with highest privileges' box.
My System SpecsSystem Spec
08 Aug 2009   #3
iseeuu

 
 

I followed this step by step, but Task Manager refuses to start the program.

Just to make sure, I followed each step for Paint.net, set a time, but no program. As I use a User account, I had to give admin privileges to open Task Manager, and I went to settings and selected to start whether admin was logged in or not and with highest privileges. This is the error log:



Where should I go from here?

Robert
My System SpecsSystem Spec
.


21 Oct 2009   #4
Pogi

Windows 2000
 
 
Task scheduler event = Low Battery

I would like to know how to access the event low battery. I am planning to initiate a program when the trigger = low battery takes place. I have searched high and low about this and just get dead-ends.

Thanks for any response.
My System SpecsSystem Spec
21 Oct 2009   #5
mikinho
Microsoft MVP

6x W2K8 R2 (x64), 6x W7 7600 (x64), 2x Gentoo (x64), 1x Ubuntu 9.04 (x64), 1x pfSense (FreeBSD)
 
 

Quote   Quote: Originally Posted by Pogi View Post
I would like to know how to access the event low battery. I am planning to initiate a program when the trigger = low battery takes place. I have searched high and low about this and just get dead-ends.

Thanks for any response.
The easiest way to get battery notifications is via the RegisterPowerSettingNotification API
My System SpecsSystem Spec
15 Feb 2010   #6
shortmantuff

Windows 7 Home Premium x86
 
 

Will task scheduler wake your computer if it is in sleep mode?
My System SpecsSystem Spec
15 Feb 2010   #7
mikinho
Microsoft MVP

6x W2K8 R2 (x64), 6x W7 7600 (x64), 2x Gentoo (x64), 1x Ubuntu 9.04 (x64), 1x pfSense (FreeBSD)
 
 

Quote   Quote: Originally Posted by shortmantuff View Post
Will task scheduler wake your computer if it is in sleep mode?
Only if you allow it to, it is an option. It is disabled by default.
My System SpecsSystem Spec
15 Feb 2010   #8
shortmantuff

Windows 7 Home Premium x86
 
 

Okay, so I have never been able browse for programs (Ex. Want to open a pdf file, need to browse for program, want to open adobe reader) What is the proper way to search for a program? Do I go into Program Files or some other path? For this particular issue, I what task scheduler to run a defrag at 3am (I put my computer to sleep so I want it to wake up and then run the defrag that is built into Windows 7). How do I browse for Disk Defrag (the path to get there in browse)?
My System SpecsSystem Spec
15 Feb 2010   #9
shortmantuff

Windows 7 Home Premium x86
 
 

Also, when I start Task Scheduler this error shows up. And how do I see task that I have created in Task Scheduler?


Attached Images
 
My System SpecsSystem Spec
Comment

 Task Scheduler - Create New Task




Tutorial Tools




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 08:59 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33