Partager via


falseList Element

Applies To: Windows Server 2008

The falseList element is used to set the multiple registry values when a boolean element is set to the false state.

Syntax

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

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 falseList element is an optional element. If you use the falseList 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 falseList element for a boolean element.

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

Examples

This XML fragment demonstrates the use of the falseList. The first two registry subkeys are set to a string value and a decimal value, respectively, for the boolean element false state. The third registry subkey is deleted for the boolean element false state.

      <falseList>
        <item key="Software\Policies\Examples"
                 valueName="ExamplefalseList1">
          <value>
            <string>0</string>
          </value>
        </item>
        <item key="Software\Policies\Examples"
                 valueName="ExamplefalseList2">
          <value>
            <decimal value="10" />
          </value>
        </item>
        <item key="Software\Policies\Examples"
                 valueName="ExamplefalseList3">
          <value>
            <delete />
          </value>
        </item>
      </falseList>

Additional references

boolean Element