text (type: TextElement)

A text element in a policy.

Element hierarchy

<policyDefinitions>
<policies>
<policy>
<elements>
<text>

Syntax

<text id               = string
      clientExtension? = GUID
      key?             = registryKey
      valueName?       = registryValueName
      required?        = boolean : "false"
      maxLength?       = unsignedInt : "1023"
      expandable?      = boolean : "false"
      soft?            = boolean : "false" />

Key

?   optional (zero or one)

:   default value

Attributes and Elements

Attributes

Attribute Description Data type Required Default value
clientExtension

The GUID of the extension.

GUID No
expandable

True if the string can be expanded.

boolean No false
id

Identifies the element.

string Yes
key

A valid registry key path (without reference to local system or user hive).

registryKey No
maxLength

The maximum length of the string.

unsignedInt No 1023
required

True if the element is required.

boolean No false
soft

TBD

boolean No false
valueName

A valid registry value name.

registryValueName No

 

Child Elements

None.

Parent Elements

Parent Element Description
[elements](element-elements.md)

Defines the types of optional parameters defined in a policy setting. The number and type of PolicyElements must match the policy presentation elements.

 

The following elements have the same name as this one, but different content or attributes:

Requirements

Namespace

http://www.microsoft.com/GroupPolicy/PolicyDefinitions