Skip to content

Latest commit

 

History

History
62 lines (38 loc) · 2.98 KB

taskschedulerschema-runlevel-principaltype-element.md

File metadata and controls

62 lines (38 loc) · 2.98 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
RunLevel (runLevelType) Element
Contains a value that specifies the security context level for running the task.
dc113ffa-8ac9-4dcd-a106-45295da42f46
RunLevel element Task Scheduler
apiref
RunLevel
Schema
reference
05/31/2018

RunLevel (runLevelType) Element

Contains a value that specifies the security context level for running the task. You can specify to run a task using least privileges or elevated privileges. A value of 0 specifies to run the task with lowest privileges, and a value of 1 specifies to run the task with elevated privileges.

<xs:element name="RunLevel"
    type="runLevelType"
 />

The RunLevel element is defined by the runLevelType simple type.

Parent element

Element Derived from Description
Principal (principalType) principalType Specifies the security credentials for a principal. These credentials define the security context that a task runs under.

Remarks

For C++ development, see RunLevel Property of IPrincipal.

For script development, see Principal.RunLevel.

If a task is registered using the Builtin\Administrator account or the LocalSystem or LocalService accounts, the RunLevel property is ignored. The attribute value will also be ignored if User Account Control (UAC) is turned off.

If a task is registered using the Administrators group for the security context of the task, then you must also set the RunLevel property to "HighestAvailable" to run the task. For more information, see Security Contexts for Tasks.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]