Skip to content

Latest commit

 

History

History
75 lines (43 loc) · 2.33 KB

tasksettings-startwhenavailable.md

File metadata and controls

75 lines (43 loc) · 2.33 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TaskSettings.StartWhenAvailable property
For scripting, gets or sets a Boolean value that indicates that the Task Scheduler can start the task at any time after its scheduled time has passed.
911de67c-baf8-4346-9b4c-e39e5f96c0fe
StartWhenAvailable property Task Scheduler
StartWhenAvailable property Task Scheduler , TaskSettings object
TaskSettings object Task Scheduler , StartWhenAvailable property
apiref
TaskSettings.StartWhenAvailable
taskschd.dll
COM
reference
05/31/2018

TaskSettings.StartWhenAvailable property

For scripting, gets or sets a Boolean value that indicates that the Task Scheduler can start the task at any time after its scheduled time has passed.

This property is read/write.

Syntax

TaskSettings.StartWhenAvailable As Boolean

Property value

If True, the property indicates that the Task Scheduler can start the task at any time after its scheduled time has passed. The default is False.

Remarks

This property applies only to time-based tasks with an end boundary or time-based tasks that are set to repeat infinitely.

Tasks that are started after the scheduled time has passed (because of the StartWhenAvailable property being set to True) are queued in the Task Scheduler service's queue of tasks and they are started after a delay. The default delay is 10 minutes.

When reading or writing XML for a task, this setting is specified in the StartWhenAvailable element of the Task Scheduler schema.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Type library
Taskschd.tlb
DLL
Taskschd.dll

See also

Task Scheduler