To fix error 0x80180018, which usually appears when enrolling a device in Microsoft Intune or adding a Microsoft account, you need to correct the device’s time and date, verify your account permissions, or re-register the device in the company portal. This error is most common on Windows 10 and Windows 11 during automatic enrollment, and the fix typically takes less than ten minutes.
What Is Error 0x80180018?
Error 0x80180018 is a Windows enrollment error that occurs when a device cannot complete the registration process with a mobile device management (MDM) service, most often Microsoft Intune. It can also appear when you try to add a work or school account in the Settings app. The error message usually reads “Something went wrong” or “We couldn’t automatically enroll your device,” and it may be accompanied by a message that the user is not authorized to enroll.
This error is not a sign of a hardware failure or a corrupted Windows installation. It is a configuration or permission problem. The most common triggers are an incorrect system clock, a user account that lacks the proper license or enrollment permission, or a device that was previously enrolled and left in a stale state.
Common Causes of Error 0x80180018
Before you start troubleshooting, it helps to know what usually causes this error. The following list covers the most frequent culprits, so you can decide which fix to try first.
- Incorrect system time and date: Windows uses the current time to generate authentication tokens. If your clock is off by even a few minutes, enrollment can fail.
- Missing or expired Intune license: The user account must have an Intune license (or a license that includes Intune, like Microsoft 365 E3) assigned.
- User lacks enrollment permissions: In Intune, the user must be allowed to enroll devices. An administrator can restrict this in the Intune portal.
- Device already enrolled: If the device is already registered with another MDM or has a leftover enrollment record, the new enrollment attempt fails.
- Stale device record in Azure AD: A previous enrollment that was not cleaned up can block a new one.
- Group policy or registry restrictions: Some organizations set policies that prevent enrollment.
How to Fix Error 0x80180018
Work through these steps in order. The first fix is the most common and the least invasive, and each step after that addresses a deeper cause.
- Check the system time and date. Right-click the clock in the taskbar and select “Adjust date/time.” Ensure “Set time automatically” and “Set time zone automatically” are both on. If the time is wrong, turn off automatic time, set it manually, then turn automatic time back on. Restart the device and try enrollment again.
- Verify your account has an Intune license. Sign in to the Microsoft 365 admin center (admin.microsoft.com) with an administrator account. Go to “Users” > “Active users,” select your user, and check the “Licenses and apps” tab. If the Intune license is not assigned, assign it and wait a few minutes for it to propagate.
- Check enrollment restrictions in Intune. In the Intune admin center (intune.microsoft.com), go to “Devices” > “Enrollment” > “Enrollment restrictions.” Make sure the default policy allows Windows enrollment and that your user is not blocked by a device platform restriction.
- Remove the device from Azure AD and Intune. If the device was previously enrolled, sign in to the Azure portal (portal.azure.com) and go to “Azure Active Directory” > “Devices.” Find the problematic device, select it, and click “Delete.” Then go to the Intune admin center, “Devices” > “All devices,” find the same device, and delete it there too. On the local device, open a command prompt as administrator and run
dsregcmd /leave, then restart. - Re-register the device with the Company Portal. Open the Company Portal app, sign in, and check if the device appears. If it does, select it and click “Remove.” Then click “Add device” or “Enroll” and follow the prompts.
- Reset Windows (if all else fails). If no other fix works, you can reset Windows while keeping your files. Go to Settings > Update & Security > Recovery (or Settings > System > Recovery on Windows 11) and choose “Reset this PC.” Select “Keep my files,” then re-enroll after the reset.
What to Try If the Error Persists
If you have completed all the steps above and the error still appears, there are a few more advanced options. These require administrator rights and should be done carefully.
- Check the registry for MDM enrollment entries. Open Registry Editor and navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments. Look for subkeys that contain an EnrollmentType value of 6 (which indicates MDM). If you find any, you can delete them, but only after you have backed up the registry. This is a last resort because it can leave the device in an inconsistent state. - Run the Microsoft Support and Recovery Assistant. Microsoft provides a tool that can diagnose and fix Office and Microsoft 365 enrollment issues. Download it from the Microsoft website and run the “Office” or “Outlook” scenario, even if the issue is not with Office, because it can also detect Intune enrollment problems.
- Contact your IT administrator. If you are not the administrator, the error may be caused by a tenant-wide policy that you cannot change. Have your admin check the Intune audit logs for the specific error and the user’s enrollment attempts.
How to Prevent Error 0x80180018 in the Future
Once you have fixed the error, you can take a few precautions to avoid it happening again. The most important is to keep the system clock synchronized. Enable automatic time sync and, if you are in a domain, make sure the domain controller provides the correct time. Also, when you retire a device, always delete its record from both Azure AD and Intune before you re-enroll it. For administrators, set up enrollment restrictions that clearly define which users and devices can enroll, and assign licenses in groups so that new users automatically get the Intune license.
Frequently Asked Questions
Does error 0x80180018 mean my device is broken?
No. This error is a configuration issue, not a hardware failure. Your device is fine; the problem is in the enrollment setup, the account permissions, or the time settings.
Can I fix error 0x80180018 without an administrator?
You can fix the time and date yourself, and you can remove the device from Azure AD if you have the right to do so. However, assigning licenses and changing enrollment restrictions require an administrator. If you are a regular user, contact your IT department.
Why does the error appear when I add a Microsoft account?
Adding a Microsoft account to Windows triggers a device registration process. If the account is not allowed to enroll or the time is off, you see the same error. The fix is the same: check the time, verify the account, and remove any stale device records.
Will resetting Windows definitely fix the error?
Resetting Windows clears all local enrollment records and settings, so it often resolves the error. However, if the problem is on the server side (like a missing license), the error will come back after the reset. Try the other fixes first.
Is error 0x80180018 the same as error 0x80180014?
No, they are different codes. Error 0x80180014 typically indicates that the device is already enrolled or that the enrollment request is blocked by a policy. Error 0x80180018 is more often related to permissions or time. The troubleshooting steps overlap, but the exact cause may differ.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Spotify Jam Not Working on Mobile? Fixes That Work
- Windows 10 No Internet Secured WiFi Error Fix
- Multi-Cloud GPU Failover Design Guide
- Error Code Currant Destiny? Meaning & Fixes
- AirPlay with Roku Multi-Device Setup: A How-To
- How to Set a Timer on iPhone (iOS 18 & 17)