AzureAD

How to Add Azure AD User to Remote Desktop Users Group if a Device is Connected with Azure AD Joined

You can either use PowerShell or Command Prompt to add Azure AD users to remote desktop users’ groups. Both will do the same job. However, only the command differs.

: – Using Command Prompt add Azure AD user to RD users’ group

If you prefer to use the command prompt, use the below command to add Azure AD users to the remote desktop users’ group.

  • Open the command prompt as administrator and run the below command.

net localgroup “Remote Desktop Users” /add “AzureAD\username@xyz.com”

[Note: Instead of username@xyz.com email address you need to use your domain email address]

: – Using PowerShell add Azure AD user to RD users’ group

If you want to use PowerShell to add the user to the remote desktop users’ group.

  • Open PowerShell as administrator and run the below command.
Add-LocalGroupMember -Group "Remote Desktop Users" -Member "AzureAD\username@domain.onmicrosoft.com"

[Note: Instead of username@xyz.com email address you need to use your domain email address]

Leave a Reply

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

Meet Patel
Meet Patel

Meet is a Network & Systems Engineer and has 3+ years of I.T.field. He has an experience in Windows Servers, Veeam Backup, Patch Management, Microsoft 365, Azure, and more.

Thanks For Reading