Step-by-Step Guide to Fix 0x80180005 Error in Windows

Fixing Error Code 0x80180005: Device Enrollment or MDM Connection Fail

Try it yourself, or Reach Out!

If you still need a hand, we’re just a plan away

What is the 0x80180005 Error?


The 0x80180005 error code typically occurs when attempting to enroll a Windows device in Azure Active Directory (AAD) or Mobile Device Management (MDM) services like Intune. It indicates a failure in device registration due to permission conflicts, duplicate records, or policy restrictions. This issue mostly affects enterprise environments, BYOD setups, and Microsoft 365 users trying to connect their devices to work or school accounts.

Causes

  • Device already enrolled in Azure AD or MDM: The system is trying to register again while still linked to a previous record.
  • Enrollment restrictions exceeded: The user has reached the maximum number of devices allowed by policy.
  • Insufficient user permissions: The account lacks rights to enrol devices in Azure AD or Intune.
  • Corrupt registry entries from past enrollments: Incomplete or broken MDM records remain on the device.
  • Multiple conflicting accounts: Previously added work or school accounts interfere with new enrollment.
  • Conditional access or compliance policy blocks: Azure or Intune policies may restrict enrollment based on device or user state.

Resolution Steps




1. Verify Device Enrollment Status in Azure AD or Intune

  • Go to Azure Portal
  • Navigate to Azure Active Directory β†’ Devices
  • Search for your device name
  • If already listed, remove it before re-attempting enrollment

2. Check MDM Enrollment Restrictions

  • In the Microsoft Endpoint Manager admin centre, go to:
  • Devices β†’ Enrollment β†’ Enrollment Restrictions
  • Ensure your device type (Windows) is allowed
  • Check limits per user and increase if necessary

3. Unenroll Device via Registry (Advanced)

Warning: Be cautious when editing the registry.

  • Press Win + R, type regedit, and press Enter
  • Navigate to:
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments
  • and
  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments\Status
  • Delete any subkeys related to previous MDM enrollments
  • Restart your computer and try enrolling again

4. Use Work or School Account Correctly

  • Go to Settings β†’ Accounts β†’ Access work or school
  • Remove any old or inactive accounts
  • Click + Connect, and add your organisation's work or school account properly
  • Ensure correct credentials and MFA settings are used

5. Confirm User Has Enrollment Permissions

  • Ensure the user account is part of an AAD group with enrollment permissions
  • In Intune, confirm the user is within a group allowed to register devices
  • Check if device enrollment is limited per user (default is 5 devices)

6. Try Clean Re-Enrollment

If the device was previously managed:

  • Factory reset the device (Settings β†’ Recovery β†’ Reset this PC)
  • Remove device record from Azure AD and Intune
  • Re-attempt enrollment using correct work credentials

7. Check Conditional Access or Compliance Policies

  • In Azure AD β†’ Conditional Access, ensure no policies are blocking the user/device
  • Review device compliance rules under Endpoint Manager β†’ Devices β†’ Compliance policies.

8. Run Windows Troubleshooter (Optional)

  • Go to Settings β†’ System β†’ Troubleshoot β†’ Other troubleshooters
  • Run the Account, Network, or Device enrollment troubleshooters


We’re Here for You!


Follow our step-by-step instructions to troubleshoot the issue. Still need help?
Contact us and choose a plan, and our experts will take care of it for you.

Transparent Pricing

Simple, upfront pricing with no hidden fees or surprises

Endpoints

  • Desktops$49
  • Laptops$49
  • Mobile Devices (MDM)$19
  • Workstations$69
  • POS/Kiosks$49
  • Network Printers$29
  • Purchase Now

Network

  • Routes$29
  • Switches$15
  • Firewalls$29
  • Access Points$9
  • VPN Gateways$19
  • Load Balancers$49
  • Purchase Now

Server

  • On-Prem Servers$99
  • Virtual Servers$69
  • Cloud Servers$99
  • Storage Systems (NAS/SAN)$49
  • Backup Appliances$99
  •   
  • Purchase Now

Security

  • Endpoint Protection (EDR)$9
  • AV/Antimalware$9
  • Patch Management$9
  • Web Filtering$9
  • MFA$5
  •   
  • Purchase Now

BDR

  • Local Backup$49
  • Cloud Backup$49
  • DR Infrastructure$199
  •   
  •   
  •   
  • Purchase Now

Compliance

  • Policy Mgmt & Audits$149/month
  • DLP$5/user
  • IT Governance Tools$199/month
  •   
  •   
  •   
  • Purchase Now

NOC

  • 24/7 Monitoring$10/device
  • RMM Tools$3/device
  • MDR Service$25/device
  •   
  •   
  •   
  • Purchase Now

SOC & SIEM

  • Threat Intelligence$199/month
  • Cloud SIEM (Sentinel, etc.)$200–$1000+
  •   
  •   
  •   
  •   
  • Purchase Now

Helpdesk

Open a Ticket / Contact Us

Need help now or want to explore partnership options?

Subscribe our newsletter to stay updated!