No more licenses monitor

Microsoft.Windows.Server.2012.R2.RRAS.Nomorelicenses (UnitMonitor)

A user was unable to connect to the Routing and Remote Access server as the server has exceeded its client license limit.

Knowledge Base article:

Summary

A user was unable to connect to the Routing and Remote Access server as the server has exceeded its client license limit.

Causes

The Routing and Remote Access server has exceeded its client license limit.

Resolutions

Microsoft Corporation, all rights reserved

Element properties:

TargetMicrosoft.Windows.RemoteAccess.2012.R2.Class.VPNServer
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.SingleEventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
No more licenses monitor
A user was unable to connect to the Routing and Remote Access server as the server has exceeded its client license limit.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2012.R2.RRAS.Nomorelicenses" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.RemoteAccess.2012.R2.Class.VPNServer" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="true">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2012.R2.RRAS.Nomorelicenses_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="EventRaised" MonitorTypeStateID="EventRaised" HealthState="Warning"/>
<OperationalState ID="ManualResetEventRaised" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">20097</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">RemoteAccess</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>