Last Updated on October 26, 2022 by rudyooms
Today I wrote a simple blog that will be about troubleshooting one of the ADMX upload errors you could endure when uhhh uploading your own ADMX to Intune
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 which I stumbled upon. Someone reached out to me by replying to the blog I mentioned above
He is mentioning the fact that when importing the ADMX he ended up with the error that the ADMX file referenced 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!!)
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!
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!
As shown above, that pretty much looks like the same error message we noticed earlier: ADMX file referenced not found NamespaceMissing: Microsoft.Policies.Windows. Please upload it first.
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
This ADMX file is using the same namespace as I was using: Microsoft.Policies.Windows
You can almost guess the outcome of this attempt to determine what is going on
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 the blog I wrote about creating your own ADMX files, I explained how you could 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?
If you open the policydefinitions folder, you will notice the Windows.Admx file. Let’s open it, shall we?
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.
I got myself a new tenant and uploaded the Windows.Admx and the Windows.ADML files first.
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
I even could define those OneNote settings in a new device configuration profile
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.
16 thoughts on “ADMX: When Nature Calls”
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.
Value cannot be null. Parameter name: input
I can send you screenshoots if your intrested. message me via email. email@example.com
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?
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.
If i am not mistaken that issue got resolved today/yesterday…
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.
Nice to hear !!! I am working on another blog when you need to troubleshoot the admx itself 🙂
Brilliant post, you saved the day.
I am getting the same error!
Could you possibly provide a link for the edited script? The one you troubleshoot!
You mean the need for uploading the windows.admx first before uploading the drivemapping.admx one?
Thankyou Thankyou Rudy, this was driving me crazy. As soon as I uploaded the Windows.admx it worked uploading Google & Chrome update admxinto Intue.
Massive thanks on this one! Was wondering why the Office ADMX templates weren’t importing and this resolved it straight away! Cheers!
Thanks for the tip about windows.admx. It does sound like an issue, which Microsoft should fix instead of blaming everyone else.
You’re a life saver!
Thanks so much!! this resolved the error
You’re the best!!! Thanks for saving me from struggling with this.
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.