IntuneTroubleshooting

Importing custom ADMX templates into Intune: upload errors, dependencies and fixes

Why custom ADMX and ADML uploads fail in Intune (missing namespaces, combo boxes, language and size limits), how to fix each one and how to prove the settings reached the device.

Importing a vendor's ADMX template is the quickest way to manage an app the settings catalog doesn't cover, but Intune's import is strict: one missing dependency or unsupported element and the template never becomes usable. In this post I'll go through the failures you're likely to meet, what causes each one, how to fix it, and how to prove the settings reached a Windows device.

Errors this guide fixes

  • ADMX file referenced not found NamespaceMissing:Microsoft.Policies.Windows. Please upload it first.Intune admin center (Import ADMX)
  • Object reference not set to an instance of an objectIntune admin center (Import ADMX)
How this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (5 steps: Check dependencies before you upload; Import in dependency order; Work within the limits; Replace a template that's already imported; Check where the settings write). 4. Verify the fix. 5. Prevent it next time. Toolbox: Device configurations › Delete, Import ADMX › Import, Windows.admx, firefox.admx, mozilla.admx.1Symptoms2Why it happens3How to fix it4Verify the fix5Prevent it nexttime1Checkdependencies bef…2Import independency order3Work within thelimits4Replace a templatethat's already imp…5Check where thesettings writeTOOLBOXDevice configurations › DeleteImport ADMX › ImportWindows.admxfirefox.admxmozilla.admxHow this guide is organised: Symptoms → Why it happens → How to fix it → Verify the fix → Prevent it next timeFlow diagram of the article's sections in reading order: 1. Symptoms. 2. Why it happens. 3. How to fix it (5 steps: Check dependencies before you upload; Import in dependency order; Work within the limits; Replace a template that's already imported; Check where the settings write). 4. Verify the fix. 5. Prevent it next time. Toolbox: Device configurations › Delete, Import ADMX › Import, Windows.admx, firefox.admx, mozilla.admx.1Symptoms2Why it happens3How to fix it1Check dependencies before you upload2Import in dependency order3Work within the limits4Replace a template that's already imported5Check where the settings write4Verify the fix5Prevent it next timeTOOLBOXDevice configurations › DeleteImport ADMX › ImportWindows.admxfirefox.admxmozilla.admx
At a glance: how this guide is organised · 5 fix steps · 5 key tools

Note: Custom ADMX import is still labelled public preview, and the profile type is called Imported Administrative templates (Preview). Check the settings catalog first: many popular apps, Google Chrome included, are already built in (see choosing the right Intune policy type).

Symptoms#

  • On the Import ADMX tab, the template shows a failed status instead of Available.
  • The upload is rejected with a namespace error such as ADMX file referenced not found NamespaceMissing:Microsoft.Policies.Windows. Please upload it first.
  • A newer version of an already imported template fails with a namespace error.
  • The upload fails with a generic message; admins have reported errors such as Object reference not set to an instance of an object.
  • The import works, but devices report errors for some settings or the app never sees the policy.

Why it happens#

Intune parses the ADMX and ADML on upload and turns each policy into a setting. On the device, Windows ingests the template through the Policy CSP and writes the registry values it defines. Most failures come down to one of these:

CauseWhat you seeWhat's going on
Missing dependencyNamespaceMissing:<namespace>The ADMX uses another template's namespace (firefox.admx needs mozilla.admx; some files need Windows.admx) that isn't imported yet.
Namespace already importedNamespace error on a new versionIntune won't import a file whose settings already exist from an earlier upload.
Combo boxImport failsThe combo box setting type isn't supported yet; all other types are.
LimitsUpload rejectedAt most 20 imported ADMX files, each file 1 MB or smaller, one ADML per ADMX, en-US ADML only.
Mismatched ADMLImport errorAn ADML from another release can lack strings or presentation elements the ADMX refers to.
Protected registry locationSettings fail on devicesWindows doesn't let ingested templates write to protected parts of the registry.
Missing permissionCan't set a setting back to Not configuredThat needs Device configurations › Delete, included in the built-in Policy and Profile Manager role.

How to fix it#

1. Check dependencies before you upload#

Open the ADMX in a text editor and find the policyNamespaces node. target is the file's own namespace; every using element is a template that must already be imported. In Microsoft's example, kerberos.admx depends on Windows.admx:

XML
<policyNamespaces>
  <target prefix="kerberos" namespace="Microsoft.Policies.Kerberos" />
  <using prefix="windows" namespace="Microsoft.Policies.Windows" />
</policyNamespaces>

For a whole folder of templates, let PowerShell list them:

