decimal (type: DecimalElement)

A number/decimal element in a policy. The value can be stored in either a numeric or string representation of the value.

Element hierarchy

<policyDefinitions>
<policies>
<policy>
<elements>
<decimal>

Syntax

<decimal id               = string
         clientExtension? = GUID
         key?             = registryKey
         valueName?       = registryValueName
         required?        = boolean : "false"
         minValue?        = unsignedInt : "0"
         maxValue?        = unsignedInt : "9999"
         storeAsText?     = boolean : "false"
         soft?            = boolean : "false" />

Key

?   optional (zero or one)

:   default value

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
maxValue

The maximun value of the element.

unsignedInt No 9999
minValue

The minimum value of the element.

unsignedInt No 0
required

True if the value is required.

boolean No false
soft

TBD

boolean No false
storeAsText

Set to true to store the value as text.

boolean No false
valueName

A valid registry value name.

registryValueName No

 

Child Elements

None.

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.

 

The following elements have the same name as this one, but different content or attributes:

Requirements

Namespace

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