Skip to content

Latest commit

 

History

History
90 lines (50 loc) · 3.49 KB

tasksettings-compatibility.md

File metadata and controls

90 lines (50 loc) · 3.49 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TaskSettings.Compatibility property
For scripting, gets or sets an integer value that indicates which version of Task Scheduler a task is compatible with.
bbe21177-e010-4770-9068-9c5b41974ee5
Compatibility property Task Scheduler
Compatibility property Task Scheduler , TaskSettings object
TaskSettings object Task Scheduler , Compatibility property
apiref
TaskSettings.Compatibility
taskschd.dll
COM
reference
05/31/2018

TaskSettings.Compatibility property

For scripting, gets or sets an integer value that indicates which version of Task Scheduler a task is compatible with.

This property is read/write.

Syntax

TaskSettings.Compatibility As Integer

Property value

Value Meaning
TASK_COMPATIBILITY_AT
0
The task is compatible with the AT command.
TASK_COMPATIBILITY_V1
1
The task is compatible with Task Scheduler 1.0.
TASK_COMPATIBILITY_V2
2
The task is compatible with Task Scheduler 2.0.

Remarks

Task compatibility, which is set through the Compatibility property, should only be set to TASK_COMPATIBILITY_V1 if a task needs to be accessed or modified from a Windows XP, Windows Server 2003, or Windows 2000 computer. Otherwise, it is recommended that Task Scheduler 2.0 compatibility be used because the task will have more features.

Tasks compatible with the AT command can only have one time trigger.

Tasks compatible with Task Scheduler 1.0 can only have a time trigger, a logon trigger, or a boot trigger, and the task can only have an executable action.

For more information about task compatibility, see What's New in Task Scheduler and Tasks.

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_COMPATIBILITY

Task Scheduler