My Amazon Elastic Compute Cloud (Amazon EC2) Windows instance is joined to AWS Directory Service for Microsoft Active Directory or Simple Active Directory (Simple AD). I want to allow domain users Remote Desktop Protocol (RDP) access for the instance. When I try to connect using the built-in Remote Desktop Users group as a domain user, I receive the following message: "The connection was denied because the user account is not authorized for remote login." How can I fix this?
Short description
AWS Managed Microsoft AD and Simple AD don't allow you to add domain users to the built-in Remote Desktop Users domain group. Instead, create a Group Policy Object (GPO) using the built-in Admin account, and then apply the policy to the delegated computers.
Note: The GPO applies to all computers in the organizational unit (OU) that the policy is linked to. Any users that you add to the group using the following procedure will have RDP access to any computer in the OU.
Resolution
Before you start:
To allow domain users RDP access to the domain joined Windows instances, follow these steps:
- Connect to your Windows EC2 instance using RDP.
- Create a user. Repeat this step if you need more than one user.
- Create a security group. Note the security group name for a later step.
- Add the new users to the new security group.
- Open Group Policy Management. Select your domain’s Forest, expand Domains, and then expand your domain name.
- Expand your delegated OU (NetBIOS name of the directory). Open the context (right-click) menu for Computers, and then choose Create a GPO in this domain, and Link it here.
- For Name, enter a name, and then choose Ok.
- In the navigation pane, expand Computers. Open the context (right-click) menu for the policy, and then choose Edit.
- In the Computer Configuration section of the navigation pane, expand Preferences, Control Panel Settings.
- Open the context (right-click) menu for Local Users and Groups, and then choose New, Local Group.
- For Group name, choose Remote Desktop Users (built-in), and then choose Add.
- For Name, enter the name of the security group that you created in step 3, and then choose Ok.
This policy updates your environment at the next policy refresh interval. To force the policy to apply immediately, run the gpupdate /force command on the target server.
Related information
AWS Managed Microsoft AD
Simply Active Directory
Manage users and groups in AWS Managed Microsoft AD