Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

Privilege (requiredPrivilegesType) Element

Specifies the right of a task to perform various system-related operations, such as shutting down the system, loading device drivers, or changing the system time.

<xs:element name="Privilege"
    type="privilegeType"
    maxOccurs="64"
    minOccurs="1"
 />

The Privilege element is defined by the requiredPrivilegesType complex type.

Parent element

ElementDerived fromDescription
RequiredPrivileges requiredPrivilegesType

Contains the settings that the Task Scheduler uses to perform the task.

Remarks

For C++ development, this information is accessed through the IPrincipal2::RequiredPrivilege property.

Examples

The following XML defines a settings element that specifies the right of a task to perform various system-related operations, such as shutting down the system, loading device drivers, or changing the system time.


<Principal>
    <RequiredPrivileges>
        <Privilege>SeCreateTokenPrivilege</Privilege>
    </RequiredPrivileges>
</Principal>
        


Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

See also

Task Scheduler Schema Elements

 

 

Community Additions

ADD
Show:
© 2015 Microsoft