MDM wins over GPO Group Policy Vs Intune Policy

Let’s check MDM wins over GPO options available as Intune policy. The Group Policy Vs. Intune Policy Who wins? Windows modern device management relies on CSP for security & other configurations.

Many discussions about whether CSP can replace Group Policy (GPO). By default, GPO has higher precedence over CSP when there is a setting conflict.

But, starting with Windows 10 1803, this behavior is controllable with CSP “MDMWinsOverGP.” With this new Windows MDM CSP setting, we are clear about Microsoft’s long-term road map for modern device management. Group Policy Vs. Intune Policy, who wins?

Let’s also find more details of Migrating Group Policies GPOs to Intune Settings Catalog policy. You don’t have to migrate every GPO to MDM. If needed, you have to review each GPO and then migrate it to MDM.

Patch My PC

Prerequisite MDM wins over GPO

Let’s check what the prerequisites are for MDM wins over GPO settings. This setting doesn’t work for any custom GPO out of ADMX like Edge etc.

NOTE! – This MDM wins over Group Policy CSP doesn’t work for Windows Update for Business policies as well. Hence when you use WUfB, ensure all the group policies are removed related to Windows Update.

  • Windows 10 1803 version
  • Microsoft Intune
  • Active Directory Group Policy

MDM wins over GPO – MDM CSP Details

In this post, we will go through the “MDMWinsOverGP” setting and the conflicting settings. I deployed different Home page URLs for the demo using Intune CSP and GPO. Finally, we will see who wins.

  • OMA-URI: ./Vendor/MSFT/Policy/Config/Browser/Homepages
  • Value (home page example): CSP.com
Group Policy Vs Intune Policy MDM wins over GPO Group Policy Vs Intune Policy
MDM wins over GPO Group Policy Vs. Intune Policy 1

For MDM CSP to override GP, we need to enable the ” MDMWinsOverGP ” setting. The following are the values for this MDM Wins Over GPO policy.

Adaptiva
  • 0 – (default) – GPO Wins over MDM?
  • 1 – The MDM policy is used, and the GP policy is blocked.

Option #1 (New Method) – Intune Settings Catalog | Create MDM Wins Over GPO Policy

As explained in the following blog post, you can now create Intune Settings Catalog policy to deploy MDM wins over GPO policy. More details -> Create Intune Settings Catalog Policy.

  • Sign in to the Microsoft Endpoint Manager admin center (Endpoint.Microsoft.coom)
  • Select Devices -> Windows -> Configuration profiles > Create profile.
  • In Create Profile, You can select Platform: Windows 10 and later and Profile: Select Settings catalog (preview).
  • Click on Create button.

In Configuration Settings, select Add settings and use the following search keyword “MDM Wins Over GP.” You need to choose the MDM Wins Over GP policy from the list.

Browse by category – “Control Policy Conflict.”
Category and Setting name = MDM Wins Over GP

MDM wins over GPO Group Policy Vs Intune Policy 12
MDM wins over GPO Group Policy Vs. Intune Policy 12 2

Select the following option from the drop-down menu ->The MDM policy is used, and the GP policy is blocked.

MDM wins over GPO Group Policy Vs Intune Policy 13
MDM wins over GPO Group Policy Vs. Intune Policy 13 3

Option #2 (Old)Intune Configuration of “MDMWinsOverGP” – MDM Wins Over GP

Let’s follow the steps below to MDM Wins Over GPO.

  • Login to MEM Admin Center Portal.
  • Navigate Devices – Create a profile – Settings – Configure.
  • Custom OMA-URI Settings – Windows 10 and later – Add OMA-URI settings (as shown below)

./Device/Vendor/MSFT/Policy/Config/ControlPolicyConflict/MDMWinsOverGP

MDM wins over GPO Group Policy Vs Intune Policy 2
MDM wins over GPO Group Policy Vs. Intune Policy 2 4

Validation of MDMWinsOverGP (CSP Policies Override Group Policy Settings)

Now we will observe the client-side events using the Event Viewer in the following location:

  • Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostic-Provider
  • The value for “MdmWinsOverGp” is 0 before applying the CSP.

MdmWinsOverGp Policy value is (0x0)

MDM wins over GPO Group Policy Vs Intune Policy 3
MDM wins over GPO Group Policy Vs. Intune Policy 3 5

