textBox Element

Applies To: Windows Server 2008

The textBox element represents a text box parameter. The textBox element must be associated with a text element defined in the elements element.

     <textBox refId="<placeholderID>">
       <label> … </label>
       <defaultValue> … </defaultValue>


Attributes Required Description

refId Attribute


A mapping to the element.


Element Required Description

label Element


String label for the text box parameter.

defaultValue Element


A default string displayed in the text box parameter.

For simplicity of documentation, nested elements located one level down, known as child elements, will only be described for a given element.

The textBox element is associated with a text box parameter in the Group Policy Management Console (GPMC) or the Local Group Policy Editor. The textBox element will require a matching text element in the corresponding .admx file with matching id attribute as declared in the presentation element containing the textBox element.

If the label element is not defined as the first child element of the textBox element, the GPMC or the Local Group Policy Editor will display an error message.

This XML fragment is an example of a textBox element with default text displayed in the text box parameter when the policy setting is enabled.

        <textBox refId="Sample_textboxExpandszPrompt">
          <label>This text box allows input of environment variables:</label>

Community Additions