MECM Site Server Discovery

MECM.SiteServer.Discovery (Discovery)

This discovery discovers the ConfigMgr site server.

Element properties:

TargetMECM.SiteSystem
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

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

Source Code:

<Discovery ID="MECM.SiteServer.Discovery" Enabled="true" Target="MECM.SiteSystem" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="MECM.SiteServer"/>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>SiteId</AttributeName>
<Path>SOFTWARE\Microsoft\SMS\Identification\Site ID</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>ParentSiteCode</AttributeName>
<Path>SOFTWARE\Microsoft\SMS\Identification\Parent Site Code</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>SSInstallPath</AttributeName>
<Path>SOFTWARE\Microsoft\SMS\Operations Management\SMS Server Role\SMS Site Server</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>SiteCode</AttributeName>
<Path>SOFTWARE\Microsoft\SMS\Operations Management\SMS Server Role\SMS Site Server\Site Code</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>Version</AttributeName>
<Path>SOFTWARE\Microsoft\SMS\Operations Management\SMS Server Role\SMS Site Server\Version</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>SiteType</AttributeName>
<Path>SOFTWARE\Microsoft\SMS\Operations Management\SMS Server Role\SMS Site Server\Site Type</Path>
<PathType>1</PathType>
<AttributeType>2</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>14400</Frequency>
<ClassId>$MPElement[Name="MECM.SiteServer"]$</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="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="MECM.Server"]/SiteCode$</Name>
<Value>$Data/Values/SiteCode$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="MECM.SiteServer"]/SiteId$</Name>
<Value>$Data/Values/SiteId$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="MECM.Server"]/Version$</Name>
<Value>$Data/Values/Version$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="MECM.SiteServer"]/SiteType$</Name>
<Value>$Data/Values/SiteType$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="MECM.SiteServer"]/ParentSiteCode$</Name>
<Value>$Data/Values/ParentSiteCode$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/SSInstallPath</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">True</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>