Terminal Services License Server Activation

Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TSLicensing.TerminalServicesLicenseServerActivation (UnitMonitor)

Knowledge Base article:

Resolutions

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:

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:

Event ID: 40, 41, 42, 4137 -- Remove and then reinstall the TS Licensing role service

To resolve this issue, do the following:

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:

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:

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:

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:

Event ID: 19 -- Check the service, and if necessary, reactivate the license server

To check the Terminal Services Licensing service:

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:

If necessary refer to the section above titled “Remove and then reinstall the TS Licensing role service

Element properties:

TargetMicrosoft.Windows.Server.2008.TerminalServicesRole.Service.TSLicensing
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Terminal Services License Server Activation
Event ID: {0} -- Description: {1}
RunAsDefault

Source Code:

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