Fix 0x80180018 Error when registering with Device Management

Error 0x80180018 is a direct result of using two or more user accounts on a Windows PC. This error may also occur when you use two or more Microsoft Office 365 products on the same computer.

Whatever the issue is in your case, you may resolve this issue by switching to a local user account and then setting up your Microsoft 365 and Azure AD directory accounts to this account. 

What is Error 0x80180018?

Error 0x80180018 is an MDMLicense-related issue that is known to manage the device’s permissions. This mostly occurs when you try to add two or more Office 365 user accounts on your Windows PC. Using two or more user accounts often results in some license conflicts, and thus results in this error code. 

When you encounter this bug, you might also receive an error message that reads the following – 

A problem occurred
Server Error Try again.(0x80180018 )

Though this error mostly appears when using Office 365, this may also occur when you use two or more user accounts on your Windows PC. 

Note: As per the official Azure AD documentation, Error 0x80180018 represents an issue with the MDMLicense. 

Fix Error 0x80180018, There was an error with your license

If you are encountering an error 0x80180018 while registering with Device Management, you need to create a new local user account and then link a new work or school account to it.

After you perform both these steps, you will be able to resolve this error code on your Windows PC. Do note that you need to sign into your computer as administrator, so that you may create the local user account successfully. 

1] Create a Local User Account

Follow the below steps to create a local user account on your Windows PC –

  • Right-click on the Windows icon, and select Settings
  • Go to Accounts on the left navigation, and select Other users on the right pane. 

Create Other User Account in Windows 11

  • On the next screen, click the “Add account” button next to “Add other user“.
  • A pop-up window will appear next prompting you to sign into your Microsoft account. 
  • Click “I don’t have this person’s Sign-in information“.

I don't have this person sign-in information

  • On the next screen, click on “Add a user without a Microsoft account“.

Add a user without a Microsoft account

  • You may now fill in the details against the User name, and set a password for this user account. 

Create a Local User account on your PC - 0x80180018 Error

  • Click Next and a local user account will soon be generated on your Windows PC. 

Restart your PC and when this reboots, sign into your newly generated local user account. 

2] Add Work and School Account

In order to add a work and school account on your Windows PC, you need to first sign in using the newly created local account credentials. After you sign in to your computer successfully, use these steps –

  • Press Windows + I to launch Settings.
  • Locate and click on Accounts, available on the left pane.
  • Head over to the right pane and scroll down to Account settings. 
  • Here, you will find the settings to “Access work or school“. Click on it.

Access work or school account in Windows 11 - 0x80180018 Error

  • Locate and click on the Connect button next to “Add a work or school account”.

Add a work or school account - 0x80180018 Error

  • When prompted, provide your Microsoft 365 email id on the pop-up window and hit the Next button.
  • You may now follow the on-screen instructions to sign into your first work or school account. 

Note:

  1. You must join your computer to Azure AD Directory, add DEM user credentials, and click on Next and Sign In.
  2. Repeat the above steps to add your other school or work account. 

After you successfully add both a work and a school account to your local user account, the error 0x80180018 should get resolved automatically from the subsequent login. 

Read Next: How to change Local Account Password on Windows 11

Soni Aryan

Soni Aryan

Soni Kumari is a tech enthusiast known for her expertise in how-to type topics and Windows troubleshooting articles. She loves exploring how to do things or tweaks in Android, iPhone, and other operating systems.