We’re moving our Windows devices from on-premises Group Policy to Intune, and we’re doing it progressively rather than in one big switch. That’s the sensible way to do it, but it means that for months, most devices are hybrid joined: still in Active Directory, still processing Group Policy, and also enrolled in Intune and receiving its policies.
That raises a question that comes up constantly in this kind of migration. When a GPO and an Intune profile both configure the same setting, which one wins? The honest answer is “it depends”, and the details are where migrations go wrong. A setting you’ve carefully configured in Intune can be quietly overridden by an old GPO, and the Intune portal won’t always make that obvious.
This article covers who wins by default, what the MDMWinsOverGP setting does and, just as importantly, what it doesn’t cover. It also explains how to stage the migration so the two don’t fight, and how to prove what’s actually applied on a device rather than trusting a green tick in the portal.
Who wins by default
On a device that’s domain joined and enrolled in Intune, Group Policy takes precedence by default. Microsoft’s guidance is that when both configure the same setting with different values, the domain Group Policy setting wins over the Intune setting (Microsoft Q&A: Intune deployment and Group Policy impact).
In practice it’s messier than a simple rule. Group Policy and MDM write their settings through different mechanisms and refresh on different schedules, so a device can flip between the two values depending on which applied last. That’s how you end up with a setting that looks right after an Intune sync and wrong again after the next Group Policy refresh, which is one of the most confusing problems to troubleshoot.
The practical lesson is simple: during a migration, don’t configure the same setting in both places and hope. Either make sure only one of them sets it, or tell Windows explicitly which one should win.
MDMWinsOverGP: what it does, and what it doesn’t cover
Since Windows 10 version 1803, there’s a setting that flips the default. It’s called MDMWinsOverGP, and it lives in the ControlPolicyConflict area of the Policy CSP (Microsoft Learn: Policy CSP – ControlPolicyConflict). When it’s enabled and both Intune and Group Policy configure the same setting, the Intune value wins and the matching Group Policy setting is blocked.
You can deploy it from the Intune Settings Catalog by searching for Control Policy Conflict and enabling MDM Wins Over GP, or as a custom profile with this OMA-URI and an integer value of 1:
./Device/Vendor/MSFT/Policy/Config/ControlPolicyConflict/MDMWinsOverGPIt’s a device setting, so assign it to device groups.
The limits are the important part
Here’s what catches people out. MDMWinsOverGP only applies to settings in the Policy CSP. It doesn’t apply to MDM settings that have a Group Policy equivalent but are defined in a different CSP.
That sounds like a technicality, but it covers some of the most important areas in a migration. Admins on Microsoft’s own forums have found that firewall settings delivered through the Firewall CSP weren’t affected, and kept showing as Conflict while the GPO held its ground (Microsoft Q&A: Intune Policy CSP – ControlPolicyConflict). Microsoft Defender settings in the Defender CSP are also outside its scope, and admins have reported Windows Update settings behaving as an exception too.
So think of MDMWinsOverGP as covering the large group of general Windows and administrative template settings, but not security products like the firewall and Defender, which tend to be the ones you care about most. For those, the only reliable fix is to remove the conflicting GPO setting.
Should you turn it on?
I’d turn it on early, for one practical reason. During a migration, the whole point is for Intune to become the source of truth. With MDMWinsOverGP enabled, the moment you configure a Policy CSP setting in Intune, it takes over from any GPO that sets the same thing. You don’t have to unlink that GPO setting on the same day for the Intune value to apply.
It’s also lower risk than it sounds. It only blocks Group Policy for settings Intune actually configures. Everything else in your GPOs keeps applying exactly as before, so turning it on doesn’t suddenly strip a device of its existing configuration.
But it’s a safety net, not a migration strategy. Because it doesn’t cover the firewall, Defender and some other areas, you still need to remove settings from your GPOs as you move them to Intune. And if you leave both in place indefinitely, you end up with two sources of truth and nobody quite sure which one a given device is following. Use MDMWinsOverGP to make the transition smooth, then keep going until the GPOs are gone.
Start with Group Policy analytics
Before moving anything, find out what you’ve actually got. Most environments have years of GPOs, some of which configure settings that no longer matter, apply to operating systems you retired long ago, or duplicate each other.
Intune’s Group Policy analytics does the first pass for you. In the Group Policy Management Console, save each GPO’s report as XML, then import the files under Devices > Group Policy analytics in the Intune admin centre. For each GPO, Intune shows which settings have an MDM equivalent, which aren’t supported, and which are deprecated, along with an overall percentage. For supported settings, it can create a Settings Catalog profile from them, which saves a lot of manual re-entry.
Treat the result as a starting point, not a to-do list. A GPO that’s 95 per cent supported isn’t automatically worth migrating as-is. It’s the best chance you’ll get to drop settings nobody needs. Go through each one and ask whether it still makes sense on a modern, cloud-managed device.
The unsupported settings deserve their own list, because they’re the ones that will hold up the last stage of the migration. Many have a modern replacement rather than a direct equivalent. Drive mappings become a script or a OneDrive and SharePoint approach, logon scripts become Intune scripts or remediations, and printer deployment moves to a cloud print solution or a packaged script. Plan those early, because they’re usually what keeps the last GPO linked long after everything else has moved.
A progressive migration order
This is the order that keeps the two systems from fighting:
- Enable MDMWinsOverGP for a pilot group of devices, so Intune wins wherever it’s allowed to.
- Pick one area at a time, such as browser settings, Windows Update, security settings or Office. Moving by area is much easier to test and roll back than moving a whole GPO at once.
- Build the Intune profile for that area, from Group Policy analytics or the Settings Catalog, and assign it to the pilot devices.
- Stop the matching GPO applying to the pilot devices. Use security filtering or a WMI filter to exclude them, or move them to an OU where the old GPO isn’t linked. This step matters most for the areas MDMWinsOverGP doesn’t cover, such as the firewall and Defender, where the GPO will otherwise keep winning.
- Verify on a device that the Intune value is the one in effect, using the checks in the next section.
- Widen the rollout in rings, then remove the setting from the GPO entirely once every device has moved.
- Repeat for the next area, and unlink each GPO only when nothing it does is still needed.
Watch out for overlapping Intune profiles along the way. A security baseline and an Administrative Templates profile can both set the same thing, and Intune reports that as a conflict. I hit exactly that with PowerShell Script Block Logging, which was set in a baseline and in a separate profile. Keep a simple record of which Intune profile owns each area, so you’re not swapping a GPO conflict for an Intune one.
The end state for most organisations is new devices joined directly to Entra ID, where Group Policy doesn’t apply at all, and the hybrid devices replaced or reset over time.
Proving which policy actually won
The Intune portal tells you whether a profile was delivered. It doesn’t always tell you whether its value is the one the device is actually using, and on a hybrid device that’s the question that matters. I’ve learnt to check on the device itself before I believe a migration step is finished.
First, confirm MDMWinsOverGP itself arrived
It’s worth ruling this out before anything else, because if the setting never reached the device, nothing else in this section will make sense. MDM settings are recorded under the PolicyManager registry key, so a quick check looks like this:
Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\PolicyManager\current\device\ControlPolicyConflict' -ErrorAction SilentlyContinue |
Select-Object MDMWinsOverGPA value of 1 means it’s in place. No result usually means the profile hasn’t applied to that device yet, or it’s assigned to a user group rather than a device group.
Then compare what each side thinks it set
The MDM diagnostic report is the most useful single view. On the device, go to Settings > Accounts > Access work or school, select the work account and choose Export your management log files. Windows writes an HTML report to C:\Users\Public\Documents\MDMDiagnostics. As well as the MDM settings on the device, it lists Group Policy settings that are being blocked because an MDM equivalent is configured, which is the direct evidence that MDMWinsOverGP is working.
For the Group Policy side, run this from an elevated prompt:
gpresult /h C:\Temp\gpresult.html /fIf a setting you’ve moved to Intune still shows as applied by a GPO, and it’s outside the Policy CSP, such as a firewall or Defender setting, the GPO is still winning, and the fix is to stop that GPO applying to the device.
Finally, the values Intune wrote are under the same PolicyManager key you checked earlier, grouped by area under HKLM\SOFTWARE\Microsoft\PolicyManager\current\device. Comparing a value there with the effective behaviour on the device, and with the GPO report, usually settles which side is in control.
When all three agree, you’re done with that setting. When they don’t, you’ve found the next GPO to clean up.
Checklist: Group Policy and Intune on hybrid devices
- Assume Group Policy wins any conflict on a hybrid device unless you’ve changed it.
- Enable MDMWinsOverGP early, for device groups, through the Settings Catalog or OMA-URI.
- Remember it only covers the Policy CSP, so remove firewall, Defender and similar settings from your GPOs rather than relying on it.
- Run your GPOs through Group Policy analytics, and use the migration to drop settings nobody needs.
- Plan replacements early for unsupported settings such as drive mappings, logon scripts and printers.
- Migrate one area at a time, and stop the matching GPO applying to the devices you’ve moved.
- Keep a record of which Intune profile owns each area, so baselines and other profiles don’t conflict.
- Prove the result on a device with the MDM diagnostic report, gpresult and the PolicyManager registry key.
- Remove settings from GPOs once every device has moved, and unlink GPOs only when nothing in them is still needed.
The hybrid period is where most of the confusion in a GPO-to-Intune migration lives. Two systems both believe they’re in charge, and each wins in different places. MDMWinsOverGP settles a lot of those arguments, but not all of them. The migration is only really done when there’s nothing left in Group Policy for Intune to fight with.
Sources
- Microsoft Learn: Policy CSP – ControlPolicyConflict
- Microsoft Q&A: Intune deployment and Group Policy impact
- Microsoft Q&A: Intune Policy CSP – ControlPolicyConflict

From my early days on the helpdesk through roles as a service desk manager, systems administrator, and network engineer, I’ve spent more than 25 years in the IT world. As I transition into cyber security, my goal is to make tech a little less confusing by sharing what I’ve learned and helping others wherever I can.





