In 2020 Microsoft released the Endpoint Manager Group Policy Analytics (still in Preview).
This can be very useful to determine your level of modern management support. At this point Group Policy analytics only provides you with the MDM Supported values in CSP mappings and do not provide any further options to create the policies. As such I have put together a PowerShell script to assist in streamlining the process. The script will run from C:\IntunePS, so make sure you create this directory and save all exported csv files her.
The blog from systemcenterdudes covers the steps required to import the on-prem GPOs into Endpoint Manager Group Policy Analytics.
How to use Endpoint Manager Group Policy analytics (systemcenterdudes.com)
PowerShell Script
Once you have imported your on-prem GPOs and are happy to continue with the creation of the Intune policy you can follow the steps below:
Note. The script will only convert policy setting that has MDM Support
- Download the PowerShell Script and save it to C:\IntunePS
- Click on the percentage under MDM Support to open the policy you would like to “convert”
- Click on Export and save the file to C:\IntunePS.
- Rename the exported csv file to the name you would like the Intune Policy to be.
- Run the PowerShell script.
- Enter the Azure credentials for authentication.
- Once the script completes you can verify the Policy/Policies in the Endpoint Manager Portal by navigating to Devices > Windows > Configuration Profiles
- The next step will be to deploy the policy (It would be recommended to utilize test machines to ensure the policy applies as expected).
One thought on “Using PowerShell to create Windows 10 Custom Device Policy from the output of Endpoint Manager Group Policy Analytics”
You must log in to post a comment.