2.5.3.7 LogonTrigger

If present, the LogonTrigger specifies that the task can start at user logon.

 <!-- LogonTrigger -->
 <xs:complexType name="logonTriggerType">
   <xs:complexContent>
     <xs:extension base="triggerBaseType">
       <xs:sequence>
         <xs:element name="UserId" type="nonEmptyString" 
         minOccurs="0"/>
         <xs:element name="Delay" type="xs:duration" default="PT0M" 
         minOccurs="0"/>
       </xs:sequence>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>

UserId: If present, this field contains an account name in a format supported by the operating system. Only one UserId is to be specified in the LogonTrigger.

Delay: If present, this field contains a user-specified delay value as specified for "time duration" in section 2.5.1.1. The task can have a delayed start after Logon; the time duration of the delayed start is equal to the delay value.