ADMX Viewer →

How ADMX files work

Administrative Templates are the part of Group Policy that sets registry values. Each template is two files, and each setting in the editor is a registry key and a value written by the Group Policy client.

ADMX and ADML

The .admx file is XML that defines the policies: the namespace, the categories you see in the editor, and for each setting the registry key, the value name, the class (Computer, User or both) and what "Enabled" and "Disabled" write. Settings with options (a text box, a number, a drop-down) list them as elements.

The .adml file holds the words for one language: the display names, the help text and the layout of the option boxes. It goes in a language folder next to the ADMX (en-US\, de-DE\) under the same file name. The editor needs the ADML for the language it runs in, or it shows an error for that template.

The older .adm format (one file per language, ANSI text) still loads, but every current template is ADMX.

What happens when a policy applies

  1. The Group Policy client reads the GPO and writes the policy's values: Computer settings under HKEY_LOCAL_MACHINE, User settings under HKEY_CURRENT_USER.
  2. The application reads those values. Group Policy only sets them; whether the app honours them is up to the app.
  3. "Not configured" removes the values a policy wrote under Software\Policies. A template that writes elsewhere (some older ones do) leaves the value on the machine. Admins call that tattooing.
  4. Policies re-apply about every 90 minutes and at startup or sign-in. gpupdate /force applies them now.

Every policy page in this catalog lists what "Enabled", "Disabled" and "Not configured" write, and gives you a .reg file and a script for the same values.

Install templates on one machine

  1. Download the vendor's templates. The catalog links every vendor's official download.
  2. Copy the .admx files to C:\Windows\PolicyDefinitions.
  3. Copy the .adml files from the vendor's en-US folder to C:\Windows\PolicyDefinitions\en-US.
  4. Open gpedit.msc. The settings are under Computer or User Configuration, Administrative Templates.

The Central Store (domains)

The Central Store is a PolicyDefinitions folder in SYSVOL: \\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions. Create it once by copying a full PolicyDefinitions folder there, then add vendor templates to it. SYSVOL replicates it to every domain controller, so every admin's Group Policy Management Editor sees the same templates.

When a Central Store exists, the editor reads only from it and ignores the local folder. That is the usual reason a template copied to C:\Windows\PolicyDefinitions doesn't appear.

When you update, replace the files with the new version under the same names. Keep older templates for products you still run: removing an ADMX doesn't remove its settings from GPOs, it only hides them from the editor (they show as Extra Registry Settings).

Errors you'll see

Namespace is already definedTwo ADMX files declare the same namespace, usually an old and a new copy under different file names. Delete the old one.
Resource $(string.X) could not be foundThe ADML doesn't match the ADMX: a different version, or the ADML is missing for this language. Copy the ADML from the same download.
The settings don't appearA Central Store exists and the files went to the local folder, or the ADML is missing.
A setting shows in Extra Registry SettingsThe GPO sets a value whose template isn't in the store. Add the template.

Intune and the Policy CSP

Intune doesn't read ADMX files from SYSVOL. It sets the same policies three ways:

  • Settings Catalog: Windows policies that Microsoft maps to the Policy CSP. Each Windows policy page here says whether it is mapped, from Microsoft's own DDF files, with the OMA-URI.
  • Import ADMX: third-party templates (Chrome, Zoom, your own) uploaded under Devices > Configuration > Import ADMX, then configured from Imported Administrative templates.
  • Custom OMA-URI: ingest the ADMX once, then set each policy by path. Every vendor policy page here shows the ingestion path and the value to send.

Write your own

If your app reads settings from the registry, an ADMX makes them manageable by Group Policy and Intune. Build one from a form, with a template you can copy.

Questions

What is the difference between ADMX and ADML?

The .admx file is the structure of the policies (registry key, value, options) and is the same in every language. The .adml file holds the text for one language and sits in a language folder such as en-US.

Where do ADMX files go?

C:\Windows\PolicyDefinitions on the machine where you edit Group Policy, with the .adml files in the matching language folder. In a domain, put them in the Central Store: \\<domain>\SYSVOL\<domain>\Policies\PolicyDefinitions.

Why do my new templates not show up?

If the domain has a Central Store, the Group Policy Management Editor reads only the Central Store and ignores the local PolicyDefinitions folder. Copy the files to the Central Store.

What does "Not configured" do?

For a policy under Software\Policies, Group Policy removes the values it wrote. A template that writes anywhere else leaves its values behind when you switch it back to Not configured.

ADMX Viewer is open source: github.com/deadarcher/AdmxViewer. Found a wrong registry value, a missing catalog, or a template that won't load? Open an issue, email brian@getrff.com, or use the form below.