Event ID 51 — Terminal Services License Server Database Availability

Applies To: Windows Server 2008

When the Terminal Services Licensing (TS Licensing) role service is installed, a database is created in which to hold information about the Terminal Services client access licenses (TS CALs) that are installed onto the license server.

The location of the TS Licensing database can specified during the TS Licensing role service installation. The database location must be a local folder on the computer on which the TS Licensing role service is being installed. By default, the TS Licensing database is located in the %systemroot%\system32\lserver folder. You can confirm the location of the TS Licensing database by using Review Configuration in the TS Licensing Manager tool.

Event Details

Product: Windows Operating System
ID: 51
Source: Microsoft-Windows-TerminalServices-Licensing
Version: 6.0
Symbolic Name: TLS_W_DBRESTORE_SAVEEXISTING
Message: A backup copy of the TS Licensing database cannot be created and the restored database file will be ignored. The Terminal Services license server will start up with the existing database file.

Resolve

Assign the appropriate permissions to the TS Licensing database folder

To resolve this issue, assign the appropriate permissions to the TS Licensing database folder on the Terminal Services license server.

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

Locate 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.

Assign permissions to the TS Licensing database folder

To assign permissions to the database folder:

  1. On the license sever, use Windows Explorer to navigate to the folder containing the TS Licensing database.

  2. Right-click the folder, and then click Properties.

  3. On the Security tab, click Advanced.

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

  5. Click either Add or Edit to change the permissions. SYSTEM, NETWORK SERVICE, Administrators, and TermServLicensing should each have Full Control permissions and those permissions must apply to This folder, subfolders and files.

    Note:  To add TermServLicensing, ensure that the computer name is listed in From this location, and then in the Enter the object name to select box, type NT Service\TermServLicensing.

  6. When you are finished assigning the correct permissions, click OK.

Verify

To verify the location of the TS Licensing database, use Review Configuration in the TS Licensing Manager tool. 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 perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.

To verify the location of the database folder:

  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.

Use Windows Explorer to navigate to the folder containing the TS Licensing database to confirm its existence and that it contains the tslic.edb file.

Terminal Services License Server Database Availability

Terminal Services