How to solve Error Code: 80180006

Sean Stroud 20 Reputation points
2024-02-19T19:25:31.54+00:00

I mirrored my hard drive to a new PC, I am able to sign into all of the Microsoft Apps individually but I cannot add my Microsoft account to the "work or school" account on Windows 11. I get the error 80180006, stating there was an unhandled exception on the MDM server. None of our devices are MDM enabled, our IT company said I cannot mirror hard drives as the registry wont match the new hardware and will cause issues with Entra ID. Is there a way to fix this issue short of reinstalling Windows and losing all of my data?

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Answer accepted by question author
  1. Wesley Li 11,575 Reputation points
    2024-02-20T08:21:13.64+00:00

    Hello, Here is an workaround for theerror 80180006 cannot add my Microsoft account to the "work or school" account:

    1. Open search> Manage your account>access work or school> Enroll only in device management. Then add accounts as normal. Restart
    2. Then under company portal register user as normal, however uncheck "allow company to manage your device" . Where it normally throws the 80180006 error it will complete as normal. Additionaly,t he key was adjusting the MAM user scope settings. Initially, the MAM user scope was set to 'All users,' which usually gives priority to the Company Portal enrolment MAM over the MDM. By changing this setting to 'None,' it was able to resolve the conflict. Diagnose MDM enrollment failures - Windows Client Management | Microsoft Learn

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.