principalType Complex Type
Defines the attribute, child elements, and sequencing information for the Principal element.
<xs:complexType name="principalType">
<xs:all>
<xs:element name="UserId"
type="nonEmptyString"
minOccurs="0"
/>
<xs:element name="LogonType"
type="logonType"
minOccurs="0"
maxOccurs="1"
/>
<xs:element name="GroupId"
type="nonEmptyString"
minOccurs="0"
/>
<xs:element name="DisplayName"
type="string"
minOccurs="0"
/>
<xs:element name="RunLevel"
type="runLevelType"
minOccurs="0"
/>
<xs:element name="ProcessTokenSidType"
type="processTokenSidType"
minOccurs="0"
maxOccurs="1"
/>
<xs:element name="RequiredPrivileges"
type="requiredPrivilegesType"
minOccurs="0"
/>
</xs:all>
<xs:attribute name="id"
type="ID"
use="optional"
/>
</xs:complexType>
Child elements
Element | Type | Description |
---|---|---|
DisplayName | string | Specifies the name of the principal that is displayed in the Task Scheduler user interface (UI). |
GroupId | nonEmptyString | Specifies the identifier of the user group that is required to run tasks that are associated with the principal. |
LogonType | logonType | Specifies the security logon method that is required to run tasks that are associated with the principal. |
ProcessTokenSidType | processTokenSidType | Specifies the types of process security identifier (SID) that can be used by tasks. |
RequiredPrivileges | requiredPrivilegesType | Specifies the required privileges to run the task. |
RunLevel | runLevelType | Specifies the permission level that the task will be run at. |
UserId | nonEmptyString | Specifies the user identifier that is required to run tasks that are associated with the principal. |
Attributes
Name | Type | Description |
---|---|---|
id | ID | Specifies the identifier of the principal. |
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for