I use Microsoft Task Scheduler for a couple of different jobs and over time I’ve found that different jobs require different “tricks” to get them to work properly. I’m going to try to summarize some of those tips & tricks here for you.
First though, I’m going to quickly sketch out how to create a simple task in Task Scheduler. If you are already comfortable with creating tasks feel free to skip to the Tips & Tricks section below.
As an example task – I will walk you through creating a scheduled pop-up reminder in Task Scheduler.
- In Windows 7 or Windows 8, press the Windows key to bring up your start menu/page and type “Task Scheduler”
- Open the program with that name
- On the right hand side of the window, click the “Create Task” button in the “Actions” list
- Type a name for your task in the “Name” field
- In the “Configure for:” drop down menu at the bottom of the screen, choose the operating system that you are using (for some reason on Windows 7, this menu defaults to Vista.)
- Select the “Triggers” tab along the top of the window
- Click the “New…” button
- Select from the various options what type of schedule you would like your task to run on. For this example, I have chosen to begin the task on a schedule, Daily, Repeat task every 30 minutes for a duration of “Indefinitely”
- Click the “OK” button
- Select the “Actions” tab along the top of the window
- Click the “New” button
- From the “Action” pull down menu, I have selected “Display a message”
- Title: Reminder!
- Message: Stand up & stretch!
- Click the “OK” button
- Select the “Conditions” tab along the top of the window
- Depending on the task, I usually deselect the “Stop if the computer switches to battery power” and “Start the task only if the computer is on AC power” options.
- Select the “Settings” tab along the top of the window
- Select the “Run task as soon as possible after a scheduled start is missed”
- Change the “Stop the task if it runs longer than:” option to 1 hour. This will keep a task from running in the background chewing up processing power if it fails to exit cleanly
- Click “OK”
- On system start-up – if your task calls a batch job, and keeps failing to execute, you may need to grant your user(s) the “Logon as a batch job” permission
- To do so: In the Control Panel, open Administrative Tools, then Local Security Policy (Or simply type “Local Security Policy” in your start menu)
- Beneath Security Settings, open Local Policies and highlight User Rights Assignment
- Locate Log on as a batch job. Open the properties and add any users that need this permission
- When finished, save your changes and close the Local Security Settings window
- Your changes should take effect immediately. To make changes to the Domain Security Policy, on a domain controller, use the Domain Security Policy utility in the Control Panel
- Instead of choosing to start a task when the system starts, choose “At logon” with the check-box for “Any user” checked. Sometimes a program will behave better if you start it at log on instead of at system start-up.
- If you have a lot of programs that start at system start-up or user log on, you may want to stagger your tasks to start over 30 seconds or a minute after logon to try to give the computer a break between tasks. This can help keep your computer from freezing up, trying to start so many programs at once.
- Try experimenting with calling batch files on a scheduled basis. You can automate many different chores this way. Examples that I run including automating file backups, automating e-mail backups, reminders to stand & stretch, automatically start programs at logon, deleting temporary file directories on a regular basis, etc.
You now have a basic reminder set to go off every 30 minutes to help you keep your blood flowing while you read my long tutorials😉
Okay, now for some more detailed Tips & Tricks.