Share via


enabledList Element

Applies To: Windows Server 2008

The enabledList element is used to set the multiple registry values when a policy setting is enabled through the Group Policy Object Editor.

Syntax

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

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 enabledList element is an optional element. If you use the enabledList element when defining a policy element, you must define at least one item element. If not, the Group Policy Object Editor will display an error.

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

Examples

This XML fragment is an example of three registry values set to either a string or decimal value when a policy setting is configured to the enabled state.

      <enabledList>
        <item key="Software\Policies\Examples" valueName="Example2ActionList1">
          <value>
            <string>1</string>
          </value>
        </item>
        <item key="Software\Policies\Examples" valueName="Example2ActionList2">
          <value>
            <decimal value="11" />
          </value>
        </item>
        <item key="Software\Policies\Examples" valueName="Example2ActionList3">
          <value>
            <string>String3</string>
          </value>
        </item>
      </enabledList>

Additional references

policy Element