Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Windows enrolment fails in Intune: error codes 8018000a, 80180014, 80180022, 80180026 and 8018002b explained

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

A Windows device that will not enrol in Microsoft Intune shows a short code starting 8018, and the code decides the fix. Microsoft's Windows enrolment error list gives each one its own cause. 8018000a means a different user already holds the work connection. 80180014 means Windows enrolment is switched off in the tenant. 80180022 means the device runs Windows Home. 80180026 means the Intune PC agent and automatic enrolment collide. 8018002b appears with Group Policy auto-enrolment and has two causes.

Read the code first. Everything before the Fix section only reads settings and logs.

What the error means

Enrolment is the step where a Windows device registers with the Intune service so that policy can reach it. The 8018 codes are the failures Microsoft lists for that step. They are not one fault with one repair. The list names a cause for each code, and some codes carry a second condition, so the same sign-in screen can mean different things on two devices.

The codes covered here, as they appear on Microsoft's page:

  • 8018000a. The message reads "Something went wrong. The device is already enrolled." The page gives the cause as a different user having already enrolled the device in Intune or joined it to Microsoft Entra ID.
  • 80180014. The message includes "Your organization does not support this version of Windows." The cause is that Windows MDM enrolment is disabled in the Intune tenant.
  • 80180022. The Autopilot message reads "Autopilot device enrollment failed with error HRESULT = 0x80180022". The cause is that the device being provisioned runs Windows Home Edition.
  • 80180026. The message includes "Confirm you are using the correct sign-in information and that your organization uses this feature." It occurs when a Windows 10 computer joins Microsoft Entra ID while automatic MDM enrolment is on and the Intune PC software client is installed.
  • 8018002b. Seen with Group Policy auto-enrolment as event 76, "Auto MDM Enroll: Failed (Unknown Win32 Error code: 0x8018002b)". The page lists two causes.

The same page also lists codes that do not start with 8018, for example 0x8007064c ("The machine is already enrolled"), 0x80cf4017, 0x801C03EA and 0x800705b4. Only the 8018 family is covered here.

Likely causes

Code Cause on Microsoft's page What to look at
8018000a A different user has already enrolled the device or joined it to Microsoft Entra ID Settings > Accounts > Work Access on the device
80180014 Windows MDM enrolment is disabled in the Intune tenant Enrollment restrictions for the Windows (MDM) platform
80180022 The device runs Windows Home Edition The Windows edition on the device
80180026 MDM automatic enrolment is on in Azure and the Intune PC software client is installed MDM user scope, and the installed programs list
8018002b The user principal name (UPN) has an unverified or non-routable domain, such as .local, or MDM user scope is set to None The user's UPN suffix and MDM user scope

Microsoft's page gives no figures for how often each cause occurs, so the table is not in order of likelihood.

Prove the cause before changing anything

