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

ElementDerived fromDescription
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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

 

 

Show: