2.2.2.2.3 ADMX/ADML File Reference Examples
The Base ADMX Schema (section 7.1) contains the definitions for the simpleTypes stringReference and presentationReference used in the language-neutral .admx file to indicate a localized item that MUST be referenced in the language-dependent .adml files. For example, in the sample .admx file in section 4.4.1, the policy with the name "Sample_Checkbox" (excerpt shown below) contains two attributes with an id defined in the language-specific .adml file; displayName and explainText indicated by the presence of the "$(string.<id>)" attribute value. It also contains a presentation attribute with an id defined in the language-specific .adml file indicated by the presence of the "$(presentation.<id>)" attribute value. In the sample .adml file in section 4.4.2, shown below, the string resources "Sample_Checkbox" and "Sample_Checkbox_Help" are defined in the <stringTable> element and the presentation "Sample_Checkbox" is defined in the <presentationTable> element.
.admx file (excerpt from the policies element)
-
<policy name="Sample_Checkbox" class="Both" displayName="$(string.Sample_Checkbox)" explainText="$(string.Sample_Checkbox_Help)" presentation="$(presentation.Sample_Checkbox)" key="Software\Policies\Examples">
.adml file (excerpt from the stringTable)
-
<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>
.adml file (excerpt from the 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>