-1

I am unable to login my office 365 account on my virtual machine. This my logs when I run dsregcmd /status on cmd.

I tried to edit the VM using this command, still not working. enablecredsspsupport:i:0 authentication level:i:2

Also, I added Role assignment: Virtual Machine Administrator Login and Virtual Machine User Login

And I have this on my extension: AADLoginForWindows

Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
jasmer
  • 25
  • 5

1 Answers1

0

I tried to reproduce the same in my environment and got the results like below:

While creating virtual machine in management Make sure to check login with Azure Ad like below:

enter image description here

In your virtual machine check whether extension is added:

enter image description here

Try to assign role assignment Virtual Machine User Login or Virtual Machine Administrator Login to user

Now, Download Rdp file and login. When I tried to check with dsregcmd /status Azure AD joined successfully:

enter image description here

To Login with Azure Ad credentials account try to change Network Level Authentication access in RDP to avoid an error:

In RDP -> search box type allows remote connection to this computer -> uncheck the box like below:

enter image description here

Now edit your RDP downloaded file, try to include

enablecredsspsupport:i:0
authentication level:i:2
username:s:xxxxx.onmicrosoft.com (Add your username here)
domain:s:AzureAD

enter image description here

When I try to connect with login AzureAd\UPN with user it connected successfully like below:

enter image description here

Imran
  • 3,875
  • 2
  • 3
  • 12
  • After i edited the RDP using this : enablecredsspsupport:i:0 ,authentication level:i:2. I am unable to log my AD account. – jasmer Dec 23 '22 at 05:48
  • Use Azure\username in login and can you include what error you are getting? – Imran Dec 23 '22 at 05:55
  • Incorrect password and username. I had also configure the Azure AD account, using this documentation : https://learn.microsoft.com/en-us/azure/active-directory/cloud-sync/tutorial-single-forest. Unable to connect it using the office 365 account. Please need help and assistance. Thanks for the reply. – jasmer Dec 26 '22 at 02:46
  • Check this reference https://youtu.be/4Hv5NYhhQJ8 to more in detail – Imran Dec 26 '22 at 08:45
  • I can now log by setting the group policy but the problem now is I am seeing different session. How to have a VM that has the same session with multiple users? thanks – jasmer Dec 27 '22 at 08:36
  • 1
    How to accept it? – jasmer Dec 28 '22 at 00:38