When connecting to an Amazon Elastic Compute Cloud (Amazon EC2) Windows instance using Remote Desktop Protocol (RDP), I receive this error message: "The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license. Please contact the server administrator." How can I resolve this?
The error indicates there is an issue with the Remote Desktop Services host settings on your Amazon EC2 Windows instance.
If you don't need to run more than two concurrent RDP sessions, uninstall the Remote Desktop Service.
If you installed the Remote Desktop services host settings on your Amazon EC2 Windows instance to allow more than 2 concurrent RDP client sessions, then you must purchase Client Access Licenses (CALs). RDS provides a licensing grace period of 120 days. After the grace period expires, you must purchase CALs to allow more than two concurrent RDP user sessions.
For assistance with purchasing and installing CALs, contact your VAR or Microsoft Partner.
If you purchased CALs and receive the error, then the server might not be reachable by the instance that you're connecting to. For more information, see Cannot connect to RDS because no RD Licensing servers are available.
Uninstall Remote Desktop Services
- Open Remote Desktop client using below command and connect to the Windows server:
- Run the following Windows PowerShell command as an administrator:
Uninstall-WindowsFeature -name Remote-Desktop-Services -includemanagementtools -confirm
- Reboot the machine.
Note: If you still can't connect to a Windows instance using RDP, you might have to perform additional troubleshooting. For more information, see How do I troubleshoot Remote Desktop connection issues to my Amazon EC2 Windows instance?
Connect to your Windows instance
Command-line reference mstsc
RDP displays a black screen instead of the desktop