BootTrigger (triggerGroup) Element

Specifies a trigger that starts a task when the system is booted.

<xs:element name="BootTrigger"
    type="bootTriggerType"
 />

The BootTrigger element is defined by the bootTriggerType complex type.

Parent element

Element Derived from Description
Triggers triggersType Specifies the triggers that start the task.

Child elements

Element Type Description
Delay (bootTriggerType) duration Specifies the amount of time between when the system is booted and when the task is started.
Enabled (triggerBaseType) boolean Specifies that the trigger is enabled.
EndBoundary (triggerBaseType) dateTime Specifies the date and time when the trigger is deactivated. The trigger cannot start the task after it is deactivated.
ExecutionTimeLimit (triggerBaseType) duration Specifies the maximum amount of time in which the task can be started by the trigger.
Repetition (triggerBaseType) repetitionType Specifies how often the task is run and how long the repetition pattern is repeated after the task is started.
StartBoundary (triggerBaseType) dateTime Specifies the date and time when the trigger is activated.

Attributes

Name Type Description
Id string The identifier of the trigger.

Remarks

For script development, a boot trigger is defined by the BootTrigger object.

For C++ development, a boot trigger is defined by the IBootTrigger object.

Examples

For a complete example of the XML for a task that specifies a boot trigger, see Boot Trigger Example (XML).

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]

See also

Task Scheduler Schema Elements

Task Scheduler