ADMX Viewer →

Build your own ADMX

An ADMX file tells Group Policy which registry values your app reads and how to show them in the editor. Start from the registry values your app already uses, or fill in the form, and get a matching .admx and .adml. If you make software, you also get a docs page and an Intune table to publish with them. A real ADMX parser checks both files in this browser before you download them, and nothing is uploaded.

Builder

Start from your registry values (.reg export, reg query output, or one value per line)

Paste a .reg file, the output of reg query "HKLM\Software\Policies\YourCompany" /s, or lines like HKLM\Software\Policies\Contoso\Notes\DisableSync = 1. HKLM values become computer settings and HKCU values user settings. Each subkey becomes its own category. A 0 or 1 DWORD becomes on/off, any other DWORD a number, and strings become text.

Import replaces the categories and settings below.

Categories

The folders under Administrative Templates. Give one a parent to nest it.

Settings

How it looks in the Group Policy editor

Click a folder, then a setting. Set it to "Enabled" to see the registry value it writes.

Local Group Policy Editor

    Download and publish

    The docs page lists every setting with where it shows in the editor, the registry value each state writes, and its Intune OMA-URI. Put the Markdown in your GitHub repo or docs site, or host the HTML as it is.

    Intune

    Customers can import the .admx in the Intune admin center (Devices > Configuration > Import ADMX). For a custom profile, they add the template once and then each setting, all with data type String:

    .admx

     

    .adml (en-US)

     

    How the two files fit together

    • The .admx holds the structure: a namespace and prefix that no other template uses, the categories, and one <policy> per setting with its registry key, value name and what "Enabled" and "Disabled" write.
    • The .adml holds the words for one language: every $(string.Id) the ADMX points to, and the option boxes ($(presentation.Id)). It goes in a language folder such as en-US with the same file name.
    • The registry key should be under Software\Policies. Group Policy removes values it wrote there when a setting goes back to "Not configured"; anywhere else they stay behind on the machine.
    • class is Machine (HKLM, Computer Configuration), User (HKCU) or Both.
    • Intune won't ingest a template that writes under System, Software\Microsoft or Software\Policies\Microsoft, apart from a few Office and Explorer keys. A key of your own under Software\Policies\YourCompany works everywhere.

    The smallest working template

    One on/off setting. Save the first as Contoso_Notes.admx and the second as en-US\Contoso_Notes.adml.

    Contoso_Notes.admx

    <?xml version="1.0" encoding="utf-8"?>
    <!-- Contoso Notes policy template. Made with https://getrff.com/admx/build/ -->
    <policyDefinitions xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.0" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
      <policyNamespaces>
        <target prefix="contoso" namespace="Contoso.Policies.Notes" />
      </policyNamespaces>
      <resources minRequiredRevision="1.0" />
      <supportedOn>
        <definitions>
          <definition name="SUPPORTED_ANY" displayName="$(string.SUPPORTED_ANY)" />
        </definitions>
      </supportedOn>
      <categories>
        <category name="Cat_Contoso_Notes" displayName="$(string.Cat_Contoso_Notes)" />
      </categories>
      <policies>
        <policy name="DisableSync" class="Machine" displayName="$(string.DisableSync)" explainText="$(string.DisableSync_Help)" key="Software\Policies\Contoso\Notes" valueName="DisableSync">
          <parentCategory ref="Cat_Contoso_Notes" />
          <supportedOn ref="SUPPORTED_ANY" />
          <enabledValue><decimal value="1" /></enabledValue>
          <disabledValue><decimal value="0" /></disabledValue>
        </policy>
      </policies>
    </policyDefinitions>
    

    en-US\Contoso_Notes.adml

    <?xml version="1.0" encoding="utf-8"?>
    <policyDefinitionResources xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" revision="1.0" schemaVersion="1.0" xmlns="http://schemas.microsoft.com/GroupPolicy/2006/07/PolicyDefinitions">
      <displayName>Contoso Notes</displayName>
      <description>Contoso Contoso Notes policy settings</description>
      <resources>
        <stringTable>
          <string id="Cat_Contoso_Notes">Contoso Notes</string>
          <string id="SUPPORTED_ANY">Any version of Contoso Notes</string>
          <string id="DisableSync">Turn off sync</string>
          <string id="DisableSync_Help">Stops Contoso Notes from syncing.</string>
        </stringTable>
        <presentationTable>
    
        </presentationTable>
      </resources>
    </policyDefinitionResources>
    

    Install and test it

    1. Copy the .admx to C:\Windows\PolicyDefinitions and the .adml to C:\Windows\PolicyDefinitions\en-US (or the Central Store for a domain).
    2. Open gpedit.msc (or the Group Policy Management Editor). Your categories are under Administrative Templates.
    3. Set a policy, run gpupdate, and check the value under the registry key you chose.
    4. For Intune, import the .admx under Devices > Configuration > Import ADMX.

    How ADMX works, the Central Store, and the errors you'll meet · Drop your own ADMX into the viewer

    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.