Share via


trueList Element

Applies To: Windows Server 2008

The trueList element is used to set the multiple registry values when a boolean element is set to the true state.

Syntax

     <trueList defaultKey="<placeholder for registry subkey>">
       <item> … </item>
     </trueList>

Attributes

Attributes Required Description

defaultKey Attribute

No

Represents a default registry subkey for all items.

Child elements

Element Required Description

item Element

Yes

Represents a registry subkey with an associated value.

Note

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

Remarks

The trueList element is an optional element. If you use the trueList element when defining a boolean element, you must define at least one item element. If not, the Group Policy Object Editor will display an error.

You can define a maximum of one trueList element for a boolean element.

There is no limit to the number of items that can be defined for a single trueList element.

Examples

The XML fragment is an example of three registry values set to either a string or decimal value for a boolean element true state.

      <trueList>
        <item key="Software\Policies\Examples" valueName="ExampletrueList1">
          <value>
            <string>1</string>
          </value>
        </item>
        <item key="Software\Policies\Examples" valueName="ExampletrueList2">
          <value>
            <decimal value="11" />
          </value>
        </item>
        <item key="Software\Policies\Examples" valueName="ExampletrueList3">
          <value>
            <string>String3</string>
          </value>
        </item>
      </trueList>

Additional references

boolean Element