Windows – Office error: “We weren’t able to register your device and add your account to Windows.”

office365windows 10

Full error

Something went wrong

We weren't able to register your device and add your account to
Windows. Your access to org resources may be limited.

History

Due to a local domain issue, I had to remove my PC from the domain and re-add it. After that my user profile was broken so I used a tool to migrate it. Upon logging in, all my settings were back but I was not logged into my Office 365 apps. When I try to, I get the error above.

After lots of troubleshooting, I created a new local account on my PC and was able to successfully set up Office and login as expected.

Question

How can I fix my current domain-based Windows profile so that I can login to Office using my Office365 credentials?

Best Answer

I know this is an old post but this might help someone out there. I forgot I had an existing installation of Office 365 and I keep getting the above error. I ran these commands in CMD (open as admin):

cscript.exe "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /dstatus

Take note of the last 5 digits of the product key. Then run this command:

cscript.exe "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" /unpkey:XXXX

(replace the XXXX with the last 5 chars of the prod key):

This is only recommended for users who have Office Apps with Office 365 license.

Reference here

Related Question