Skip to content

Latest commit

 

History

History
74 lines (42 loc) · 2.59 KB

taskschedulerschema-delay-logontriggertype-element.md

File metadata and controls

74 lines (42 loc) · 2.59 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
Delay (logonTriggerType) Element
Amount of time between when the user logs on and when the task is started.
daab29f7-5d05-4e6d-a0c0-7b83b4d0b941
Delay element Task Scheduler
apiref
Delay
Schema
reference
05/31/2018

Delay (logonTriggerType) Element

Amount of time between when the user logs on and when the task is started. The format for this string is PnYnMnDTnHnMnS, where nY is the number of years, nM is the number of months, nD is the number of days, 'T' is the date/time separator, nH is the number of hours, nM is the number of minutes, and nS is the number of seconds (for example, PT5M specifies 5 minutes and P1M4DT2H5M specifies one month, four days, two hours, and five minutes). For more information about the duration type, see https://go.microsoft.com/fwlink/p/?linkid=106886.

<xs:element name="Delay"
    type="duration"
 />

The Delay element is defined by the logonTriggerType complex type.

Parent element

Element Derived from Description
LogonTrigger logonTriggerType Specifies a trigger that starts a task when a user logs on.

Remarks

For scripting development, the logon trigger delay is specified using the LogonTrigger.Delay property.

For C++ development, the user identifier for the logon trigger is specified using the ILogonTrigger::Delay property.

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