"Error Connecting to Terminal Server: <ServerName>" Error Message Occurs When You Try to Connect to a Terminal Server (329888)



The information in this article applies to:

  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q329888
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SYMPTOMS

When you try to connect to a server that is running Windows 2000 Terminal Services by using Terminal Services Advanced Client (TSAC), you may receive the following error message, where Servername is the name or the IP address of the terminal server:
VBScript: Error connecting to terminal server: Servername
Additionally, when you view the System log in Event Viewer of the terminal server, the following event ID message is logged:
Event ID: 1004
Description: The terminal server cannot issue a client license.
Other client computers may be able to connect to the terminal server successfully.

CAUSE

This issue can occur if the MSLicensing registry key on the client computer is corrupted.

RESOLUTION

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To resolve this issue, back up the MSLicensing registry key, and then remove it:
  1. Log on to the client computer.
  2. Start Registry Editor.
  3. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSLicensing
  4. On the Registry menu, click Export Registry File.
  5. In the File name box, type mslicensingbackup, and then click Save.

    NOTE: If you have to restore this registry key in the future, double-click the Mslicensingbackup.reg file that you saved in this step.
  6. On the Edit menu, click Delete, and then click Yes to confirm the deletion of the MSLicensing registry subkey.
  7. Quit Registry Editor, and then restart the computer.

    NOTE: Windows rebuilds the missing registry key when you restart your computer.

MORE INFORMATION

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

282128 VBScript Error Message Occurs When You Use Terminal Services Advanced Client


Modification Type:MajorLast Reviewed:6/6/2003
Keywords:kbprb KB329888