ExecutionTimeLimit (triggerBaseType) Element

The maximum amount of time that the task launched by the trigger is allowed to run. 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="ExecutionTimeLimit"
    type="duration"
 />

The ExecutionTimeLimit element is defined by the triggerBaseType complex type.

Parent element

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

Remarks

For scripting development, the execution time limit is specified using the Trigger.ExecutionTimeLimit property that is inherited by the all trigger objects.

For C++ development, the execution time limit is specified using the ITrigger::ExecutionTimeLimit property that is inherited by the all trigger interfaces.

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