Rediger

Del via


GroupId (principalType) Element

Specifies the identifier of the user group required to run those tasks associated with the principal.

<xs:element name="GroupId"
    type="nonEmptyString"
 />

The GroupId element is defined by the principalType complex type.

Parent element

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

Remarks

You cannot specify a group identifier and a user identifier at the same time. Specify either the UserId or GroupId elements, but not both.

For script development, the group identifier of the principal is specified using the Principal.GroupId property.

For C++ development, the group identifier of the principal is specified using the IPrincipal::GroupId property.

Examples

For a complete example of the XML for a task that uses this element, see Logon Trigger Example (XML).

Requirements

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

See also

Task Scheduler