Partager via


Event ID 65 — Terminal Services License Server Discovery

Applies To: Windows Server 2008

Terminal Services license server discovery is the process by which a terminal server discovers (contacts) an available license server to request Terminal Services client access licenses (TS CALs) for the clients that are connecting remotely to the terminal server. If the terminal server cannot discover a license server, client connections may fail.

The recommended discovery scope for a license server is forest discovery scope. If you configure forest discovery scope, terminal servers, without any additional configuration, can automatically discover a license server in the same forest, because the license server is published in Active Directory Domain Services. To configure forest discovery scope, you must be logged on as an enterprise administrator to the forest in which the license server is a member.

Note: A terminal server running Windows Server 2008 can only communicate with a license server running Windows Server 2008.

Event Details

Product: Windows Operating System
ID: 65
Source: Microsoft-Windows-TerminalServices-Licensing
Version: 6.0
Symbolic Name: TLS_E_LS_PUBLISHED
Message: The attempt to publish the Terminal Services license server in Active Directory Domain Services failed.
Win32 error code: %1!s!

Resolve

Publish the license server in Active Directory Domain Services

To resolve this issue, publish the Terminal Services license server in Active Directory Domain Services (AD DS).

You can publish the license server in AD DS either by using TS Licensing Manager or by using ADSI Edit. To perform these tasks, refer to the following sections.

Publish the license server by using TS Licensing Manager

To perform this procedure, you must have membership in the local Administrators group on the license server and membership in the Enterprise Admins group in AD DS, or you must have been delegated the appropriate authority.

  1. On the license server, open TS Licensing Manager. To open TS Licensing Manager, click Start, point to Administrative Tools, point to Terminal Services, and then click TS Licensing Manager.

  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

  3. In the left pane, click All Servers, click the name of the license server, and then on the Action menu, click Review Configuration.

  4. In the Configuration dialog box, click Publish in AD DS.

    Note:  If Publish in AD DS does not appear in the Configuration dialog box, the license server is already published in AD DS and no further action is required.

  5. Click Continue, and then click OK.

Publish the license server by using ADSI Edit

To peform this procedure, you must have membership in the Enterprise Admins group in AD DS, or you must have been delegated the appropriate authority.

  1. Open ADSI Edit. To open ADSI Edit, log on to a computer where ADSI Edit is installed (for example, a Windows Server 2008 AD DS domain controller), click Start, click Run, type adsiedit.msc, and then click OK.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  3. On the Action menu, click Connect to.
  4. Under Connection Point, select Select a well known Naming Context, select Configuration from the drop-down list, and then click OK.
  5. Expand the Configuration container, and then expand the node that represents the domain in which the license server is a member (for example, CN=Configuration,DC=contoso,DC=com).
  6. Expand CN=Sites, and then click the container for the AD DS site in which the license server is located (for example, CN=Default-First-Site-Name).
  7. In the right pane, under Name, if there is an entry for CN=TS-Enterprise-License-Server, do the following:
    1. Right-click TS-Enterprise-License-Server, and then click Properties.
    2. Under Attributes, click siteServer, and then click Edit.
    3. Under Value to add, type in the name of the license server that you want to publish, click Add, and then click OK.
    4. Click OK to close the CN=TS-Enterprise-License-Server Properties dialog box.
  8. If under Name there is not an entry for CN=TS-Enterprise-License-Server, on the Action menu, point to New, and then click Object.
  9. In the Class Object dialog box, select licensingSiteSettings, and then click Next.
  10. In Value, type TS-Enterprise-License-Server, click Next, and then click Finish.
  11. Open Active Directory Sites and Services. To open Active Directory Sites and Services, log on to a computer where Active Directory Sites and Services is installed (for example, a Windows Server 2008 AD DS domain controller), click Start, click Run, type dssite.msc, and then click OK.
  12. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  13. Under Sites, locate the AD DS site in which the license server is located (for example, Default-First-Site-Name), and then click the name of the AD DS site.
  14. In the right pane, right-click TS-Enterprise-License-Server, and then click Properties.
  15. Under Licensing Computer, click Change.
  16. In the Enter the object name to select box, type the name of the license server, click OK, and then click OK.

Verify

To verify the discovery scope configuration of the license server, use Review Configuration in TS Licensing Manager.

To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.

To verify the discovery scope configuration:

  1. On the license server, open TS Licensing Manager. To open TS Licensing Manager, click Start, point to Administrative Tools, point to Terminal Services, and then click TS Licensing Manager.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  3. In the left pane, click All Servers.
  4. In the right pane, in the Configuration column, an entry of OK should appear in the row for the license server.
  5. To review the configuration details of the license server, right-click the license server that you want to review, and then click Review Configuration.
  6. There should not be any error or warning messages related to discovery in the Configuration dialog box.

Note:  To verify that the terminal server can discover (contact) the license server, use Licensing Diagnosis in the Terminal Services Configuration tool on the terminal server.

Terminal Services License Server Discovery

Terminal Services