Prajwal Desai

SCCM | ConfigMgr | Intune | Windows 11 | Azure

  • Home
  • Cloud
    • Autopilot
    • Azure
    • Endpoint Analytics
    • Intune
    • PowerShell
    • Teams
    • Windows 365
  • Microsoft
    • Active Directory
    • Group Policy
    • SCCM
    • SCOM
    • Windows 10
    • Windows 11
    • Windows Server
    • WSUS
  • Software
  • Forums
  • Newsletter
  • Contact
Notification Show More
Latest News
Fix Windows Autopilot Reset Error 0x80070032
Fix Windows Autopilot Reset Error 0x80070032
Autopilot Intune
Windows activation error 0xc004c020
Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods
Windows 11 Windows 10
Find the Package ID of SCCM Application
3 Best Ways to Find the Package ID of SCCM Application
SCCM
SCCM Updates Install Error 0x800b0109 0x8024b303
Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303
SCCM
Disable Windows Hello for Business using Intune ftimg
Disable Windows Hello for Business using Intune – Comprehensive Guide
Intune Autopilot
Aa

Prajwal Desai

SCCM | ConfigMgr | Intune | Windows 11 | Azure

Aa
Search
  • Home
  • Cloud
    • Autopilot
    • Azure
    • Endpoint Analytics
    • Intune
    • PowerShell
    • Teams
    • Windows 365
  • Microsoft
    • Active Directory
    • Group Policy
    • SCCM
    • SCOM
    • Windows 10
    • Windows 11
    • Windows Server
    • WSUS
  • Software
  • Forums
  • Newsletter
  • Contact
Follow US

Home » Azure » How to Add Azure AD user to Remote Desktop Users Group

Azure

How to Add Azure AD user to Remote Desktop Users Group

By Prajwal Desai 1 View September 9, 2021 5 Min Read

In this article, I will show you how to add Azure AD user to Remote Desktop Users group on a computer or Azure VM. Once you add the Azure AD user account to the remote desktop users group, you can RDP the device.

In order to successfully RDP VM using Azure AD credentials, you must add Azure AD user to the remote desktop users group on the VM. This is one of the steps covered in troubleshooting how to RDP into a Azure AD-joined VM in Azure. Don’t forget to read that post in case you are unable to RDP the Azure VM.

Starting in Windows 10, version 2004, you can add users or Azure AD groups to the Remote Desktop Users using MDM policies. When you want to sign in with an Azure AD user account to a computer, you must add the user to Remote Desktop Users group on that computer.

If you want to allow additional users or groups to connect to the PC, you must allow remote connections for the specified users or groups. Users can be added either manually or through MDM policies.

- Advertisement -
Ad image

Adding the Azure AD user to the RD users group requires you to first login to the device or Azure VM. You must use the local admin account to sign-in to perform the changes. This is the account that you specified while creating VM in Azure.

I have few Azure VM’s and I will be picking up one and show you the steps to add the AAD user to RDP group. You can use the same method to add the user to local administrator group as well.

Some of you may attempt to add the Azure AD user directly from the remote desktop user group properties, but that method will not work. You have to use the PowerShell or command prompt to add Azure AD user to the Remote Desktop users group.

Add Azure AD user to Remote Desktop Users Group

Let’s look at the steps to add the Azure AD user to remote desktop users group on the Azure VM. Remember that the AD user account that you add should be in AzureAD\username@domain.onmicrosoft.com format.

You can either use PowerShell or Command Prompt to add Azure AD user to remote desktop users group. Both will do the same job. However, only the command differs and I will show you both the methods here.

Using Command Prompt add Azure AD user to RD users group

First, if you prefer to use command prompt, use the below command to add Azure AD user to remote desktop users group. Launch the command prompt as administrator and run the below command.

net localgroup "Remote Desktop Users" /add "AzureAD\username@domain.onmicrosoft.com"
How to Add Azure AD user to Remote Desktop Users Group
How to Add Azure AD user to Remote Desktop Users Group

Using PowerShell add Azure AD user to RD users group

If you want to use PowerShell to add the user to RD user group, launch the PowerShell as administrator and run the below command.

Add-LocalGroupMember -Group "Remote Desktop Users" -Member "AzureAD\username@domain.onmicrosoft.com"

After you have added the Azure AD user, you can verify if the user has been added to remote desktop users group. In the computer properties, under Remote Desktop, select users who can access this PC remotely. This will load the Remote Desktop Users window, and now you should see the Azure AD user account that you added.

Add Azure AD user to Remote Desktop Users Group
Add Azure AD user to Remote Desktop Users Group

You can confirm if the Azure AD user has been to remote desktop users group by running the below PowerShell command.

Get-LocalGroupMember -Name "Remote Desktop users"
Add Azure AD user to Remote Desktop Users Group
Add Azure AD user to Remote Desktop Users Group

Sign Up For Weekly Newsletter

Get the most recent information on Configuration Manager, Intune, Windows 11, Windows 365, Autopilot, Azure, Software Reviews, and much more by subscribing to the newsletter.
By signing up, you agree and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share this Article
Facebook Twitter Copy Link Print
Avatar photo
By Prajwal Desai
Follow:
Prajwal Desai is a Microsoft MVP in Enterprise Mobility. He writes articles on SCCM, Intune, Configuration Manager, Microsoft Intune, Azure, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
Previous Article Windows Server 2022 updates in ConfigMgr Enable Windows Server 2022 Updates in SCCM ConfigMgr
Next Article Fix SCCM Software Center Error 0x87D00324 Fix SCCM Application Install Error 0x87D00324(-2016410844)
Recast Sponsored AD
Ad image
Patch My PC Sponsored AD
Ad image

Latest Articles

Fix Windows Autopilot Reset Error 0x80070032
Fix Windows Autopilot Reset Error 0x80070032
Autopilot Intune
Windows activation error 0xc004c020
Fix: Windows Activation Error 0xC004C020 with 2 Easy Methods
Windows 11 Windows 10
Find the Package ID of SCCM Application
3 Best Ways to Find the Package ID of SCCM Application
SCCM
SCCM Updates Install Error 0x800b0109 0x8024b303
Fix: SCCM Updates Install Error 0x800b0109 | 0x8024b303
SCCM
Subscribe to Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

You Might Also Like

Azure VM Remote Computer Requires Network Level Authentication
Azure

Azure VM: Remote Computer Requires Network Level Authentication

By Prajwal Desai
List all Azure Regions using PowerShell
AzurePowerShell

List all Azure Regions using PowerShell | Azure Cloud Shell

By Prajwal Desai
Assign Windows 365 License to Cloud PC User
AzureWindows 365

How to Assign Windows 365 License to Cloud PC User

By Prajwal Desai

Removed from reading list

Undo
Welcome Back!

Sign in to your account

Lost your password?