Skip to content

Latest commit

 

History

History
73 lines (42 loc) · 2 KB

tasksettings-waketorun.md

File metadata and controls

73 lines (42 loc) · 2 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
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.
51f83637-5bae-48c6-b750-b4467e651cec
WakeToRun property Task Scheduler
WakeToRun property Task Scheduler , TaskSettings object
TaskSettings object Task Scheduler , WakeToRun property
apiref
TaskSettings.WakeToRun
taskschd.dll
COM
reference
05/31/2018

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