decimal Element (elements)
Applies To: Windows Server 2008
The decimal element sets the registry value to the specified numeric value when a policy setting is enabled through the Group Policy Object Editor. The decimal element determines whether the registry key will be created as a REG_DWORD or REG_SZ when storing the numeric value.
Syntax
<decimal id="<placeholderID>"
clientExtension="<placeholderGUID>"
key="<placeholderRegKey>"
valuename="<placeholderName>"
required="true|false"
minValue="<placeholderMinValue>"
maxValue="<placeholderMaxValue>"
storeAsText="true|false"
soft="true|false" />
Attributes
Attributes | Required | Description |
---|---|---|
Yes |
A mapping to the decimal element. |
|
No |
The client-side extension will process, on the client computer, the particular settings represented by the decimal element. |
|
No |
The registry key location under which the registry value will be created. |
|
Yes |
The registry value that will be configured for this specific policy element. |
|
No |
Requirement to enter a value in the parameter box. |
|
No |
The minimum allowed value. |
|
No |
The maximum allowed value. |
|
No |
If true, store the decimal value as a REG_SZ registry value. |
|
No |
This attribute flags whether to overwrite an existing subkey. |
Child elements
There are no child elements associated with this element.
Remarks
The decimal element is associated with either a spin box or numeric text entry box parameter in the Group Policy Object Editor. The decimal element will require a matching decimalTextBox element in the corresponding .adml file with matching id attribute as declared in the decimal element.
Examples
This XML fragment is an example of a decimal element thatis associated with a spin box that uses the default zero minimum value and a maximum value of 599940. The value will be stored as a text string, REG_SZ.
<decimal id="Sample_NumericTextLabel"
valueName="Example2NumericSpin"
maxValue="599940" storeAsText="true" />