Export (0) Print
Expand All
Expand Minimize

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.

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

 

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.

 

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.

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

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

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>

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

Community Additions

ADD
Show:
© 2014 Microsoft