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

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

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 The task can have a delayed start after Logon; the time duration of the delayed start is equal to the delay value.