Intune and Windows Autopilot

Intune enrollment error 0x8018000A: the device is already enrolled

Error 0x8018000A (MENROLL_E_DEVICE_ALREADY_ENROLLED) means Windows is already enrolled in MDM, often by another user or a leftover enrollment. How to clear it.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

0x8018000A is the Windows MDM enrollment error MENROLL_E_DEVICE_ALREADY_ENROLLED. Microsoft's MDM registration error reference describes it simply: the device is already enrolled. Users usually see it without the 0x prefix, in the message "Something went wrong. The device is already enrolled. You can contact your system administrator with the error code 8018000a."

In practice a new enrollment into Microsoft Intune stops because an existing enrollment is still present on the device, either from another user or from a previous enrollment that was never fully removed.

The same code also shows up in decimal form. Microsoft's Group Policy auto-enrollment troubleshooting says that when the device is already enrolled in another MDM solution, Task Scheduler logs Event ID 7016 with error code 2149056522, which is 0x8018000A written as a decimal number.

Common causes

  • A different user has already enrolled the device in Intune or joined it to Microsoft Entra ID. Microsoft says you can check under Settings, Accounts, Access work or school, where Windows may report that another user on the system is already connected to a work or school account.
  • The device is enrolled in another MDM solution.
  • Enrollment entries remain in the registry under HKLM\Software\Microsoft\Enrollments after an unenrollment. Microsoft says these are normally removed but occasionally stay behind.

How to fix it

1. Check Access work or school

Go to Settings, Accounts, Access work or school, and look at the connected accounts. If a work or school account from another user, or another organization, is listed, that enrollment is the one blocking yours.

2. Remove the other user's work or school account

Microsoft's steps: sign out of Windows and sign in with the account that enrolled or joined the device. Go to Settings, Accounts, Access work or school and remove the work or school account. Sign out, sign in with your own account, then enroll the device in Intune or join it to Microsoft Entra ID.

3. Unenroll from the other MDM

If the device is managed by a different MDM service, Microsoft's fix is to unenroll it from that MDM first. Then retry Intune enrollment, or for Group Policy auto-enrollment, refresh policy so the enrollment task runs again:

gpupdate /force

4. Remove stale enrollment registry entries

If no other enrollment is visible but the error remains, Microsoft's diagnosis guide says the registry key for the old enrollment under HKLM\Software\Microsoft\Enrollments can be removed manually; when unsure which key to remove, pick the one with the most entries. Back up the registry first, since Microsoft warns that incorrect registry changes can cause serious problems. Then run gpupdate /force again and look for Event ID 75 in the DeviceManagement-Enterprise-Diagnostics-Provider Admin log, which confirms a successful auto-enrollment.

If nothing works

A related message, "The machine is already enrolled" with error hr 0x8007064c, has its own fix in Microsoft's Intune enrollment troubleshooting article: delete the Intune certificate issued by Sc_Online_Issuing from the local computer's personal store and the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\OnlineManagement key, then re-enroll. For Autopilot deployments, the Windows Autopilot error codes guide lists 8018000a with the other enrollment errors.

What we checked

Four Microsoft Learn pages were read on 2026-11-21. The MDM registration error values reference defines 0x8018000A as MENROLL_E_DEVICE_ALREADY_ENROLLED. The Diagnose MDM enrollment failures page lists its user message and explains the stale registry entries. The Intune Windows enrollment errors article gives the other-user cause and the remove-account steps for error 8018000a. The Group Policy auto-enrollment troubleshooting article explains Event ID 7016 with error 2149056522. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does error 8018000a mean?

It is 0x8018000A, MENROLL_E_DEVICE_ALREADY_ENROLLED. Windows already has an MDM enrollment, so a new one cannot start. Microsoft says the usual cause is that a different user already enrolled the device or joined it to Microsoft Entra ID.

How do I remove the other user's enrollment?

Microsoft's steps are to sign in as the user who enrolled or joined the device, remove the work or school account under Settings, Accounts, sign out, then sign in with your own account and enroll.

What is error 2149056522 in the Task Scheduler log?

2149056522 is the decimal form of 0x8018000A. Microsoft says Event ID 7016 with that code means the device is already enrolled in another MDM, often because of leftover enrollment entries in the registry.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.