defaultKey Attribute

Applies To: Windows Server 2008

The defaultKey attribute specifies a default registry subkey for all items in the enabledList element, disabledList element, or valueList element


defaultKey="<placeholder for registry subkey>"


<placeholder for registry subkey> represents the registry location under which will be placed the registry entry specified in the item element.


If a key attribute is not defined for an item element, the default registry key, defaultKey attribute, defined for the enabledList element or disabledList element will be used. The Local Group Policy Editor or Group Policy Management Console will display an error if both the defaultKey attribute and the key attribute for an item element do not exist.


This XML fragment creates an enabledList element with the item elements relying on the defaultKey for the registry subkey specification.

      <enabledList defaultKey="Software\Policies\Examples">
        <item valueName="Example2ActionList1">
        <item valueName="Example2ActionList2">
            <decimal value="11" />
        <item valueName="Example2ActionList3">

Additional references

enabledList Element

disabledList Element

valueList Element