All of these only read.

  1. Write down the exact code and the full message text. The first three characters matter less than the whole eight-character code, because 8018002b and 80180026 differ by one position.
  2. On the device, open Settings > Accounts > Work Access. Microsoft says to look for a message similar to "Another user on the system is already connected to a work or school. Please remove that work or school connection and try again." If it is there, the cause is 8018000a.
  3. In the Microsoft Intune admin center, go to Devices > Enrollment restrictions and open the device type restriction that applies to the user. Check whether Windows (MDM) is allowed under Platform settings.
  4. Check the device edition. A Windows Home device cannot complete Autopilot enrolment, per the 80180022 entry.
  5. For Group Policy auto-enrolment, open Event Viewer on the device and go to Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostic-Provider > Admin (Microsoft's pages also write it Diagnostics-Provider). Microsoft's Group Policy auto-enrolment page says event 75 means enrolment succeeded and event 76 means it failed. If neither is logged, the enrolment was not triggered at all, which is a different problem.
  6. Look in the installed programs list for the Intune PC software client. Its presence together with automatic enrolment is the 80180026 condition.

Example (illustrative): at contoso.com.au a laptop joined to the domain shows 8018000a during sign-in. A technician had set it up earlier under their own account. Work Access shows the "Another user on the system" message. That matches the first entry in the table, and the other four codes do not apply.

Fix

Use only the section for your code. Each changing step below affects the tenant or the device, so each has its own save-first step and back-out.

8018000a: another user holds the work connection

Before you remove anything, write down the account name shown in Settings > Accounts > Work Access, and take a screenshot of the message.

Risk: The next steps remove the work or school connection of the other user from this computer. That user loses the connection to the organisation on this device until it is added again, and anything that depends on it stops working for them.

  1. Sign out of Windows, then sign in with the other account that enrolled or joined the device.
  2. Go to Settings > Accounts > Work Access and remove the work or school account.
  3. Sign out of Windows, then sign in with your own account.
  4. Enrol the device in Intune or join it to Microsoft Entra ID.

To undo it: sign in as that other user and add the work or school account again from the same Settings page. Microsoft's page does not describe re-adding the account, so confirm with that user that the connection works afterwards.

80180014: Windows enrolment is disabled in the tenant

Before you change the restriction, open it in the Microsoft Intune admin center under Devices > Enrollment restrictions, and write down the current Platform settings value for Windows (MDM), plus the groups it is assigned to.

Risk: The next steps change a device type restriction in your tenant so that Windows (MDM) is allowed. Everyone that restriction is assigned to can then enrol Windows devices, not only the person who saw the error. Microsoft's page does not say who the restriction targets, so check the assignments you recorded first.

  1. In the Microsoft Intune admin center, choose Devices > Enrollment restrictions, then choose a device type restriction.
  2. Choose Properties, then Edit next to Platform settings, and set Allow for Windows (MDM).
  3. Choose Review + Save.

To undo it: open the same restriction, choose Properties > Edit, set Windows (MDM) back to the value you wrote down, and choose Review + Save. Microsoft's page describes this fix for a stand-alone Intune environment, so a tenant managed another way may show different screens.

80180026: automatic enrolment and the old Intune client

Before you change the setting, open Microsoft Entra ID > Mobility (MDM and MAM) > Microsoft Intune in the Azure portal and write down the current MDM user scope and any groups listed.

Risk: The next steps set MDM user scope to None in the tenant. Automatic MDM enrolment then stops for everyone in scope, not only the computer that failed. MDM user scope set to None is also one of the two causes of 8018002b listed above, so this change can create that fault for users who enrol automatically.

  1. Sign in to the Azure portal.
  2. Go to Microsoft Entra ID > Mobility (MDM and MAM) > Microsoft Intune.
  3. Set MDM User scope to None, then choose Save.

To undo it: return to the same page, set MDM User scope back to the value you wrote down (and re-add the groups if it was Some), then choose Save.

Microsoft's page offers a second method: uninstall the Intune PC software client from the computer. It gives no steps beyond naming the action, so the tenant-wide setting above is the only change with written steps here.

8018002b and 80180022

For 80180022, Microsoft's solution is to update the device to Pro edition or higher. That is a licensing and edition decision for the device owner, and Microsoft's page gives no steps for it.

For 8018002b, the two causes on the page are an unverified or non-routable domain in the user principal name (UPN), such as .local, and MDM user scope set to None. Microsoft's separate page on 80180002b during Group Policy-based auto-enrolment describes a different cause for the same event: a device that was previously joined to a different tenant and did not unjoin correctly, so that dsregcmd /status shows AzureAdPrt as NO and wrong TenantId and AuthCodeUrl values. It is not covered by the two fixes below. The two fixes on the enrolment error page follow.

8018002b with a non-routable UPN

Before you change anything, write down each affected user's current UPN suffix, as shown on the Account tab in Active Directory Users and Computers.

Risk: The next steps change the sign-in name of each affected user in Active Directory. The new name reaches Microsoft Entra ID at the next synchronisation, and anything that holds the old sign-in name, such as a saved sign-in, stops matching it.

  1. On the server where Active Directory Domain Services runs, open Active Directory Users and Computers (dsa.msc) and select Users under your domain.

  2. For one affected user, right-click the user and choose Properties. On the Account tab, under User logon name, select a valid UPN suffix such as contoso.com in the UPN suffix list, then choose OK. For several users, select them, choose Properties from the Action menu, tick the UPN suffix check box on the Account tab, select the valid suffix and choose OK.

  3. Wait for the next synchronisation, or force a delta sync from the synchronisation server in an elevated PowerShell prompt:

    Import-Module ADSync
    Start-ADSyncSyncCycle -PolicyType Delta
    

To undo it: set the UPN suffix of each user back to the value you wrote down and let the next synchronisation carry it. A forced sync cycle only runs the normal delta synchronisation and has nothing to reverse. Microsoft's page also names Alternate Login ID as another solution and says to read its article before you implement it.

8018002b with MDM user scope set to None

Before you change the setting, open Microsoft Entra ID > Mobility (MDM and MAM) > Microsoft Intune in the Azure portal and write down the current MDM user scope, its groups, and the MAM user scope.

Risk: The next steps turn on automatic MDM enrolment for All users or for a group, and set MAM user scope to None. Every user in the scope you choose can then enrol Windows 10 devices automatically, and MAM user scope changes for the whole tenant.

  1. Sign in to the Azure portal, select Microsoft Entra ID, then Mobility (MDM and MAM), then Microsoft Intune.
  2. Set MDM user scope to All, or set it to Some and select the groups that can automatically enrol their Windows 10 devices.
  3. Set MAM user scope to None.

To undo it: return to the same page and set MDM user scope and MAM user scope back to the values you wrote down, re-adding the groups if the scope was Some, then save.

Confirm the fix

  • The enrolment completes with no 8018 code, and the device appears in Devices in the Microsoft Intune admin center.
  • For Group Policy auto-enrolment, Event ID 75 ("Auto MDM Enroll: Succeeded") is logged in the DeviceManagement-Enterprise-Diagnostic-Provider Admin log.
  • For 8018000a, Settings > Accounts > Work Access no longer shows the "Another user on the system" message and shows the intended account.

What to watch afterwards

  • Whether the same code returns on other devices. A tenant setting such as the Windows (MDM) restriction or the MDM user scope affects every device, so a second failure points back to the setting.
  • Devices built by one technician under a personal account, which is the 8018000a pattern.
  • Any change to enrolment restrictions made by someone else. Write the restriction values down each time they change.
  • The events in the DeviceManagement-Enterprise-Diagnostic-Provider Admin log after each enrolment attempt.

Risks and limits

These steps have not been run or lab-tested.

Microsoft's page names no Windows version range for the 8018 entries beyond mentioning Windows 10 in the 80180026 and Group Policy auto-enrolment entries. It gives no count of how many cases fall under each cause. Its fix for 80180014 is written for a stand-alone Intune environment. The page spells the Group Policy code two ways, 0x8018002b in the event line and 0x80180002b in the event description, so search with both spellings. The page also lists causes for codes outside the 8018 family that are not covered here.

Sources