SharePoint Farm Discovery

Microsoft.SharePoint.2019.SPFarm.Discovery (Discovery)

This discovers SharePoint farms and servers information.

Knowledge Base article:

Summary

This Discovery Rule discovers SharePoint farms and servers information. The discovered objects from this script also includes configuration database and unidentified machines.

Please refer to the MP Guide for more information.

Element properties:

TargetMicrosoft.SharePoint.2019.MOSSInstallation
EnabledTrue
Frequency28800
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
MOSS.2019.DiscoveryDataSource DataSource Microsoft.SharePoint.2019.SPFarm.DiscoveryProvider Default

Source Code:

<Discovery ID="Microsoft.SharePoint.2019.SPFarm.Discovery" Target="Microsoft.SharePoint.2019.MOSSInstallation" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.SharePoint.2019.SPFarm">
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPFarm" PropertyID="FarmID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPFarm" PropertyID="FarmName"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SharePoint.2019.Unidentified.SPMachine">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SharePoint.2019.SPConfiguration">
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPConfiguration" PropertyID="Server"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPConfiguration" PropertyID="Database"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPDatabase" PropertyID="FarmID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPDatabase" PropertyID="FarmName"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPDatabase" PropertyID="DatabaseID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPDatabase" PropertyID="ConnectionString"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPDatabase" PropertyID="LegacyConnectionString"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SharePoint.2019.SPServerGroup">
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPServerGroup" PropertyID="FarmID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPServerGroup" PropertyID="FarmName"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SharePoint.2019.SPServer">
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPServer" PropertyID="ComputerID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPServer" PropertyID="FarmID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPServer" PropertyID="FarmName"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPServer" PropertyID="SPRole"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SharePoint.2019.SPServiceGroup">
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPServiceGroup" PropertyID="FarmID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPServiceGroup" PropertyID="FarmName"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SharePoint.2019.SPWebApplicationGroup">
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPWebApplicationGroup" PropertyID="FarmID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPWebApplicationGroup" PropertyID="FarmName"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.SharePoint.2019.SPSharedServiceGroup">
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPSharedServiceGroup" PropertyID="FarmID"/>
<Property TypeID="MOSS!Microsoft.SharePoint.Library.SPSharedServiceGroup" PropertyID="FarmName"/>
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.Unidentified.Contains.SPMachine"/>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.SPFarm.Contains.SPConfiguration"/>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.SPFarm.Contains.SPServerGroup"/>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.SPFarm.Contains.SPServiceGroup"/>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.SPFarm.Contains.SPWebApplicationGroup"/>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.SPFarm.Contains.SPHARuleGroup"/>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.SPFarm.Contains.SPSharedServiceGroup"/>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.SPHARuleGroup.Contains.SPHARuleSubGroup"/>
<DiscoveryRelationship TypeID="MOSS!Microsoft.SharePoint.Library.SPServerGroup.Contains.SPServer"/>
</DiscoveryTypes>
<DataSource ID="MOSS.2019.DiscoveryDataSource" TypeID="Microsoft.SharePoint.2019.SPFarm.DiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<IntervalSeconds>28800</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
<DebugTrace>false</DebugTrace>
</DataSource>
</Discovery>