Micke-K / IntuneManagement

Copy, export, import, delete, document and compare policies and profiles in Intune and Azure with PowerShell script and WPF UI. Import ADMX files and registry settings with ADMX ingestion. View and edit PowerShell script.
MIT License
1.14k stars 201 forks source link

Intune Tools - ADMX Ingestion error in Import #38

Closed HornEman71 closed 2 years ago

HornEman71 commented 2 years ago

Hi, loving the new features and thought would give it a go with an ADMX import policy. Anything to save time is brilliant!

I have loaded inetres.admx (no adml) file and tried enabling the top 7 settings within $(string.InternetCPL) to block Internet Options in Control Panel e.g. Advanced Tab down to Restrict Security Tab.

When clicking on import and checking the log files I get this error

Failed to invoke MS Graph with URL https://graph.microsoft.com/BETA/deviceManagement/deviceConfigurations (Request ID: 1ebf6dec-b3a4-4ed8-9185-dcedc6a4dd4b). Status code: BadRequest

Have Microsoft changed the api or are additional security permissions required etc? Many thanks for any help!

Justin

HornEman71 commented 2 years ago

Hi quick follow up - I removed the tick for Ingest ADMX file and it imported.

Micke-K commented 2 years ago

Hello!

Sorry for late answer. I've been down sick.

My guess is that the ADMX file contains unsupported reg paths. Microsoft does not allow you to specify policy settings under System, Software\Microsoft, and Software\Policies\Microsoft with some exceptions.

Have a look at the documentation here: https://docs.microsoft.com/en-us/windows/client-management/mdm/win32-and-centennial-app-policy-configuration

Cheers!

Micke-K commented 2 years ago

Closing this issue since this is expected behaviour with ADMX files that has unsupported.