30

I setup Remote Desktop Connection and the computer says: AzureAD\username already has access:

enter image description here

Very good, let's try to connect using AzureAD\username:

enter image description here

Unfortunately it says:

Your credential did not work. Remote machine is AAD joined. If you are signing in to your work account, try using your work email address.

Of course it didn't work. Any idea?

3
  • 2
    AzureAD is a lie. Nothing about is is "Active" nor "Directory". Your standard RDP app will struggle to connect to it, and you can just forget about the Android & iOS RDP apps too.
    – SnakeDoc
    Jun 10, 2020 at 20:32
  • @SnakeDoc thank you for the relief, at least I will stop hitting the wall with my head. Any idea why Microsoft tells lies like this? Is very misleading. So basically RDC is not working on Windows 10 Home? I need a Pro license? Jun 11, 2020 at 7:43
  • 3
    No, I don't think the edition of Windows matters. Microsoft has made AzureAD sufficiently different that the default RDP connection settings will not work. I've had success following this: bradleyschacht.com/remote-desktop-to-azure-ad-joined-computer
    – SnakeDoc
    Jun 11, 2020 at 17:08

6 Answers 6

95

To successfully connect to an AzureAD joined computer using Remote Desktop, you will need to first save your connection settings to a .rdp file.

To do this, open the Remote Desktop Connection program, enter the IP Address or computer name, then click the "Save As" button at the bottom of the screen. Save it someplace convenient, since we'll need to edit this file by hand.

Next, Right-Click the saved .rdp file and open with Notepad.

Go to the very bottom of the file, add the following lines:

enablecredsspsupport:i:0
authentication level:i:2

Save the file and close.

Now, try double clicking the modified .rdp file and login using the format:

AzureAD\YourFullUsername

Screenshots, original information and credit go to bradleyschacht.com

10
  • 6
    Wow thank you! wish I could upvote 100 times.
    – David
    Dec 2, 2020 at 8:11
  • 6
    In 2021, lots of places are disabling NLA for Remote Connections. When I try these settings, I get an error of [Window Title] Remote Desktop Connection [Content] 'The remote computer requires Network Level Authentication, which your computer does not support. For assistance, contact your system administrator or technical support.' Do you have any pointers?
    – FoxDeploy
    May 12, 2021 at 17:40
  • 4
    @FoxDeploy AzureAD is a lie, there is nothing "Active" nor "Directory" about AzureAD - ie, you do not have a real directory server, which is why network level authentication fails. You need to disable NLA on the machine you're remoting into for AzureAD RDP to work.
    – SnakeDoc
    May 12, 2021 at 17:52
  • 2
    Thank you so much! For me the key was the user name is my email so it was formatted like this. .\AzureAD\email@company.com
    – Chris
    Aug 17, 2021 at 17:25
  • 3
    To disable NLA on the machine you're remoting to: open the Run command box, run the command sysdm.cpl, go to the Remote tab, uncheck the Allow connections ... with Network Level Authentication (recommended) checkbox. You might need to restart your computer but I didn't. You can find more options to turn off this setting here. Dec 12, 2021 at 9:54
6

As an updated answer, the solution is to simply open up the options for the connection, go to the Advanced tab, and check "Use a web account to sign in to the remote computer".

Remote Desktop Connection, Advanced Settings

3
  • Thank you @jscarle , I will test it out next time I need it Jan 8 at 20:47
  • This is the preferred way to do it, i can not upvote this enough! Feb 9 at 10:22
  • This is the best answer! Saving it for future reference! Mar 12 at 17:11
4

As long as RDP is enabled on the remote machine and the user you are trying to logon is with authorized, it should work.

The Azure Active Directory username is not exactly clear though.

Joined computer via 'FirstName@domain.com', an Azure Active Directory domain account.

Computer shows 'AzureAD\FirstNameLastName' as authorized for RDP since it's an administrator account.

Must use 'AzureAD\FirstName@domain.com' for RDP username.

No other settings changes needed, no manual editing of RDP file just had to get the username right.

1

from your window, it doesn't seem like you logged in with an azuread account, try with francescomantovani@yourazureaddomain.com as a username?

as per here:https://learn.microsoft.com/en-us/windows/client-management/connect-to-remote-aadj-pc

When you connect to the remote PC, enter your account name in this format: AzureAD UPN. The local PC must either be domain-joined or Azure AD-joined. The local PC and remote PC must be in the same Azure AD tenant.

1
  • I don't have an AzureAD Domain, I only have Windows 10 Home license and I want to connect through RDC from one PC to another Jun 11, 2020 at 7:44
0

For some reason the old remote desktop connection application was throwing the same error. I tried connecting through new remote desktop application( included in windows 10 ), it connected without any problem.

0

The issue is related to the password, which we have set at the time of the creation of VM.

That password doesn't meet the complexity criteria that we didn't get informed about while setting the username & password firstly. Therefore we need to reset the password.

1). click on created VM --> choose reset Password from the side menu.

enter image description here

2). This time they will tell us about constraints for setting the password.

3). Choose the appropriate password.

4). Now login via this format as below:

username : <publicIpOfVM>/<username>
password:  newPassword
1
  • That was not my solution but I'm glad you post it. Maybe things have changed and this is the new solution. Thank you Mar 3, 2022 at 20:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.