question

Dazzlingrain-2989 avatar image
0 Votes"
Dazzlingrain-2989 asked StefanLievers-6399 commented

Azure AD error message when I try to connect my VM win 10 to my VM Server 2019 local domain

First time poster on this forum, I am a beginner.

I have am trying to connect my windows 10 Vm to the root domain I have created on my Windows server 2019 Vm. When I entered in the name and password to an account with permission to enter the domain I got this error:

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

When I entered settings --> Accounts there is no option for me to disconnect Azure AD. When I enter "work access" I am able to sign in to Azure AD. I am a student and the vm is connected to my student account. Should I disconnect from the student domain? When I press the "disconnect from the organization" I get a message that I will no be able to sign in to this PC with your organizations account.

Any help will be appreciated.

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered

Hi @Dazzlingrain-2989 , unfortunately student accounts limit certain Azure features. If you disconnect from the student account this should work properly. Please let me know if you have any questions.

Best,
James

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ReiffLorenz-2089 avatar image
3 Votes"
ReiffLorenz-2089 answered StefanLievers-6399 commented

I had a similar problem when joining an Azure VM Windows 2022 Server to an Azure-based Active Directory domain. It said the server was already joined to the Azure AD.

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

But the system properties just showed the machine as part of a Workgroup. there was nothing to disconnect from.

The solution was to run DSRegCmd /Leave from an administrator command prompt. Then I could add the server to my Azure AD.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you, I had the same scenario and the solution also worked for me

5 Votes 5 ·

DSRegCmd /Leave did break the connection to AzureAD. Now I cannot login to the machine.

0 Votes 0 ·

You still have your local admin account from creating the VM right?
If you don't remember that account and/or password go the the VM via the Azure Portal, then under "Support + troubleshooting" choose "Reset Password".
In the blade that appears you can choose both username and password so that you can login again.

Hope this helps.

1 Vote 1 ·