boolean Element

Applies To: Windows Server 2008

The boolean element sets a value based on the true and false cases in a policy setting. The boolean element is generally associated with check box parameters in the Group Policy Management Console (GPMC) or the Local Group Policy Editor.

Syntax

      <boolean id="<placeholderID>"
               clientExtension="<placeholderGUID>"
               key="<placeholderRegKey>"
               valuename="<placeholderName>">
      <trueValue> … </trueValue>
      <falseValue> … </falseValue>
      <trueList> … </trueList>
      <falseList> … </falseList>
      </boolean>

Attributes

Attributes Required Description

id Attribute

Yes

A mapping to the boolean element.

clientExtension Attribute

No

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

key Attribute

No

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

valueName Attribute

Yes

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

Child elements

Element Required Description

trueValue Element

No

Sets a value based on the true condition.

falseValue Element

No

Sets a value based on the false condition.

trueList Element

No

Sets values based on the true condition.

falseList Element

No

Sets values based on the false condition.

Note

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

Remarks

A boolean element in an .admx file will require a matching checkBox element with matching id in the corresponding .adml file.

Examples

This XML fragment is an example of defining a boolean element for true and false cases.

        <boolean id="Checkbox_1" valueName="Example2Checkbox1">
          <trueValue>
            <decimal value="1" />
          </trueValue>
          <falseValue>
            <decimal value="0" />
          </falseValue>
        </boolean>

Additional references

checkBox Element

elements Element