VM RDP connection issue
When connecting to a virtual machine via RDP, the error The remote session was disconnected because there are no Remote Desktop License Servers available occurs. After that, the session is terminated.
By default, Windows Server allows only two simultaneous remote RDP connection sessions. In addition, a single user account cannot use the VNC console and connect to the VM via RDP at the same time — the session that was started later will remain active.
To increase the limit on the number of active sessions, the following must be configured and activated:
- Remote Desktop Services roles;
- Remote Desktop Licensing roles;
- a client access license (CAL) package.
As a workaround, you can connect to the VM via RDP in administration mode. This is possible even if the limit on the number of active sessions has been reached.
To connect to a session in administration mode:
-
Run the command:
mstsc /v:<VM_IP_ADDRESS> /adminHere
<VM_IP_ADDRESS>is the IP address or fully qualified domain name of the virtual machine. -
In the window that opens, enter your credentials.
-
Confirm the connection.