AAD Joining error

You may encounter an error when trying to join your Azure windows server to the Azure Active Directory domain as below:

The device is joined to Azure AD. To join an Active Directory Domain, you must first go to the settings and choose to disconnect your device from your work or school

How to disconnect the device:

Run DSRegCmd /Status from an elevated command prompt. Check the value for AzureAdJoined : YES in the output under Device State as below:

In order to disjoin the machine from Azure AD, run DSRegCmd /Leave in elevated command prompt as below. If you run DSRegCmd /Status  again, you can observe that value of AzureAdJoined is set as NO as shown below:

Tags:

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Comments