Share via


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

Syntax

defaultKey="<placeholder for registry subkey>"

where

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

Remarks

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.

Examples

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">
          <value>
            <string>1</string>
          </value>
        </item>
        <item valueName="Example2ActionList2">
          <value>
            <decimal value="11" />
          </value>
        </item>
        <item valueName="Example2ActionList3">
          <value>
            <string>String3</string>
          </value>
        </item>
      </enabledList>

Additional references

enabledList Element

disabledList Element

valueList Element