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