Share via


policies Element

Applies To: Windows Server 2008

The policies element is a table of policy elements.

Syntax

  <policies>
    <policy> … </policy>
</policies>

Attributes

There are no attributes associated with this element.

Child elements

Element Required Description

policy Element

Yes

Represents a single policy setting.

Note

For simplicity of documentation, nested elements located one level down, known as child elements, will only be described for a given element.

Remarks

If there are no policy elements to be specified in this .admx file, you can omit the policies element. If you include the policies element in the .admx file, you must define at least one policy element. The policies element is defined at most once in an .admx file.

Examples

This XML fragment is an example of a single unique policy setting that sets a registry value to a decimal number, based on the policy setting enabled, disabled, or not configured state.

  <policies>
    <policy name="<placeholder for logical or friendly name>"   
     displayName="$( string.<placeholder for policy text>)"
     explainText="$( string.<placeholder for help text>)"
     key="<placeholder for registry key>" 
     valueName="Example1NoParam">
      <parentCategory ref="SAMPLE" />
      <supportedOn ref="SUPPORTED_ProductOnly" />
      <enabledValue>
        <decimal value="1" />
      </enabledValue>
      <disabledValue>
        <decimal value="0" />
      </disabledValue>
    </policy>
  </policies>

Additional references

policyDefinitions Element