DFS-N:重复的 DFS 文件夹

Microsoft.Windows.FileServer.DFSN.6.3.DuplicateLinksAlertRule (Rule)

此对象监视是否存在重复的 DFS 文件夹(链接)。

Knowledge Base article:

摘要

此规则监视重复的 DFS 文件夹(链接)。它通过查找事件查看器的系统日志中是否存在 DfsSvc 事件 14547 实现此操作。

原因

如果脚本尝试在基于域的命名空间(Windows Server 2008 模式)中创建 DFS 文件夹的同时也在其他命名空间服务器上创建相同的文件夹,DFS Namespace 服务会创建两个同名文件夹。

解决方案

若要删除重复的文件夹,您必须是命名空间所在的域中的 Domain Admins 组成员。若要删除重复的文件夹,请参阅 DFS 命名空间 FAQ (http://go.microsoft.com/fwlink/?LinkId=171023)。

其他

DFS 命名空间事件 14547 (http://go.microsoft.com/fwlink/?LinkId=187111)

Element properties:

TargetMicrosoft.Windows.FileServer.DFSN.6.3.RoleService
CategoryCustom
EnabledTrue
Event_ID14547
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
DFS-N:重复的 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.DuplicateLinksAlertRule" Enabled="true" Target="Microsoft.Windows.FileServer.DFSN.6.3.RoleService" 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">14547</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>DfsSvc</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertName/>
<AlertDescription/>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.FileServer.DFSN.6.3.DuplicateLinksAlertRule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
<SuppressionValue>$Data/Channel$</SuppressionValue>
<SuppressionValue>$Data/PublisherName$</SuppressionValue>
<SuppressionValue>$Data/EventDescription$</SuppressionValue>
<SuppressionValue>$Data/Params/Param[1]$</SuppressionValue>
<SuppressionValue>$Data/Params/Param[2]$</SuppressionValue>
<SuppressionValue>$Data/Params/Param[3]$</SuppressionValue>
<SuppressionValue>$Data/Params/Param[4]$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>