Export (0) Print
Expand All
Expand Minimize

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>"

where

<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">
          <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>

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft