Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

text Element

Applies To: Windows Server 2008

The text element sets the specified registry value to a specified text input value when a policy setting is enabled through the Local Group Policy Editor or Group Policy Management Console.

<text id="<placeholderID>"
         soft="true\false" />


Attributes Required Description

id Attribute


A mapping to the text element.

clientExtension Attribute


The client-side extension will process, on the client computer, the particular settings represented by the text element.

key Attribute


The registry key location under which the registry value will be created.

valueName Attribute


The registry value that will be configured for this specific policy element.

required Attribute


Requirement to enter a value in the parameter box.

maxLength Attribute


The maximum number of text characters.

expandable Attribute


The registry subkey value will be created as an expandable string type (REG_EXPAND_SZ) instead of a string type (REG_SZ).

soft Attribute


This attribute flags whether to overwrite an existing subkey.

There are no child elements associated with this element.

The text element will allow for string values up to 1023 characters long. The text element is generally associated with either a text box or a combo box parameter in the Local Group Policy Editor or GPMC.

The text element will require a matching text box or combo box presentation element in the corresponding .adml file with id that matches as declared in the text element.

This XML fragment is an example of a text element that is associated with a text box. The value will be stored as a text string, REG_SZ.

        <text id="Sample_TextboxPrompt" valueName="Example2textbox" />

This XML fragment is an example of a text element that will create a string value stored as an expandable string (REG_EXPAND_SZ). The text box in this case will require a value to be input before the policy setting change can be applied in the enabled state.

        <text id="Sample_textboxExpandszPrompt" 
                  required="true" expand="true" />

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft