Zjišťování služby role Obory názvů distribuovaného systému souborů (DFSN) (Windows Server 2012 R2)

Microsoft.Windows.FileServer.DFSN.6.3.RoleServiceDiscovery (Discovery)

Toto pravidlo zjišťuje všechny servery se systémem Windows Server 2012 R2, která mají nainstalovanou službu role Obory názvů distribuovaného systému souborů (DFSN).

Knowledge Base article:

Souhrn

Toto pravidlo zjišťuje všechny servery se systémem Windows Server 2012 R2, která mají nainstalovanou službu role Obory názvů distribuovaného systému souborů (DFSN). Při zjišťování serverů tento objekt kontroluje následující umístění v registru: SYSTEM\CurrentControlSet\Services\Dfs\Start

Element properties:

TargetMicrosoft.Windows.Server.Computer
EnabledTrue
Frequency43200
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.FilteredRegistryDiscoveryProvider Microsoft.Windows.FileServer.DFSN.NamespaceDiscoveryAccount

Source Code:

<Discovery ID="Microsoft.Windows.FileServer.DFSN.6.3.RoleServiceDiscovery" Enabled="true" Target="Windows!Microsoft.Windows.Server.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.FileServer.DFSN.6.3.RoleService">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" RunAs="DFSNLib!Microsoft.Windows.FileServer.DFSN.NamespaceDiscoveryAccount" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>DFS</AttributeName>
<Path>SYSTEM\CurrentControlSet\Services\Dfs\Start</Path>
<PathType>1</PathType>
<AttributeType>2</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>WindowsVersion</AttributeName>
<Path>SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>43200</Frequency>
<ClassId>$MPElement[Name="Microsoft.Windows.FileServer.DFSN.6.3.RoleService"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="DFSNLib!Microsoft.Windows.FileServer.DFSN.RoleService"]/IsOnVirtualNode$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Server.Computer"]/IsVirtualNode$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Values/WindowsVersion</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>6.3</Pattern>
</RegExExpression>
</Expression>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/DFS</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="String">0</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/DFS</XPathQuery>
</ValueExpression>
<Operator>LessEqual</Operator>
<ValueExpression>
<Value Type="String">3</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</And>
</Expression>
</DataSource>
</Discovery>