Skip to main content
Autopilot & Enrollmentdecimal -2145910746

Fix Intune Error 0x80180026: MDM enrollment was blocked because another management agent is present: automatic MDM enrollment collides with the legacy Intune PC client.

Open the log below first. It is the quickest way to confirm which of the causes applies before you change anything.

Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider%4Admin.evtx

Folder: C:\Windows\System32\winevt\Logs\

Also check: Microsoft-Windows-User Device Registration%4Admin.evtx

Root causes

  • MDM automatic enrollment is turned on for the user and the legacy Intune PC software client (the old agent) is installed on the device.
  • The device is still under another management authority that blocks MDM enrollment.

Step-by-step remediation

  1. On the device, check Programs and Features for the legacy Intune client. Uninstall it if it is present.
  2. Run dsregcmd /status and confirm the join state and tenant are what you expect.
  3. Review the DeviceManagement-Enterprise-Diagnostics-Provider Admin log for the enrollment event and error.
  4. Only if the old client cannot be removed, change Entra ID > Mobility (MDM and MAM) > Microsoft Intune > MDM user scope for the affected users, and put it back afterwards.
  5. Retry the Entra join or automatic enrollment.

For the full diagnosis around this error, read Company Portal enrolment stuck.

Tighten the rollout around it

Enrollment and compliance errors usually trace back to rollout design and device permissions. See how the endpoint privilege management tools compare, and plan the next ring with a tested runbook.

Compare Intune endpoint privilege management tools

Other Autopilot & Enrollment errors with their own runbooks.

Search all 21 error codes