Task Triggers

A trigger is a set of criteria that, when met, starts the execution of a task. Task Scheduler provides both time-based and event-based triggers that can start a task in several different ways. A given task can be started by one or more triggers. A task can have a maximum of 48 triggers.

Time-based Triggers

Time-based triggers start tasks at specified times. This includes starting the task once at a specific time or starting the task multiple times on a daily, weekly, monthly, or monthly day-of-week schedule.

Event-based Triggers

Event-based triggers start a task in response to certain system events. For example, event-based triggers can be set to start a task when the system starts up, when a user logs on to the local computer, or when the system becomes idle.

Multiple Triggers

Each task can be started by one or more triggers, allowing the task to be started in any number of ways. However, multiple triggers are implemented differently in Task Scheduler 1.0 and Task Scheduler 2.0.

In Task Scheduler 2.0, each trigger is defined by a separate trigger API that is associated with the task through the trigger collection.

In Task Scheduler 1.0, multiple triggers can be thought of as a schedule, a set of times at which the task starts. In this case, the schedule is the set of times (specified by the union of all of the triggers associated with the work item) at which a work item will execute.

Repeating A Task

Trigger Types

Trigger Interfaces

About The Task Scheduler