This document describes how to manage alarm prompts such as "Remote session has been disconnected as no remote desktop authorization server is available for licensing" when you try to remotely connect to a Windows instance.
When you try to connect to a Windows instance by using Windows Remote Desktop, a prompt stating "Remote session has been disconnected as no remote desktop authorization server is available for licensing. For assistance, please contact your system administrator" appears, as shown in the following figure:
The possible causes to this problem include but are not limited to the following. Therefore, always analyze the problem based on the actual situation.
- The RDP-TCP limit is set by the system by default, and it allows only one session for each user. If the account has been logged in, no additional sessions can be established.
- The "Remote Desktop Session Host" role feature was added by the system, but the validity period of the feature has expired.
The "Remote Desktop Session Host" role feature is free for use for 120 days. After the period, you must pay for the feature to continue to use it.
Logging in to the CVM through VNC
- Log in to the CVM console.
- On the instance management page, locate the target CVM instance and click Log In, as shown in the following figure:
- In the Log in to Windows instance window that appears, select Alternative login methods (VNC), and click Log In Now to log in to the CVM.
- In the login window that appears, select Send Remote Command in the upper-left corner, and press Ctrl-Alt-Delete to go to the system login interface, as shown in the following figure:
Solution 1: Modify the policy configuration
- On the operating system interface, click to open a Windows PowerShell window.
- In the Windows PowerShell window, enter gpedit.msc and press Enter to open Local Group Policy Editor.
- In the left navigation tree, choose Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections, and double-click Limit number of connections, as shown in the following figure:
- In the "Limit number of connections" window that appears, modify Maximum RD connections supported and click OK, as shown in the following figure:
- Switch to the Windows PowerShell window.
- In the Windows PowerShell window, enter gpupdate and press Enter to update the policy.
Solution 2: Delete the "Remote Desk Session Host" role
If you want to keep the "Remote Desktop Session Host" role, skip this step and go to the Microsoft official website to purchase and configure the appropriate certificate.
- On the operating system interface, click to open Server Manager.
- Click Manage in the upper-right corner of the "Server Manager" window and select Delete roles and features, as shown in the following figure:
- In the "Delete roles and features" wizard, click Next.
- On the "Delete server roles" page, uncheck Remote Desktop Services. In the prompt box that appears, select Remove Feature.
- Click Next twice.
- Check Restart the destination server automatically if required, and click Yes in the prompt box that appears.
- Click Delete.
Wait for the CVM to restart.