Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

item Element (enum)

Applies To: Windows Server 2008

The item element is a child element of the enum element representing a display name associated with one single value or a single value with a set of registry subkey values.

     <item    displayName="$(string.<placeholder for text>)">
       <item> … </item>


Attributes Required Description

displayName Attribute


displayName="$( string.<placeholder for name>)"

The reference to a display string located in the .adml file string table.


Element Required Description

value Element


Represents a registry entry value.

valueList Element


A list of items with an associated registry key and value.

For simplicity of documentation, nested elements located one level down, known as child elements, will only be described for a given element.

The key attribute defined in the enum element or policy element will be used to define the default registry key location for all value elements and valueList elements.

This XML fragment demonstrates the use of the item element, child element of the enum element, to configure a single choice for an enum. This could represent one choice from a drop-down list in the parameter of a policy setting.

          <item displayName="$(string.displayChoice1)">
              <decimal value="1" />
              <item key="Software\Policies\Examples\1" valueName="1">
                  <decimal value="3" />
              <item key="Software\Policies\Examples\2" valueName="2">
                  <decimal value="3" />

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

Community Additions

© 2015 Microsoft