All Products
Search
Document Center

The remote desktop prompts "no remote desktop authorization server can provide license" error

Last Updated: Sep 21, 2020

Disclaimer: This article may contain information about third-party products. Such information is for reference only. Alibaba Cloud does not make any guarantee, express or implied, with respect to the performance and reliability of third-party products, as well as potential impacts of operations on the products.

 

Problem description

  1. After you connect to a Windows Server using remote desktop and enter the correct username and password, the connection fails and the following error message is displayed.
  2. Management terminalConnect to a Windows instance and openRD authorization diagnosis program, The following error message is displayed.

 

Causes

The problem may be caused by the following two reasons.

  • Logon by others
    Another user is logging on to this account. Due to terminal service configurationYesRDP-TCPEach user can only have one session, so other sessions cannot be established.

 

  • The role of the remote desktop session host is installed.
    • If you have installed the remote desktop session host role in the system, you can use this function for free for 120 days. After that, you need to pay for it. If no payment is made, connections cannot be established through the management terminal.
    • Normally, Windows servers provide free remote desktop management authorization for two users by default. If you have higher connection requirements, you must configure the role of the remote desktop session host server, and purchase and configure the corresponding authorization before you can use more remote desktop management concurrency.
    • After the remote desktop session host role is configured, the free connection authorization for the two default users is also canceled. If the relevant authorization is not correctly configured, the remote desktop cannot be connected and the preceding error message is displayed.

 

Solution

You can use either of the following solutions.

 

Logon by others

To disable RDP-TCP limit, a user can have only one session. The procedure is as follows.

  1. Management terminalConnect to a Windows instance.
  1. SelectStartAnd clickRun, And enterGpedit. mscAnd clickOK.
  1. Go to the Local Group Policy Editor page and selectComputer Configuration > Manage templates > Windows components, Double-clickRemote desktop service.
  2. Double-clickRemote desktop session host> Connection.
  3. ClickLimit the number of connectionsFrom the shortcut menu. In the dialog box that appears, selectEnabled, InMaximum RD connections allowedBox, enter the desired maximum number of connections, clickOK.
    Note: the maximum number of RD connections allowed in this topic is 3. The actual conditions are used as the actual conditions.
  4. SelectStartAnd clickRun, And enterCmdAnd clickOK. Open the CLI and run the following command.
    gpupdate

 

The role of the remote desktop session host is installed.

If a remote Windows server fails due to the installation of the remote desktop session host, use the following solutions.

 

Method 1

After configuring the remote desktop session host server, purchase and configure the corresponding certificate authorization on the Microsoft website. For more information, seeMicrosoft documentation.

 

Method 2

You can call this operation to delete the role of the remote desktop session host. By default, two users are granted free access. Follow these steps to configure different versions of Windows Server.

 

Windows 2012

  1. Management terminalConnect to a Windows instance.
  1. SelectStartAnd clickRun, And enterServermanager. mscAnd clickOK.
  1. Go to the Server Manager page and chooseManagement> Delete roles and features.
  1. On the delete feature and role page, clickNextAnd clickNext.
  1. InRoleBox, deselectRemote desktop serviceFor other configurations, clickNext.
  1. Restart a Windows instance.

 

Windows 2008

  1. Management terminalConnect to a Windows instance.
  1. SelectStartAnd clickRun, And enterServermanager. mscAnd clickOK.
  1. On the server management page, clickRole, Right-clickRemote desktop serviceAnd SelectDelete a role.
  1. In the pop-up window, clear the check boxRemote desktop session hostAnd clickNextAnd wait until the configuration is complete.
  2. Restart a Windows instance.

 

Windows 2003

  1. Management terminalConnect to a Windows instance.
  1. SelectStart> Control panel.
  1. SelectAdd or delete a program>Add/delete Windows components.
  1. DeselectTerminal ServerAnd clickNext. In the displayed window, clickCompleted.
  1. Restart a Windows instance.

 

Application scope

  • ECS