Partager via


resources Element (.adml)

Applies To: Windows Server 2008

The resources element in the .adml file contains the stringTable and presentationTable elements for specific MUI languages.

Syntax

<resources>
    <stringTable>…</stringTable>
    <presentationTable>…</presentationTable>
</resources>

Attributes

There are no attributes associated with this element.

Child elements

Element Required Description

presentationTable Element

No

A table of presentation elements representing parameter controls in a single Group Policy setting.

stringTable Element

No

A table of referenced localized strings.

Note

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

Remarks

The .adml file resources element contains all of the language strings and parameter presentation information needed by the .admx file. There is only one resources element for each .adml file.

Examples

This XML fragment provides an example of a resource element containing the text and presentation information for a single policy setting containing check boxes.

  <resources>
    <stringTable>
      <string id="CHECKBOXTWOTYPES_CATEGORY">Checkbox example</string>
      <string id="SAMPLE">Example 2 Policy settings</string>
      <string id="Sample_Checkbox">Sets policy setting parameter via a check box</string>
      <string id="Sample_Checkbox_Help">This is an example of a Group Policy setting that configures a parameter using a check box.

If you enable this policy setting, check box1 and check box2 will be active.
Note: Check box2 will be checked by default.

If you disable this policy setting, no check box will be active.

If you do not configure this policy setting, the value will be deleted, if currently set to a value.

Note: This policy setting changes the Example2Checkbox1 and Example2Checkbox2 registry values.</string>
    </stringTable>
    <presentationTable>
      <presentation id="Sample_Checkbox">
        <checkBox refId="Checkbox_1">First check box parameter</checkBox>
        <checkBox refId="Checkbox_2" defaultChecked="true">Second check box parameter - checked by default</checkBox>
      </presentation>
    </presentationTable>
  </resources>

Additional references

policyDefinitionResources Element