How to login to an AzureAD Domain Joined Windows 10 via Remote Desktop

by | Jan 9, 2021 | IT Tips | 0 comments

You may have a weird local username on your AzureAd Joined Windows 10 Pro device

1
2
3
4
5
6
7
dsregcmd.exe /status
... snippage
Executing Account Name : AzureAD\RupertShocking_xvj0pkur, rupert@example.com
... snippage
 
whoami /UPN
rupert@example.com

The secret is the format AzureAD\rupert@example.com where rupert@example.com is your Azure / Microsoft 365 login user. This is the UPN (userPrincipalName)

Also you will have to modify the RDP settings on the Windows 10 Pro computer you are connecting to and disable Network Location Authentication (NLA)

Here is a snippet I added as an Intune script which did the trick

1
2
3
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name SecurityLayer -Value 0 -ErrorAction SilentlyContinue
 
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name UserAuthentication -Value 0 -ErrorAction SilentlyContinue

0 Comments

Submit a Comment

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.