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\Enrollmentsafter 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 /force4. 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.