DFS-N: フォルダーの削除

Microsoft.Windows.FileServer.DFSN.6.3.RootTarget.RemoveLinkFailedAlertRule (Rule)

このオブジェクトは、DFS フォルダー (リンク) の削除を監視します。

Knowledge Base article:

概要

このルールは、DfsSvc イベント 14540 があるかどうかを調べて DFS フォルダー (リンク) の削除を監視し、DFS フォルダーの削除に失敗した場合にエラー アラートを生成します。

原因

プログラムまたはスクリプトが、DFS_MOVE_FLAG_REPLACE_IF_EXISTS フラグを指定して NetDFSMove 関数を使用してフォルダーを移動または名前変更し、既存のフォルダーを同じ名前で上書きした際に、DFS 名前空間が上書きされたフォルダーの削除に失敗すると、この問題が発生する可能性があります。

解決方法

この問題を解決するには、DFS の管理スナップインまたはDfsutil link remove コマンドを使用して、手動で DFS フォルダーを削除します。

注意: 名前空間を管理するには、名前空間をホストしている各名前空間サーバーのローカルの Administrators グループのメンバーであるか、アクセス許可を委任されている必要があります。

追加情報

Element properties:

TargetMicrosoft.Windows.FileServer.DFSN.6.3.RootTarget
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityLow
RemotableTrue
Alert Message
DFS 名前空間リンクの削除操作に失敗した
イベントの説明: {0}
Event LogSystem

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Windows.FileServer.DFSN.6.3.RootTarget.RemoveLinkFailedAlertRule" Enabled="true" Target="Microsoft.Windows.FileServer.DFSN.6.3.RootTarget" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/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">14540</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>DfsSvc</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[1]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="DFSNLib!Microsoft.Windows.FileServer.DFSN.RootTarget"]/RootName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>0</Priority>
<Severity>1</Severity>
<AlertName/>
<AlertDescription/>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.FileServer.DFSN.6.3.RootTarget.RemoveLinkFailedAlertRule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/Channel$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/LoggingComputer$</SuppressionValue>
<SuppressionValue>$Data/Params/Param[1]$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>