Export (0) Print
Expand All
Expand Minimize

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.

<decimal id="<placeholderID>"
         clientExtension="<placeholderGUID>"
         key="<placeholderRegKey>"
         valuename="<placeholderName>"
         required="true|false" 
         minValue="<placeholderMinValue>"
         maxValue="<placeholderMaxValue>"
         storeAsText="true|false" 
         soft="true|false" />

 

Attributes Required Description

id Attribute

Yes

A mapping to the decimal element.

clientExtension Attribute

No

The client-side extension will process, on the client computer, the particular settings represented by the decimal element.

key Attribute

No

The registry key location under which the registry value will be created.

valueName Attribute

Yes

The registry value that will be configured for this specific policy element.

required Attribute

No

Requirement to enter a value in the parameter box.

minValue Attribute

No

The minimum allowed value.

maxValue Attribute

No

The maximum allowed value.

storeAsText Attribute

No

If true, store the decimal value as a REG_SZ registry value.

soft Attribute

No

This attribute flags whether to overwrite an existing subkey.

There are no child elements associated with this element.

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.

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" />

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

Community Additions

ADD
Show:
© 2014 Microsoft