ADMX: When Nature Calls

Patch My Pc | install & update thousands of apps

Today, I wrote a simple blog that will be about troubleshooting one of the ADMX upload (file referenced not found) error you could endure when uploading your own ADMX to Intune

1. Introduction

I guess with the arrival of the possibility to upload or own ADMX files we all started to play a bit with it. A good example would be the DriveMapping ADMX I am mentioning in this blog to mount some drive letters on your AADJ device if you have the need for them.

Mounting | Mapping | Managing Drive letters with Intune MDM (call4cloud.nl)

Another possibility would be to write your own ADMX to define some additional settings you can’t configure with the Settings Catalog. When you don’t have the knowledge of how to write those ADMX files yourself I got you covered in this blog

Build your own ADMX templates and deploy them into Intune (call4cloud.nl)

All good right? I guess so… until you run into some weird shit!

2. The Issue

If you skipped or maybe just read the introduction, let me show the issue that I stumbled upon. Someone reached out to me by replying to the blog I mentioned above

when importing into intune, i get the error namespaces microsoft.policies.windows does not exist and must be uploaded before

He mentions that when importing the ADMX, he ended up with the error that the ADMX file referenced was not found. Namespace Missing: Microsoft.Policies.Windows. Please upload it first.

I didn’t have that issue when I was using it! Even those nice guys on the Intune Training on YouTube didn’t have that issue when they were playing around with that ADMX file

S04E04 – Custom ADMX Ingestion & Settings Catalog With Mike Dano (I.T) – YouTube

So I decided to create a new tenant because I exceeded the amount of 10 ADMX files in my own tenant and I can’t delete them anymore (24-10-2022 –> Seems to be fixed!!)

Afbeelding met tekst  Automatisch gegenereerde beschrijving
admx removal failed

After the tenant was created I started uploading a new ADMX file I created to define some additional OneNote settings. I was asked to troubleshoot another upload error with this OneNote.admx. While uploading the ADMX I got myself another issue to fix and another blog to write!

Afbeelding met tekst  Automatisch gegenereerde beschrijving

Please Note: As shown above and as always this ADMX is calling upon Microsoft.Policies.Windows namespace. After selecting the ADMX and ADML files the upload started and I waited patiently

I waited again a minute or two but that one also failed me with the error: The Upload of this ADMX file has failed!

The upload of this admx file has failed. In the error details it mentions that the admx file referenced not found: Namespacemissing:Microsoft.policies.windows

As shown above, that error message looks pretty much like the one we noticed earlier: ADMX file referenced not found NamespaceMissing: Microsoft.Policies.Windows. Please upload it first. (admx file referenced not found namespacemissing:microsoft.policies.windows. please upload it first.)

3. Troubleshooting

Okay? How do we start troubleshooting this specific error? As this functionality is pretty new, there isn’t much documentation written about it. First to rule out if it was an issue with this ADMX file I decided to upload the windows built-in Shell-CommandPrompt-Regedittools.admx

Afbeelding met tekst  Automatisch gegenereerde beschrijving

This ADMX file is using the same namespace as I was using: Microsoft.Policies.Windows

Afbeelding met tekst  Automatisch gegenereerde beschrijving

You can almost guess the outcome of this attempt to determine what is going on

Afbeelding met tekst  Automatisch gegenereerde beschrijving

So I guess I can assume it isn’t the ADMX but something that suddenly changed at Microsoft? Because it was working previously and I didn’t change anything with that ADMX file in the meantime.

I decided to remove the “Using Prefix=”Windows” namespace=”Microsoft.policies.windows” in the ADMX file to see what error it could give me.

As shown below, that wasn’t going to fix it I guess.. because it got me the “Sequence contains no elements” error

When taking another look at the first error I got, I guess the solution is already in there right? It’s hiding in plain sight

4. The “Stupid” fix

In my blog about creating your own ADMX files, I explained how to test your ADMX before uploading it to Intune. To do so, you needed to move the ADMX file to the c:\windows\policydefinitions folder and the ADML file to the corresponding language folder inside that policydefinitions folder

This folder is the Central Store of all the ADMX files on the Windows client. So, if the error is mentioned it is missing the Microsoft.Policies.Windows.ADMX dependency. Sounds familiar right?

I guess we need to upload and do it ourselves right?

the windows.admx is located in the c:\windows\policydefinitions folder

If you open the policydefinitions folder, you will notice the Windows.Admx file. Let’s open it, shall we?

the windows.admx has the target-prefix set to microsoft.policies.windows

As shown above, this Windows.ADMX targets the Microsoft.Policies.Windows prefix instead of using it. So the resume: The windows.admx defines the policy: Microsoft.Policies.Windows.

Afbeelding met tekst  Automatisch gegenereerde beschrijving

I got myself a new tenant and uploaded the Windows.Admx and the Windows.ADML files first.

manually uploading the windows.admx to fix the admx file refrenced not found error.

After waiting a couple of minutes that upload was successful and after uploading the additional ADMX I created myself, that one also was marked as available

Afbeelding met tekst  Automatisch gegenereerde beschrijving

I could even define those OneNote settings in a new device configuration profile

Afbeelding met tekst  Automatisch gegenereerde beschrijving

Conclusion:

Even when this was just a simple little blog, I hope it will solve one of the possible errors you could get when uploading your own custom-made ADMX file. If not please reach out and I will try to solve it for you.

I Solve Problems GIFs | Tenor

20 thoughts on “ADMX: When Nature Calls

  1. Hi Rudy,
    Having looked I have got a different error from what you are getting. originally, I uploaded a drivemapping.admx, then subsequently try to remove this to no avail. I have tried uploading other admx files (For example chrome.admx) this shows as an error, I can’t get it to upload and can’t remove it. I have managed to add the windows .admx successfully but it doesn’t help me resolve the issue with the other admx files.

    Error Details
    Value cannot be null. Parameter name: input

    I can send you screenshoots if your intrested. message me via email. markchinery@hotmail.com

    1. Hi.. Removing old admx files should be getting resolved soon (so I have heard… hopefully it will be) So I have heard indeed… Could you share the screenshots/admx file etc?

  2. I also have the issue of deleting the failed admx that have failed. Got a ticket logged with Microsoft. Tried graph with the engineer still no joy, bug logged.

  3. OMGGGGGGGGGGGG

    thank you so much for this, i was truly going insane

    I had both the delete issue and the import issue and the ticket opened to Microsoft gave 0 help as they were blaming everything else.

    i imported the windows .admx and now all my other admx files are working perfectly.

  4. Hi Rudy!

    I am getting the same error!

    Could you possibly provide a link for the edited script? The one you troubleshoot!

    Thank you!

  5. Thankyou Thankyou Rudy, this was driving me crazy. As soon as I uploaded the Windows.admx it worked uploading Google & Chrome update admxinto Intue.

  6. Massive thanks on this one! Was wondering why the Office ADMX templates weren’t importing and this resolved it straight away! Cheers!

  7. Thanks for the tip about windows.admx. It does sound like an issue, which Microsoft should fix instead of blaming everyone else.

  8. I I could be wrong about this, but it looks to me like Win 10/11 Home do not have the windows.admx and .adml files. I was able to pull them off of a Win 10 Pro machine.

Leave a Reply

Your email address will not be published. Required fields are marked *

68  −  60  =  

Proudly powered by WordPress | Theme: Wanderz Blog by Crimson Themes.