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?