Event ID 37 — Terminal Services License Server Availability

Applies To: Windows Server 2008

The Terminal Services license server relies on the Terminal Services Licensing service to be running in order to install, issue, and track the availability of Terminal Services client access licenses (TS CALs).

Event Details

Product: Windows Operating System
ID: 37
Source: Microsoft-Windows-TerminalServices-Licensing
Version: 6.0
Symbolic Name: TLS_E_SERVICEINIT
Message: The Terminal Services 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 Terminal Services license server.

Resolve

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

To resolve this issue, do the following on the Terminal Services 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 TS Licensing database.
  • Start the Terminal Services 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 Continue.
  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 TS Licensing database

By default, the TS 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 TS Licensing database:

  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. 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 Continue.
  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 TS Licensing database folder location is incorrect, right-click DBPath, click Modify, type the correct TS Licensing database folder location in Value data, and then click OK.

Start the Terminal Services 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 Continue.
  3. In the Services pane, right-click Terminal Services 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 Terminal Services Licensing Properties dialog box.
  7. Confirm that the Status column for the Terminal Services Licensing service displays Started.

Verify

To verify that the Terminal Services license server is available, ensure that the Terminal Services 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 Terminal Services 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 Continue.
  3. In the Services pane, locate Terminal Services Licensing.
  4. Confirm that the Status column for the Terminal Services Licensing service displays Started.

Terminal Services License Server Availability

Terminal Services