soft Attribute

Applies To: Windows Server 2008

The soft attribute is a Boolean value. If true, a registry value will not overwrite a previously set value; otherwise, registry values will always be saved.




true represents only apply the registry value if no current value exists.

false represents always apply the registry value.


The soft attribute is an optional attribute, false by default. This attribute can be used in cases where you might use Group Policy to set a user configurable option for an application. Group Policy would then predefine the option if the user had not already configured it.


This XML fragment specifies a decimal element that will store its value in a REG_DWORD registry value if it doesn't currently exist.

<decimal id="Sample_NumericTextLabel"


soft="true" />

Additional references

decimal Element (elements)

text Element