PowerShell
Get-ChildItem -Path 'C:\ADMXTemplates' -Filter *.admx | ForEach-Object {
    [xml]$admx = Get-Content -Path $_.FullName -Raw
    $ns = $admx.policyDefinitions.policyNamespaces
    [pscustomobject]@{
        File      = $_.Name
        Namespace = $ns.target.namespace
        DependsOn = ($ns.'using'.namespace) -join ', '
    }
}

2. Import in dependency order#

  1. Delete the failed entry from the Import ADMX tab.
  2. Go to Devices › Manage devices › Configuration › Import ADMX › Import. Upload the prerequisite first (for Firefox, mozilla.admx) with its ADML from the en-US folder, confirm the language, then select Next and Create.
  3. Select Refresh until it shows Available.
  4. Import the dependent pair (firefox.admx and firefox.adml).

If the missing namespace is Microsoft.Policies.Windows, first import Windows.admx from C:\Windows\PolicyDefinitions and Windows.adml from its en-US subfolder. Use it only as a parent namespace; configure Windows' own settings in the settings catalog.

3. Work within the limits#

  • Language: one en-US ADML per ADMX, taken from the same vendor download so strings and presentation IDs match.
  • Size: each file must be 1 MB or smaller.
  • Count: 20 ADMX files in total, prerequisites included. To free a slot, delete the profiles that use a template, then delete dependent files before their prerequisites.
  • Combo boxes: find them before you upload.
PowerShell
Get-ChildItem -Path 'C:\ADMXTemplates' -Recurse -Include *.adml |
    Select-String -Pattern '<comboBox' -List |
    Select-Object Path

A combo box is an ADML presentation control bound to a text element in the ADMX. For a vendor template, find the setting in the settings catalog or deliver it another way (step 5); in a template you maintain, swap it for a plain text box.

4. Replace a template that's already imported#

  1. Replace it: record the configured values, delete every profile using the template, delete the old ADMX, import the new pair and re-create the profiles in one change window.
  2. Version it: for a template you own, give the new version a different namespace (add a version number), put the new settings in it and import it alongside the original.

5. Check where the settings write#

Windows doesn't let ingested templates write under the System, Software\Microsoft or Software\Policies\Microsoft keys, apart from a short allow-list of exceptions, most of them Office-related. Check the key attribute of each policy in the ADMX; vendor templates normally write under Software\Policies\<Vendor>, which is fine. If yours targets a protected area, use the settings catalog, a Remediations script or a Win32 app instead.

Verify the fix#

  1. Every file in the chain shows Available on the Import ADMX tab.
  2. Create the profile in Devices › Manage devices › Configuration › Create › New policy: Windows 10 and later, Templates › Imported Administrative templates (Preview). Configure a setting or two and assign it to a pilot group. Whether you target users or devices, computer settings go to HKLM and user settings to HKCU.
  3. Sync a pilot device and confirm the profile reports Succeeded.
  4. On the device, check Applications and Services Logs › Microsoft › Windows › DeviceManagement-Enterprise-Diagnostics-Provider › Admin in Event Viewer for errors from the sync.
  5. Read the value from the key named in the ADMX and check the app itself; Firefox lists active policies on about:policies.
PowerShell
# Key and value names come from the <policy> element in the ADMX
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Mozilla\Firefox' -ErrorAction SilentlyContinue

Still failing? The MDM diagnostic report shows what the device received; see Finding and fixing Intune policy conflicts with the MDM diagnostic report.

Prevent it next time#

  • Import only what the settings catalog doesn't already offer.
  • Keep a folder per app with the ADMX, its matching en-US ADML and a note of its dependencies.
  • Import prerequisites first and wait for Available before the next file.
  • Treat the 20-file limit as a budget and remove templates you no longer use.
  • For your own templates, use a unique, versioned namespace, avoid combo boxes and write under Software\Policies\<YourCompany>.

References#

Written and checked against current Microsoft Learn documentation. Test changes with a pilot group before rolling them out to everyone, and if an admin center path has moved since, search for the setting name instead.

Spotted a mistake, or did this fix work differently for you? Email me or message me on LinkedIn — corrections are credited in the article.

Written by

Omer Eltayeb

Intune Subject Matter Expert in Cairo, Egypt, former Microsoft Cloud Solutions Architect, Microsoft Certified Trainer and Microsoft Innovative Educator Expert (2024–26) and Microsoft Elevate Educator Expert (2026–27). I share practical, step-by-step guides, study plans, scripts and toolkits for Microsoft Intune, Configuration Manager, Microsoft Entra ID, Microsoft Defender, Exchange and Microsoft 365 with the community.

Microsoft Certified Trainer (MCT) 2026Microsoft Innovative Educator Expert 2025–2026Microsoft Elevate Educator Expert 2026–2027ISC2 Certified Information Systems Security Professional (CISSP)Microsoft 365 Certified: Enterprise Administrator Expert (MS-102)