The problem is due to a bug in windows 10 and azure where if the computer s name was changed after joining to azure ad then there s no way to unjoin the computer unless you know that original computer name when you joined.
Windows 10 pro disconnect from azure ad.
Do click on mark as answer on the post that helps you and vote it as helpful this can be beneficial to other community members.
Join a new windows 10 device with azure ad during a first run.
I was able to locate this original computer name under the registry key.
Open settings and then select accounts.
If you ve had your device for a while and it s already been set up you can follow these steps to join your device to the network.
Well good news just rolled in today with the release of windows 10 build 10041 we now have the option to disconnect our devices again.
To join an already configured windows 10 device.
Suggest you to refer this article on cannot disconnect from organization when joined to azure ad on windows 10 and you can also refer to this similar discussion here see if it helps.
Select access work or school and make sure you see text that says something like connected to your organization azure ad.
With device management in azure active directory azure ad you can ensure that your users are accessing your resources from devices that meet your standards for security and compliance.