enum

An enumeration element in a policy.

Element hierarchy

<policyDefinitions>
<policies>
<policy>
<elements>
<enum>

Syntax

<enum id               = string
      clientExtension? = GUID
      key?             = registryKey
      valueName?       = registryValueName
      required?        = boolean : "false" >

  <!-- Child elements -->
  item*

</enum>

Key

?   optional (zero or one)

:   default value

*   optional (zero or more)

Attributes and Elements

Attributes

Attribute Description Data type Required Default value
clientExtension

The GUID of the extension.

GUID No
id

Identifies the element.

string Yes
key

A valid registry key path (without reference to local system or user hive).

registryKey No
required

True if the element is required.

boolean No false
valueName

A valid registry value name.

registryValueName No

 

Child Elements

Child Element Description
[item (in type: EnumerationElement)](element-4-item.md)

One of the values in an EnumerationElement.

 

Parent Elements

Parent Element Description
[elements](element-elements.md)

Defines the types of optional parameters defined in a policy setting. The number and type of PolicyElements must match the policy presentation elements.

 

Requirements

Namespace

https://www.microsoft.com/GroupPolicy/PolicyDefinitions