此对象可监视 WMI 注册,如果检测到 DFS 复制无法在 WMI 中注册,将会创建“严重”警报。
此对象监视 Windows Management Instrumentation (WMI) 注册情况,如果检测到 DFS 复制无法使用 WMI 进行注册,将会创建“严重”警报。通过查找是否存在 DFS 复制事件 6104 来实现。
此监视器的不正常状态表示由于 DFS 复制无法使用 WMI 进行注册而停止复制。如果 Windows Management Instrumentation 服务已停止,则可能会出现此情况。
重新启动 Windows Management Instrumentation 服务
若要通过使用 sc 命令远程重新启动该服务,请打开命令提示符窗口,然后执行以下操作:
1. 若要停止该服务,请键入以下命令,其中 [servername] 是远程服务器的通用命名约定 (UNC) 路径:
sc [servername] stop winmgmt
2. 若要确认该服务处于“已停止”状态,请键入以下命令:
sc [servername] query winmgmt
3. 若要重新启动该服务,请键入以下命令:
sc [servername] start winmgmt
注意:若要重新启动服务,您必须是受影响服务器上本地 Administrators 组的成员。您也可以使用服务管理单元、Windows PowerShell Start-Service 和 Stop-Service cmdlet,或命令行工具(例如 net stop 和 net start)来重新启动服务。
注册 DFS 复制 WMI 提供程序
若要执行此操作,请使用以下过程:
1. 登录到受影响的服务器,然后打开提升的命令提示符窗口。
2. 键入以下命令:Mofcomp.exe %systemroot%\system32\wbem\dfsrprovs.mof.
3. 键入以下命令:net stop dfsr.
4. 键入以下命令:net start dfsr.
验证
此监视器将在解决问题后自动重置为正常状态。
若要确认该服务处于“已停止”状态,请键入以下命令:
sc [servername] query winmgmt
DFS 复制事件 6104 (http://go.microsoft.com/fwlink/?LinkId=187160)
Target | Microsoft.Windows.FileServer.DFSR.Service | ||
Parent Monitor | System.Health.ConfigurationState | ||
Category | StateCollection | ||
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.FileServer.DFSR.WmiProviderRegistrationFailureMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServer.DFSR.Service" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.FileServer.DFSR.WmiProviderRegistrationFailureMonitor_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Params/Param[1]$</AlertParameter1>
<AlertParameter2>$Data/Context/Params/Param[2]$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Error"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>DFS Replication</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">6104</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>DFS Replication</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DFSR</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">6102</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1004</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1104</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>