DFS 复制 WMI 运行状况

Microsoft.Windows.Server.2016.AD.AvailabilityEssentialService.DFSR.WMICheck (UnitMonitor)

监视 DFS 复制 WMI 的运行状况

Knowledge Base article:

摘要

监视 DFS 复制服务是否能够成功注册 WMI 提供程序。如果此操作失败,在解决问题之前,将一直禁用复制。

原因

DFS 复制服务无法成功注册 WMI 提供程序。

解决方案

验证 Windows Management Instrumentation (WMI)服务是否已设置为自动启动并且正在运行。

检查应用程序和系统事件日志,以确保服务器未出现系统性问题。

根据下面的链接执行 WMI 和 DFS 复制问题排查。

外部

有关详细信息,请参阅:

Element properties:

TargetMicrosoft.Windows.Server.2016.AD.DomainController.SYSVOL.DFSR
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableFalse
AccessibilityPublic
Alert Message
DFS 复制 WMI 提供程序注册失败
DFS 复制 WMI 提供程序注册失败。在解决问题之前,将一直禁用 DFS 复制。错误:{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2016.AD.AvailabilityEssentialService.DFSR.WMICheck" Accessibility="Public" Enabled="true" Target="AD2016Core!Microsoft.Windows.Server.2016.AD.DomainController.SYSVOL.DFSR" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="false" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2016.AD.AvailabilityEssentialService.DFSR.WMICheck.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data[Default='']/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Error" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="Success" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>DFS Replication</FirstLogName>
<FirstExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>6104</Value>
</ValueExpression>
</SimpleExpression>
</FirstExpression>
<SecondComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>DFS Replication</SecondLogName>
<SecondExpression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>6102</Value>
</ValueExpression>
</SimpleExpression>
</SecondExpression>
</Configuration>
</UnitMonitor>