To fix the problem, unregister the device by running and at an elevated command prompt.dsregcmd /debug /leavedsregcmd /debug /join
Can't disconnect Windows 10 from Azure AD
I am having a problem with a certain Azure AD joined computer, it is not getting all the configuration policies sent to it from Intune. I tried disconnecting it from Azure AD but I get the issue where none of my local admin account passwords work to try and disconnect. I have gone in and renamed the computer to the original computer name before it was joined to Azure AD and that still does not work. I am seeing this error in the Sign In logs
Sign-in error code
50155
Failure reason
Device authentication failed.
I cannot for the life of me disconnect this computer from Azure AD.