Event ID 4097 — 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: | 4097 |
Source: | Microsoft-Windows-TerminalServices-Licensing |
Version: | 6.1 |
Symbolic Name: | TLS_E_SERVICE_STARTUP_POST_INIT |
Message: | An error occurred during the Remote Desktop license server initialization phase. |
Resolve
Start the Remote Desktop Licensing service, and if necessary, remove and then reinstall Remote Desktop Licensing
To resolve this issue, try to start (or restart) the Remote Desktop Licensing service on the Remote Desktop license server.
If the problem persists, do the following:
- Make a backup copy of the RD Licensing database folder.
- Use Server Manager to uninstall (remove) the Remote Desktop Licensing role service. Removing Remote Desktop Licensing will require you to restart the server.
- Use Server Manager to reinstall (add) the Remote Desktop Licensing role service onto the computer.
To perform these tasks, refer to the following sections.
Start the Remote Desktop Licensing service
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To start (or restart) the Remote Desktop Licensing service:
- 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.
- If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
- In the Services pane, right-click Remote Desktop Licensing, and then click Properties.
- On the General tab, ensure that Startup type is set to Automatic. If it is not, click Automatic, and then click OK.
- Right-click Remote Desktop Licensing, and then click Start or Restart.
- Confirm that the Status column for the Remote Desktop Licensing service displays Started.
Make a backup copy of the RD Licensing database folder
Before you remove the Remote Desktop Licensing role service from the computer, make a backup copy of the folder that contains the RD Licensing database. This is good standard procedure, and a backup can be useful if you need to contact Microsoft Customer Service and Support (CSS) to resolve this issue.
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:
- On the license server, open Remote Desktop Licensing Manager. To open Remote Desktop Licensing Manager, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Licensing Manager.
- If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
- In the left pane, click All Servers, click the name of the license server, and then on the Action menu, click Review Configuration.
- The database location is listed at the top of the Configuration dialog box.
Uninstall (remove) the Remote Desktop Licensing role service
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To uninstall (remove) the Remote Desktop Licensing role service:
- On the license server, open Server Manager. To open Server Manager, click Start, point to Administrative Tools, and then click Server Manager.
- In the left pane, expand Roles, and then expand Remote Desktop Services.
- Under Role Services, click Remove Role Services.
- On the Select Role Services page, clear the Remote Desktop Licensing check box, and then click Next.
- On the Confirm Removal Selections page, click Remove.
- On the Removal Progress page, removal progress will be noted.
- On the Removal Results page, you are prompted to restart the server to finish the removal process. Click Close, and then click Yes to restart the server.
- If you are prompted that other programs are still running, do either of the following:
- To close the programs manually and restart the server later, click Cancel.
- To automatically close the programs and restart the server, click Restart now.
- After the server restarts and you log on to the computer with the same user account, the remaining steps of the removal process will finish automatically. When the Removal Results page appears, confirm that the removal of Remote Desktop Licensing succeeded, and then click Close.
Install (add) the Remote Desktop Licensing role service
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To install (add) the Remote Desktop Licensing role service:
On the license server, open Server Manager. To open Server Manager, click Start, point to Administrative Tools, and then click Server Manager.
Under Roles Summary, click Add Roles.
In the Add Roles Wizard, on the Before You Begin page, click Next.
On the Select Server Roles page, under Roles, select the Remote Desktop Services check box, and then click Next.
On the Remote Desktop Services page, click Next.
On the Select Role Services page, select the Remote Desktop Licensing check box, and then click Next.
On the Configure Discovery Scope for RD Licensing page, specify the discovery scope for the license server.
On the Configure Discovery Scope for RD Licensing page, you can also specify the location where the RD Licensing database will be stored. If you want to specify a database location other than the default location provided, click Browse. Note that the database location must be a local folder on the computer on which the Remote Desktop Licensing role service is being installed.
Click Next. On the Confirm Installation Selections page, verify that the Remote Desktop Licensing role service will be installed, and then click Install.
On the Installation Progress page, installation progress will be noted.
On the Installation Results page, confirm that installation for the Remote Desktop Licensing role service succeeded, and then click Close.
For more information about configuring and managing the RD Licensing role service, see the RD Licensing Manager Help in the Windows Server 2008 R2 Technical Library (https://go.microsoft.com/fwlink/?LinkId=144380).
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:
- 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.
- If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Yes.
- In the Services pane, locate Remote Desktop Licensing.
- Confirm that the Status column for the Remote Desktop Licensing service displays Started.