“MdmWinsOverGp” value changes from 0 to 1 after applying the CSP

MdmWinsOverGp Policy value is (0x1)

MDM wins over GPO Group Policy Vs Intune Policy 4
MDM wins over GPO Group Policy Vs. Intune Policy 4 6

The policy is set for MdmWinsOverGp

MdmWinsOverGp Policy is being set.

MDM wins over GPO Group Policy Vs Intune Policy 5
MDM wins over GPO Group Policy Vs. Intune Policy 5 7

Group Policy Vs. Intune Policy who will win, and Microsoft gives us an option to select who will win.

Registry Analysis of CSP Policies Override Group Policy Settings

The registry was created to set MDM as higher precedence than GP.

Computer\HKEY_LOCAL_MACHINE_Microsoft\PolicyManager\current\device\ControlPolicyConflict

  • Default – Value Not Set
  • MDMWinsOverGP – 0x000000001 (1)
  • MDMWinsOverGP_ProviderSet – 0x000000001 (1)
MDM wins over GPO Group Policy Vs Intune Policy 6
MDM wins over GPO Group Policy Vs. Intune Policy 6 8

If there is a GPO and MDM CSP conflict for a setting. Then, the current GP value saved before CSP takes precedence.

Attempted to save existing GP Value. GP Location: (Software\Policies\Microsoft\MicrosoftEdge\Internet Settings), GP ValueName: (ProvisionedHomePages), Result: (The operation completed successfully.). Failures are expected if this location isn’t set.

MDM wins over GPO Group Policy Vs Intune Policy 7
MDM wins over GPO Group Policy Vs. Intune Policy 7 9

GP value gets deleted. Example: GP value “ProvisionedHomePages” deleted

Attempted to delete existing GP Value. GP Location: (Software\Policies\Microsoft\MicrosoftEdge\Internet Settings), GP ValueName: (ProvisionedHomePages), Result: (The operation completed successfully.). Failures are expected if this location isn’t set.

MDM wins over GPO Group Policy Vs Intune Policy 8
MDM wins over GPO Group Policy Vs. Intune Policy 8 10
  • Block record created to ensure MDM Wins over GP.
  • GP enforcement for the home page value is blocked.

Created a blocking record. Record: (Software\Microsoft\MDMWins\device\Software/Policies/Microsoft/MicrosoftEdge/Internet Settings\ProvisionedHomePages).
Uri: (./Device/Vendor/MSFT/Policy/Config/Browser/Homepages

MDM wins over GPO Group Policy Vs Intune Policy 9
MDM wins over GPO Group Policy Vs. Intune Policy 9 11

Result – Intune Policies Override Group Policy Settings – The winner is here Group Policy Vs. Intune Policy

  • Finally, MDM CSP wins over GP.
  • As shown below, MDM CSP configures the “Home Page” value.

HomePages – CSP.com

MDM wins over GPO Group Policy Vs Intune Policy 10
MDM wins over GPO Group Policy Vs. Intune Policy 10 12

Verify the MDM Diagnostics report ( Section “Blocked Group Policies” ). This report gives detailed information on the list of GP values blocked by MDM CSP.

Blocked GP Entity – device\software/Policies/Microsoft/MicrosoftEdge/Internet Settings
Blocked GP value Name – ProvisionedHomePages
Blocked Value – http://GPO.com
MDM Uris Blocking GP – ./Device/Vendor/MSFT/Policy/Config/Browser/Homepages

MDM wins over GPO Group Policy Vs Intune Policy 11
MDM wins over GPO Group Policy Vs. Intune Policy 11 13

Author

Vimal has more than ten years of experience in SCCM device management solutions. His main focus is on Device Management technologies like Microsoft Intune, ConfigMgr (SCCM), OS Deployment, and Patch Management. He writes about the technologies like SCCM, Windows 10, Microsoft Intune, and MDT.

2 thoughts on “MDM wins over GPO Group Policy Vs Intune Policy”

  1. Hi Vimal,

    What will be your suggestion (GP or CSP) or for a closed Win10 (Version 1607) system with the intention to shut down all external connections at login and optional to enable the Eth/USB based on needs?

    Thanks.

    Regards,
    Frank

    Reply
  2. This settings doesn’t work for any custom GPO out of ADMX like Edge etc.. & it may likely be depreciated in future is what i understand from MS.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.