How to resolve connection was denied because the user account is not authorized for remote login.

Khushi 0 Reputation points
2023-12-26T14:39:46.64+00:00

Hi,

I am unable to login with the domain users in the azure vm, getting below error. I have added users inside the remote login apply the GPO but still same problemUser's image

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,045 questions
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2023-12-26T14:57:40.24+00:00

    Hi @Khushi

    Did you try adding the user as member of the local group Remote Desktop Users on the target server ?

    Can you share with us which GPO are you using to allow users to open remote desktop session on this server ?


    Please don't forget to accept helpful answer

    0 comments No comments

  2. Anonymous
    2023-12-27T02:40:15.2766667+00:00

    Hello Khushi,

    Thank you for posting in Q&A forum.

    If we want normal domain user to log on Domain machines remotely, we can set as below:

    1.On the DC, open Group Policy Management Editor.

    2.Right click Default Domain Policy or the custom GPO that linked to OU with domain machines in it and click Edit.

    3.And navigate to Computer Configuration\Policies\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Allow logon through Remote Desktop Services, there should be domain Administrators group, Remote Desktop Users and the user accounts in the domain now we want.

    For example:33335-re111.png

    Restart the domain machines or run gpupdate /force om domain machines.

    And in the domain machines, you should open Local users and groups, add the domain users you want to "Remote desktop users".

    I hope the information above is helpful.

    If you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.