StartWhenAvailable (settingsType) Element

Specifies that the Task Scheduler can start the task at any time after its scheduled time has passed.

<xs:element name="StartWhenAvailable"
    type="boolean"
    default="false"
    minOccurs="0"
 />

The StartWhenAvailable element is defined by the settingsType complex type.

Parent element

Element Derived from Description
Settings settingsType Contains the settings that the Task Scheduler uses to perform the task.

Remarks

This property applies only to timed tasks.

For C++ development, see StartWhenAvailable Property of ITaskSettings.

For script development, see TaskSettings.StartWhenAvailable.

Examples

The following XML defines a settings element that allows the Task Scheduler to start the task when it is available.

<Settings>
    <StartWhenAvailable>true</StartWhenAvailable>
</Settings>

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