2.5.3 Triggers Schema Part

If present, the Triggers schema part specifies the state change or time occurrence and frequency that the task will be started within the predefined time boundaries. The triggers control when the task is to be started based on time, events, or built-in system changes. If the part contains multiple triggers, the task can be started on the first occurring trigger.

 <!-- Triggers -->
 <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>