As you go through the steps to create or edit a task, you'll encounter the following terms:
• Trigger The time at which a task is scheduled to run, or the event in response to which a task is to run . A task can have multiple triggers.
• Action What the task does . Possible actions include starting a program, sending an e-mail message, and displaying a message on screen. A task can have multiple actions, in which case the actions occur sequentially in the order in which you assign them.
• Condition An additional requirement that, along with the trigger, must be met for the task to run . For example, a condition might stipulate that the task run only if the computer has been idle for 10 minutes or only if it's running on AC power
• Setting A property that affects the behavior of a task . With settings, you can do such things as enable a task to be run on demand or set retry parameters to be followed if a task fails to run when triggered .
To begin creating a new task, select the folder in the console tree where you want the task to reside. If you need to create a new folder for this purpose, right-click the folder's parent in the console tree and choose New Folder from the shortcut menu.
You can create a new task in the Scheduled Tasks snap-in either by using a wizard or by filling out the Create Task dialog box. The wizard, which you launch by choosing Create Basic Task (in the action pane or from the Action menu), is ideal for time-triggered tasks involving a single action . It's also fine for setting up a task to run when you log on or when Windows starts . For a more complex task definition, you'll need to work through the Create Task dialog box. Select the folder where you want the task to appear (in the console tree), and then choose Create Task in the action pane or from the Action menu.
The one required entry on the General tab is a name for the task; everything else is optional. The task's author is you (you can't change that), and unless you specify otherwise, the task will run in your own security context. If you want it to run in the security context of a different user or group, click Change User Or Group and fill out the ensuing dialog box.
Regardless of which user's security context the task is to run in, you have the option of allowing the task to run whether or not that user is logged on . If you select Run Whether User Is Logged On Or Not, you will be prompted for the user's password when you finish creating the task. If you don't happen to have that password, you can select Do Not Store Password. As the text beside this check box indicates, the task will have access to local resources only
Was this article helpful?