MECM Client on Client Machines Discovery

MECM.ClientOS.Client.Discovery (Discovery)

This discovery discovers ConfigMgr clients.

Element properties:

TargetMicrosoft.Windows.Client.OperatingSystem
EnabledFalse
Frequency86400
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.ClientOS.Client.Discovery" Enabled="false" Target="Windows!Microsoft.Windows.Client.OperatingSystem" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="MECM.Client">
<Property TypeID="MECM.Client" PropertyID="Version"/>
<Property TypeID="MECM.Client" PropertyID="SiteCode"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>Version</AttributeName>
<Path>SOFTWARE\Microsoft\SMS\Mobile Client\SmsClientVersion</Path>
<PathType>1</PathType>
<!-- 0=RegKey 1=RegValue -->
<AttributeType>1</AttributeType>
<!-- 0=CheckIfExists (Boolean) 1=treat data as (String) 2=treat data as (Integer) -->
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>SiteCode</AttributeName>
<Path>SOFTWARE\Microsoft\SMS\Mobile Client\AssignedSiteCode</Path>
<PathType>1</PathType>
<!-- 0=RegKey 1=RegValue -->
<AttributeType>1</AttributeType>
<!-- 0=CheckIfExists (Boolean) 1=treat data as (String) 2=treat data as (Integer) -->
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>86400</Frequency>
<ClassId>$MPElement[Name="MECM.Client"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<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="MECM.Client"]/Version$</Name>
<Value>$Data/Values/Version$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="MECM.Client"]/SiteCode$</Name>
<Value>$Data/Values/SiteCode$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Values/Version</XPathQuery>
</ValueExpression>
<Operator>MatchesWildcard</Operator>
<Pattern>5.*</Pattern>
</RegExExpression>
</Expression>
</DataSource>
</Discovery>