Partager via


Event ID 37 — Remote Desktop License Server Availability

Applies To: Windows Server 2008 R2

The Remote Desktop license server relies on the Remote Desktop Licensing service to be running to install, issue, and track the availability of Remote Desktop Services client access licenses (RDS CALs).

Event Details

Product: Windows Operating System
ID: 37
Source: Microsoft-Windows-TerminalServices-Licensing
Version: 6.1
Symbolic Name: TLS_E_SERVICEINIT
Message: The Remote Desktop Licensing service cannot start. The following error occurred: %1!s!

To resolve this issue, ensure that required groups are granted the correct permissions to the TermServLicensing registry key and that the value of the DBPath registry key matches the location of the LServer directory. If the problem persists, shut down and then restart the Remote Desktop license server.

Resolve

Ensure that registry permissions and values are correct on the license server

To resolve this issue, do the following on the Remote Desktop license server:

  • Ensure that the required permissions are set on the TermServLicensing registry subkeys.
  • Ensure that the value of the DBPath registry subkey matches the location of the RD Licensing database.
  • Start the Remote Desktop Licensing service.

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

Ensure that the required permissions are set on the TermServLicensing registry subkeys

Caution: Incorrectly editing the registry can severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.

To check the permissions on the TermServLicensing registry subkeys:

  1. On the license server, open Registry Editor. To open Registry Editor, click Start, click Run, type regedit, 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 Yes.
  3. Locate the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermServLicensing registry subkey.
  4. Do the following for both the Data and Parameters registry subkeys:
    1. Right-click the registry subkey (for example, Data), click Permissions, and then click Advanced.
    2. Ensure that SYSTEM, NETWORK SERVICE, Administrators, and TermServLicensing each have Full Control permissions assigned.
    3. If the permissions are not correctly assigned, click Edit to change the permissions.
    4. Click OK until all dialog boxes are closed.

Ensure that the value of the DBPath registry subkey matches the location of the RD Licensing database

By default, the RD Licensing database is located in the %systemroot%\system32\lserver folder (where %systemroot% is the folder in which the operating system is installed, which is, by default, c:\windows).

To confirm the location of the RD Licensing database:

  1. On the license server, open Remote Desktop Licensing Manager. To open RD Licensing Manager, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Licensing Manager.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
  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. The database location is listed at the top of the Configuration dialog box.

Caution: Incorrectly editing the registry can severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.

To check the DBPath registry subkey:

  1. On the license server, open Registry Editor. To open Registry Editor, click Start, click Run, type regedit, 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 Yes.
  3. Locate the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermServLicensing\Parameters registry subkey.
  4. In the right pane, locate the DBPath entry, and then view the value for the entry in the Data column.
  5. If the RD Licensing database folder location is incorrect, right-click DBPath, click Modify, type the correct RD Licensing database folder location in Value data, and then click OK.

Start the Remote Desktop Licensing service

To start the service:

  1. On the license server, open the Services snap-in.To open the Services snap-in, click Start, point to Administrative Tools, and then click Services.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
  3. In the Services pane, right-click Remote Desktop Licensing, and then click Properties.
  4. On the General tab, ensure that Startup type is set to Automatic. If it is not, click Automatic, and then click Apply.
  5. Under Service status, click Start.
  6. Click OK to close the Remote Desktop Licensing Properties dialog box.
  7. Confirm that the Status column for the Remote Desktop Licensing service displays Started.

Verify

To verify that the Remote Desktop license server is available, ensure that the Remote Desktop Licensing service is running.

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

To verify that the Remote Desktop Licensing service is started:

  1. On the license server, open the Services snap-in. To open the Services snap-in, click Start, point to Administrative Tools, and then click Services.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
  3. In the Services pane, locate Remote Desktop Licensing.
  4. Confirm that the Status column for the Remote Desktop Licensing service displays Started.

Remote Desktop License Server Availability

Remote Desktop Services