DFS-R: WMI の登録

Microsoft.Windows.FileServer.DFSR.WmiProviderRegistrationFailureMonitor (UnitMonitor)

このオブジェクトは、WMI の登録を監視し、DFS レプリケーションが WMI に登録できないことを検出した場合に、重大なアラートを作成します。

Knowledge Base article:

概要

このオブジェクトは、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 コマンドレット、または net stopnet 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)

Element properties:

TargetMicrosoft.Windows.FileServer.DFSR.Service
Parent MonitorSystem.Health.ConfigurationState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DFS-R: WMI への登録に失敗した
DFS レプリケーションが WMI に登録できませんでした。WMI の登録が成功するまで、レプリケーションは無効になります。エラー: {0} ({1})
RunAsDefault

Source Code:

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