Windows Dev Center

Expand Minimize

DisplayName (principalType) Element

Specifies the name of the principal that is displayed in the Task Scheduler UI.

<xs:element name="DisplayName"
    type="string"
 />

The DisplayName element is defined by the principalType complex type.

Parent element

ElementDerived fromDescription
Principal principalType

Specifies the security credentials for a principal.

Remarks

For scripting development, the display name of the principal is specified using the Principal.DisplayName property.

For C++ development, the display name of the principal is specified using the IPrincipal::DisplayName property.

Examples

The following XML defines a using a group identifier and a display name.


<Principal>
    <GroupId></GroupId>
    <DisplayName></DisplayName>
 </Principal>

The following XML defines a principal using a user identifier and a display name.


<Principal>
    <UserId></UserId>
    <LogonType></LogonType>
    <DisplayName></DisplayName>
 </Principal>

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

See also

Task Scheduler

 

 

Community Additions

ADD
Show:
© 2015 Microsoft