Skip to content

Latest commit

 

History

History
107 lines (78 loc) · 5.09 KB

taskschedulerschema-triggergroup-group.md

File metadata and controls

107 lines (78 loc) · 5.09 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
triggerGroup Group
Defines the trigger group.
e07e6999-d982-405b-adfd-2976707b999f
triggerGroup Task Scheduler
apiref
triggerGroup
NA
reference
05/31/2018

triggerGroup Group

Defines the trigger group.

<xs:group name="triggerGroup">
    <xs:choice>
        <xs:element name="BootTrigger"
            type="bootTriggerType"
            minOccurs="0"
         />
        <xs:element name="RegistrationTrigger"
            type="registrationTriggerType"
            minOccurs="0"
         />
        <xs:element name="IdleTrigger"
            type="idleTriggerType"
            minOccurs="0"
         />
        <xs:element name="TimeTrigger"
            type="timeTriggerType"
            minOccurs="0"
         />
        <xs:element name="EventTrigger"
            type="eventTriggerType"
            minOccurs="0"
         />
        <xs:element name="LogonTrigger"
            type="logonTriggerType"
            minOccurs="0"
         />
        <xs:element name="SessionStateChangeTrigger"
            type="sessionStateChangeTriggerType"
            minOccurs="0"
         />
        <xs:element name="CalendarTrigger"
            type="calendarTriggerType"
            minOccurs="0"
         />
    </xs:choice>
</xs:group>

Child elements

Element Type Description
BootTrigger bootTriggerType A trigger that starts a task when the system is booted.
CalendarTrigger calendarTriggerType A trigger that starts a task based on a daily, weekly, monthly, or monthly day-of-week (DOW) schedule.
EventTrigger eventTriggerType A trigger that starts a task when a system event occurs.
IdleTrigger idleTriggerType A trigger that starts a task when the computer goes into an idle state.
LogonTrigger logonTriggerType A trigger that starts a task when a user logs on.
RegistrationTrigger registrationTriggerType A trigger that starts a task when the task is registered.
SessionStateChangeTrigger sessionStateChangeTriggerType A trigger that starts a task when a Terminal Server session changes state.
TimeTrigger timeTriggerType A trigger that starts a task when the trigger is activated.

Remarks

When reading or writing XML, the elements that are defined by this group are the child elements of the Triggers element.

Requirements

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

See also

Task Scheduler