Muokkaa

Jaa


RequiredPrivileges (requiredPrivilegesType) Element

Specifies the privileges that are required by the task.

<xs:element name="RequiredPrivileges"
    type="requiredPrivilegesType"
    minOccurs="0"
 />

The RequiredPrivileges element is defined by the requiredPrivilegesType complex type.

Parent element

Element Derived from Description
Principal (principalType) principalType Specifies the security credentials for a principal.

Remarks

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

Examples

The following XML defines using a group identifier and the required privileges.

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

Requirements

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

See also

Task Scheduler