Discover iSCSI target on Windows Server 2012

Microsoft.Windows.FileServices.Service.iSCSITarget.6.2.Discovery (Discovery)

Discovers an instance of the iSCSI Target class when the the iSCSI Target feature is installed

Knowledge Base article:

Summary

This discovery rule discovers an instance of the iSCSI Target service where it is installed. The rule is targeted to the Windows Server 2012 File Services role and will only run on servers that have the File Services role enabled and discovered. The iSCSI Target is shipped as part of the Windows Server 2012 release.

Element properties:

TargetMicrosoft.Windows.FileServices.6.2.FileServer
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper Default

Source Code:

<Discovery ID="Microsoft.Windows.FileServices.Service.iSCSITarget.6.2.Discovery" Enabled="true" Target="FileServices62!Microsoft.Windows.FileServices.6.2.FileServer" Remotable="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.FileServices.Service.iSCSITarget.6.2"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper">
<NameSpace>\\$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$\ROOT\CIMV2</NameSpace>
<Query>SELECT ID, Name FROM Win32_ServerFeature WHERE ID = '435'</Query>
<Frequency>14400</Frequency>
<ClassId>$MPElement[Name="Microsoft.Windows.FileServices.Service.iSCSITarget.6.2"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name='Microsoft.Windows.FileServices.Service.iSCSITarget.6.2']/IQN$</Name>
<Value>iqn.1991-05.com.microsoft:$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name='System!System.Entity']/DisplayName$</Name>
<Value>$Target/Property[Type='System!System.Entity']/DisplayName$ (iSCSI Target)</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>