定义 Principal 元素的属性、子元素和排序信息。
<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>
子元素
| 元素 | 类型 | 说明 |
|---|---|---|
| DisplayName | 字符串 | 指定任务计划程序用户界面中显示的主体名称 (UI) 。 |
| GroupId | nonEmptyString | 指定运行与主体关联的任务所需的用户组的标识符。 |
| LogonType | logonType | 指定运行与主体关联的任务所需的安全登录方法。 |
| ProcessTokenSidType | processTokenSidType | 指定任务可以使用的进程安全标识符 (SID) 的类型。 |
| RequiredPrivileges | requiredPrivilegesType | 指定运行任务所需的权限。 |
| RunLevel | runLevelType | 指定运行任务的权限级别。 |
| UserId | nonEmptyString | 指定运行与主体关联的任务所需的用户标识符。 |
属性
| 名称 | 类型 | 说明 |
|---|---|---|
| id | ID | 指定主体的标识符。 |
要求
| 要求 | 值 |
|---|---|
| 最低受支持的客户端 |
Windows 7 [仅限桌面应用] |
| 最低受支持的服务器 |
Windows Server 2008 R2 [仅限桌面应用] |