The terminal server could not locate a license server or the licensing grace period is at or near an end

Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TerminalServer.EventCollection.1129.1128.1130.1131.1132 (Rule)

Knowledge Base article:

Resolutions

This error might be caused by one of the following conditions:

There is a network connectivity problem between the terminal server and the license server

To determine if there is a network connectivity problem between the terminal server and the license server, use the ping command.

Note:  The following procedures include steps for using the ping command to perform troubleshooting. Therefore, before performing these steps, check whether the firewall or Internet Protocol security (IPsec) settings on your network allow Internet Control Message Protocol (ICMP) traffic. ICMP is the TCP/IP protocol that is used by the ping command.

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

To determine if there is a network connectivity problem between the terminal server and the license server:

If you cannot successfully ping the license server by IP address or by FQDN, see the section below titled "Identify and fix network connectivity issues."

The license server is not correctly configured to be automatically discovered

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

To determine if the license server is correctly configured:

The terminal server cannot automatically discover (contact) a 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 determine if the terminal server can discover a license server:

The Terminal Services Licensing service is not running on the 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 determine if the Terminal Services Licensing service is started:

Identify and fix network connectivity issues

To resolve this issue, identify and fix any network connectivity problems between the terminal server and the Terminal Services license server.

Note:  The following procedures include steps for using the ping command to perform troubleshooting. Therefore, before performing these steps, check whether the firewall or Internet Protocol security (IPsec) settings on your network allow Internet Control Message Protocol (ICMP) traffic. ICMP is the TCP/IP protocol that is used by the ping command.

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

If you can successfully ping the license server by IP address, but not by FQDN, this indicates a possible issue with DNS host name resolution.

If you cannot successfully ping the license server by IP address, this indicates a possible issue with network connectivity, firewall configuration, or IPsec configuration.

The following are some additional troubleshooting steps that you can perform to help identify the root cause of the problem:

Configure the discovery scope for the Terminal Services license server

To resolve this issue, use Review Configuration in TS Licensing Manager to identify and, if possible, correct any issues that prevent the Terminal Services license server from being automatically discovered by terminal servers.

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

To review the configuration of the license server:

Note:  The message in the Configuration dialog box that appears will depend on the discovery scope that has been configured for the license server. The current discovery scope for the license server is listed in the Configuration dialog box. The recommended discovery scope for a Windows Server 2008 license server is Forest. For more information about discovery scopes, 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).

Specify a Terminal Services license server for the terminal server to use

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

To specify a license server to use:

Note:  You can also specify a Terminal Services license server for the terminal server to use by using Group Policy.

Start the Terminal Services Licensing service on the license server

To resolve this issue, start the Terminal Services Licensing service on 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 start the Terminal Services Licensing service:

Element properties:

TargetMicrosoft.Windows.Server.2008.TerminalServicesRole.Service.TerminalServer
CategoryEventCollection
EnabledTrue
Event SourceMicrosoft-Windows-TerminalServices-RemoteConnectionManager
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
The terminal server could not locate a license server or the licensing grace period is at or near an end
{0}
Event LogSystem

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TerminalServer.EventCollection.1129.1128.1130.1131.1132" Enabled="onStandardMonitoring" Target="Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TerminalServer" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(1129|1128|1130|1131|1132)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-TerminalServices-RemoteConnectionManager</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertName/>
<AlertDescription/>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.Server.2008.TerminalServicesRole.Service.TerminalServer.EventCollection.1129.1128.1130.1131.1132.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>