Discover Services for Network File System role on a Windows Server 2016 and 1709+ File Server
Microsoft.Windows.FileServices.Service.NFS.10.0.Discovery (Discovery)
Discovers an instance of the Services for Network File System when the the role service is installed. This discovery will only run on servers that have already been discovered as a Windows Server 2016 and 1709+ File Server
Knowledge Base article: Element properties: Object Discovery Details: Member Modules:
Source Code: <Discovery ID="Microsoft.Windows.FileServices.Service.NFS.10.0.Discovery" Enabled="true" Target="FileServices63!Microsoft.Windows.FileServices.10.0.FileServer" Remotable="true">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.FileServices.Service.NFS.10.0">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="FileServices!Microsoft.Windows.FileServer.Contains.Service"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.WmiProviderWithClassAndRelationshipSnapshotDataMapper">
<NameSpace>\\$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$\ROOT\CIMV2</NameSpace>
<Query>SELECT ID, Name FROM Win32_ServerFeature WHERE ID = '431'</Query>
<Frequency>14400</Frequency>
<ClassId>$MPElement[Name="Microsoft.Windows.FileServices.Service.NFS.10.0"]$</ClassId>
<ClassInstanceSettings>
<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='System!System.Entity']/DisplayName$</Name>
<Value>$Target/Property[Type='System!System.Entity']/DisplayName$ (NFS)</Value>
</Setting>
</Settings>
</ClassInstanceSettings>
<RelationshipId>$MPElement[Name='FileServices!Microsoft.Windows.FileServer.Contains.Service']$</RelationshipId>
<RelationshipInstanceSettings/>
<SourceTypeId>$MPElement[Name='FileServices63!Microsoft.Windows.FileServices.10.0.FileServer']$</SourceTypeId>
<SourceRoleSettings>
<Settings>
<Setting>
<Name>$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
</Settings>
</SourceRoleSettings>
<TargetTypeId>$MPElement[Name="Microsoft.Windows.FileServices.Service.NFS.10.0"]$</TargetTypeId>
<TargetRoleSettings>
<Settings>
<Setting>
<Name>$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
</Settings>
</TargetRoleSettings>
</DataSource>
</Discovery>