Bewerken

Delen via


TaskSettings.AllowDemandStart property

For scripting, gets or sets a Boolean value that indicates that the task can be started by using either the Run command or the Context menu.

This property is read/write.

Syntax

TaskSettings.AllowDemandStart As Boolean

Property value

If True, the task can be run by using the Run command or the Context menu. If False, the task cannot be run using the Run command or the Context menu. The default is True.

Remarks

When this property is set to True, the task can be started independent of when any triggers start the task.

When reading or writing XML for a task, this setting is specified in the AllowStartOnDemand 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