The remote session was disconnected because there are no Terminal Server license servers available to provide a license

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Cause

The terminal server might not be able to locate the license server.

Solution

Perform the troubleshooting procedures described in The terminal server cannot locate the license server.

Cause

The client might have exceeded its Terminal Server Licensing grace period (https://go.microsoft.com/fwlink/?LinkID=48895), and a license server has not yet been installed or activated to issue the client a client access license (CAL). After a temporary license expires, a client can only connect to a terminal server if the license server can issue a permanent CAL.

Solution

Install Terminal Server Licensing, activate the license server, then purchase and install a sufficient number of CALs to support the clients in your organization. As a security best practice, consider Using Run as (https://go.microsoft.com/fwlink/?LinkID=48886) to perform this procedure.

Note

If you are installing an Enterprise License server and your environment includes multiple trusted Active Directory sites, each of which hosts a terminal server, you can use a script to publish a single license server across all of these sites. Doing this can greatly simplify deployment because it eliminates the need to deploy a separate license server in each site, and it eliminates the need to distribute CALs to license servers across multiple sites. For a sample script that you can use to accomplish this task, see the Microsoft Script Center (https://go.microsoft.com/fwlink/?LinkID=48230) on the Microsoft Web site. Note that this sample script is not supported under any Microsoft standard support program or service.

To install Terminal Server Licensing

  1. Open Add/Remove Programs in Control Panel.

  2. Double-click Add/Remove Programs.

  3. Click Add/Remove Windows Components.

  4. In Terminal Server Licensing Setup, do one of the following:

    • Click Your entire enterprise to choose an Enterprise license server. You can only install an Enterprise license server on a domain controller or a member server in a domain (if the member server is running Windows Server 2003), not on a stand-alone server. This role is published to Active Directory. If you are installing an Enterprise License Server, you must meet one of the following conditions: 1) You must be a member of the Enterprise Admins group in Active Directory or 2) You must have the right to create the TS-Enterprise-License-Server object in the same site in which the license server will reside in Active Directory.

    • Click Your domain or workgroup to choose a Domain license server. If you select this option, the computer on which you install the license server does not have to be a domain controller, if the computer is running Windows Server 2003. However, if the computer is running Windows 2000, the computer on which you install the license server must be a domain controller or a stand-alone server in a workgroup. If the computer on which you plan to install the license server is in a workgroup, it can only be automatically discovered by terminal servers on the same subnet. If you are installing a Domain license server, you must be a member of the Administrators group on the local computer. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure.

  5. Provide the file system location where the license server database should be installed on the Terminal Server license server, click Next, and then click Finish.

    The default location for the license server database is systemroot\System32\LServer.

You can activate a Terminal Server license server by using one of three methods: Automatic, Web Browser, or Telephone. It is recommended that you activate a license server automatically, as described in the following procedure.

Note

To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider Using Run as (https://go.microsoft.com/fwlink/?LinkID=48886).

To activate a license server automatically.

  1. Open Terminal Server Licensing. To open Terminal Server Licensing, click Start, point to Control Panel, Administrative Tools, and then click Terminal Server Licensing.

  2. In the console tree, right-click the license server that you want to activate, click Activate Server, and then follow the instructions in the wizard.

  3. In the Activation method list, select Automatic connection (recommended), and then click Next.

  4. Follow the instructions in the wizard.

  5. If necessary, at a later time you can change any license server properties, such as activation method and company information, that you set during the activation process.

Then, Purchase CALs as required and Install CALs automatically.