Intune and Windows Autopilot

Intune enrollment error 0x80180018: license problem blocking enrollment

Error 0x80180018 (MENROLL_E_USERLICENSE) means the user's license blocks Windows MDM enrollment. Assign an Intune license and check MDM scope and terms of use.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

0x80180018 is the Windows MDM enrollment error MENROLL_E_USERLICENSE. Microsoft's MDM registration reference describes it as: the license of user is in bad state blocking enrollment; the user will need to call the admin. Microsoft's guide to diagnosing MDM enrollment failures shows the text users see for this code: "There was an error with your license. You can try to do this again or contact your system administrator with the error code", followed by the code. Windows often shows it without the 0x prefix, as 80180018.

The device is not the problem here. Windows reached the enrollment service, but the service would not enroll the device for this user because of the user's licensing state. It can appear when joining a device to Microsoft Entra ID with automatic MDM enrollment, during Windows Autopilot, or when adding a work account under Access work or school.

Common causes

Microsoft's pages point to the user's licensing and the tenant's enrollment settings:

  • The user has no valid Intune license. Microsoft's Intune enrollment troubleshooting article gives the same cause for the related message "This account is not allowed on this phone".
  • The tenant uses both MDM for Microsoft 365 and Intune, and the user has neither an Intune nor an Office 365 license, which Microsoft says also produces the "MDM terms of use" error.
  • Automatic MDM enrollment is not turned on for the user, so the user is not in the MDM user scope.

How to fix it

1. Assign a valid Intune license

In the Microsoft 365 admin center, open the user and assign a license that includes Microsoft Intune, or a Microsoft 365 license, as Microsoft's enrollment article describes. Wait for the assignment to apply, then have the user retry enrollment. Microsoft's diagnosis guide lists this check first: verify that the user who is going to enroll the device has a valid Intune license.

2. Make sure automatic enrollment covers the user

Sign in to the Azure portal, open Microsoft Entra ID, then Mobility (MDM and MAM), then Microsoft Intune, and check the MDM user scope. It must be All, or Some with a group that contains the user. Microsoft notes that if both Microsoft Intune and Microsoft Intune Enrollment are listed under Mobility, the auto-enrollment settings belong under Microsoft Intune.

3. Restore the default MDM URLs

On the same Microsoft Intune page under Mobility (MDM and MAM), select Restore default MDM URLs and confirm the MDM terms of use URL is set to https://portal.manage.microsoft.com/TermsofUse.aspx, then select Save. Microsoft gives this fix for a blank or wrong terms of use URL, which blocks enrollment in the same way.

4. Retry enrollment and check the result

Have the user sign out and back in so the new license is picked up (this is a general step), then retry enrollment. Microsoft's diagnosis guide also says to verify that Intune allows enrollment of Windows devices. A device that enrolls now appears in the Intune admin center under Devices, Windows.

If nothing works

Check whether the device returns a different code, such as 0x80180014 for a blocked Windows platform or 0x8018002b for Group Policy auto-enrollment. The Windows Autopilot error codes guide covers 80180018 alongside the other Autopilot enrollment errors and the logs to collect.

What we checked

Three Microsoft Learn pages were read on 2026-11-21. The MDM registration error values reference (MDMRegistration.h) defines 0x80180018 as MENROLL_E_USERLICENSE. The Diagnose MDM enrollment failures page lists the code with its user message and the license and auto-enrollment checks. The Troubleshooting Windows device enrollment problems in Intune article, which does not name this code, was read for the Intune license and MDM terms of use URL fixes. The error was not reproduced for this page.

Last checked: 2026-11-21.

Official sources

Questions people ask

What does error 0x80180018 mean?

It is MENROLL_E_USERLICENSE. Microsoft says the license of the user is in a bad state that blocks enrollment, and the user needs to contact the admin.

Which license does the user need?

A license that includes Microsoft Intune. Microsoft's enrollment guidance says to verify that the user who enrolls the device has a valid Intune license, and to assign an Intune or Microsoft 365 license in the Microsoft 365 admin center if not.

Can an end user fix 0x80180018?

No. Microsoft's description says the user will need to call the admin, because licenses and enrollment settings are managed in the tenant.

Guides that mention 0x80180018

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.