Muokkaa

Jaa


TaskSettings.WakeToRun property

For scripting, gets or sets a Boolean value that indicates that the Task Scheduler will wake the computer when it is time to run the task.

This property is read/write.

Syntax

TaskSettings.WakeToRun As Boolean

Property value

If True, the property indicates that the Task Scheduler will wake the computer when it is time to run the task.

Remarks

When the Task Scheduler service wakes the computer to run a task, the screen may remain off even though the computer is no longer in the sleep or hibernate mode. The screen will turn on when Windows Vista detects that a user has returned to use the computer.

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