Event ID: 18, 39 -- Activate the Terminal Services license server
To resolve this issue, activate the Terminal Services license server by using TS Licensing Manager.
Note: The automatic activation method requires Internet connectivity from the computer running the TS Licensing Manager tool. Internet connectivity is not required from the license server itself. This method uses TCP/IP (TCP port 443) to connect directly to the Microsoft Clearinghouse. You can also activate the license server by using a Web browser or by using the telephone. For more information about these activation methods, see "Activate a Terminal Services License Server" in the TS Licensing Manager Help in the Windows Server 2008 Technical Library ( http://go.microsoft.com/fwlink/?LinkId=101640).
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To activate the license server automatically:
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.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
In the left pane, click All Servers, click the name of the license server, and then on the Action menu, click Activate Server. The Activate Server Wizard starts.
Click Next.
On the Connection Method page, in the Connection method list, select Automatic connection (recommended), and then click Next.
On the Company Information page, type your name, company, and country/region information, and then click Next.
Specify any other information that you want to provide, such as e-mail and company address. This information is optional.
Click Next. Your license server is activated.
On the Completing the Activate Server Wizard page, clear the Start Install Licenses Wizard now check box, and then click Finish.
Event ID: 17 -- Reactivate the license server
To resolve this issue, reactivate the Terminal Services license server.
Note: The automatic reactivation method requires Internet connectivity from the computer running the TS Licensing Manager tool. Internet connectivity is not required from the license server itself. This method uses TCP/IP (TCP port 443) to connect directly to the Microsoft Clearinghouse. You can also reactivate the license server by using a Web browser or by using the telephone. For more information about these activation methods, see "Reactivate a Terminal Services License Server" in the TS Licensing Manager Help in the Windows Server 2008 Technical Library ( http://go.microsoft.com/fwlink/?LinkId=101646).
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To reactivate the license server automatically:
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.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
Ensure that the connection method for the license server is set to Automatic connection (recommended) by right-clicking the license server that you want to reactivate, and then clicking Properties. On the Connection Method tab, change the connection method if necessary, and then click OK.
Right-click the license server that you want to reactivate, point to Advanced, and then click Reactivate Server. The Reactivate Server Wizard starts.
On the Welcome page, click Next.
On the Information Needed page, provide the requested information, including the reason for the reactivation, and then click Next.
Your request to reactivate the license server is sent to the Microsoft Clearinghouse for processing, and the license server is reactivated.
On the Completing the Reactivate Server Wizard page, click Finish.
Event ID: 40, 41, 42, 4137 -- Remove and then reinstall the TS Licensing role service
To resolve this issue, do the following:
Make a backup copy of the TS Licensing database folder
Uninstall (remove) the TS Licensing role service by using Server Manager. Removing TS Licensing will require you to restart the server.
Reinstall (add) the TS Licensing role service onto the computer by using Server Manager.
To perform these tasks, refer to the following sections.
Make a backup copy of the TS Licensing database folder
Before you remove the TS Licensing role service from the computer, make a backup copy of the folder that contains the TS 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. When backing up a license server, back up both the System State data and the folder in which the TS Licensing database is installed. This ensures that data in both the registry and the TS Licensing database is backed up.
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 confirm the location of the TS Licensing database:
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.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
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 TS 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 TS 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.
Right-click Terminal Services, and then click Remove Role Services.
On the Select Role Services page, clear the TS 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 TS Licensing succeeded, and then click Close.
Install (add) the TS 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 TS 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, right-click Roles, and then 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 Terminal Services check box, and then click Next.
On the Terminal Services page, click Next.
On the Select Role Services page, select the TS Licensing check box, and then click Next.
On the Configure Discovery Scope for TS Licensing page, specify the discovery scope for the license server. For more information, see "Terminal Services License Server Discovery" in the TS Licensing Manager Help in the Windows Server 2008 Technical Library ( http://go.microsoft.com/fwlink/?LinkId=101648).
On the Configure Discovery Scope for TS Licensing page, you can also specify the location where the TS 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 TS Licensing role service is being installed.
Click Next. On the Confirm Installation Selections page, ensure that the TS 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 TS Licensing role service succeeded, and then click Close.
For more information about configuring and managing the TS Licensing role service, see the TS Licensing Manager Help in the Windows Server 2008 Technical Library ( http://go.microsoft.com/fwlink/?LinkId=101639).
Event ID: 4103 -- Attempt to reactivate the license server again
To resolve this issue, try again to reactive the Terminal Services license server.
Note: The automatic reactivation method requires Internet connectivity from the computer running the TS Licensing Manager tool. Internet connectivity is not required from the license server itself. This method uses TCP/IP (TCP port 443) to connect directly to the Microsoft Clearinghouse. You can also reactivate the license server by using a Web browser or by using the telephone. For more information about these activation methods, see "Reactivate a Terminal Services License Server" in the TS Licensing Manager Help in the Windows Server 2008 Technical Library ( http://go.microsoft.com/fwlink/?LinkId=101646).
Reactivate the Terminal Services license server
To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.
To reactivate the license server automatically:
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.
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
Verify that the connection method for the license server is set to Automatic connection (recommended) by right-clicking the license server that you want to reactivate, and then clicking Properties. On the Connection Method tab, change the connection method if necessary, and then click OK.
Right-click the license server that you want to reactivate, point to Advanced, and then click Reactivate Server. The Reactivate Server Wizard starts.
On the Welcome page, click Next.
On the Information Needed page, provide the requested information, including the reason for the reactivation, and then click Next.
Your request to reactivate the license server is sent to the Microsoft Clearinghouse for processing, and the license server is reactivated.
On the Completing the Reactivate Server Wizard page, click Finish.
Event ID: 19 -- Check the service, and if necessary, reactivate the license server
To check the Terminal Services 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 Continue.
In the Services pane, right-click Terminal Services 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.
Confirm that the Status column for the Terminal Services Licensing service displays Started.
If necessary, right-click Terminal Services Licensing, and then click Start.
Confirm that the Status column for the Terminal Services Licensing service displays Started.
If necessary refer to the section above titled “Reactivate the Terminal Services license server”
Event ID: 4120-- Check the service, and if necessary, remove and then reinstall TS Licensing
To check the Terminal Services 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 Continue.
In the Services pane, right-click Terminal Services 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.
Confirm that the Status column for the Terminal Services Licensing service displays Started.
If necessary, right-click Terminal Services Licensing, and then click Start.
Confirm that the Status column for the Terminal Services Licensing service displays Started.
If necessary refer to the section above titled “Remove and then reinstall the TS Licensing role service”
Target | Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TSLicensing | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.2SingleEventLog2StateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TSLicensing.TerminalServicesLicenseServerActivation" Accessibility="Public" Enabled="onStandardMonitoring" Target="Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TSLicensing" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TSLicensing.TerminalServicesLicenseServerActivation_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDisplayNumber$</AlertParameter1>
<AlertParameter2>$Data/Context/EventDescription$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>System</FirstLogName>
<FirstExpression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(17|18|19|39|40|41|42|4120|4103|4137)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-TerminalServices-Licensing</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>System</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-TerminalServices-Licensing</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>