Share via


key Attribute

Applies To: Windows Server 2008

The key attribute specifies a string that represents the name of the registry subkey

Syntax

key="<placeholder for registry key>"

The registry subkey will be specified from the node directly under Administrative Templates.

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 Group Policy Management Console or the Local Group Policy Editor will display an error if both the defaultKey attribute and the key attribute for an item element do not exist.

Examples

This XML fragment identifies the registry key under which all policy setting's values from both sample files will be placed.

key="Software\Policies\Examples"

Additional references

policy Element

item Element