Populate All Windows Servers Computer Group

Microsoft.Windows.Server.AllServersComputerGroupDiscovery (Discovery)

This discovery puts all Windows Servers into the Windows Servers Computer Group.

Knowledge Base article:

Summary

This Discovery Rule discovers and populates the Windows Server Computer group named “Windows Server Computer Group” with instances of computers that are running any version of a Microsoft Windows Server operating system.

Element properties:

TargetMicrosoft.Windows.Server.ComputerGroup
EnabledTrue
RemotableFalse

Object Discovery Details:

Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource Microsoft.SystemCenter.GroupPopulator Default

Source Code:

<Discovery ID="Microsoft.Windows.Server.AllServersComputerGroupDiscovery" Enabled="true" Target="Microsoft.Windows.Server.ComputerGroup">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryRelationship TypeID="SC!Microsoft.SystemCenter.ComputerGroupContainsComputer"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$Target/Id$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Server.Computer"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="SC!Microsoft.SystemCenter.ComputerGroupContainsComputer"]$</RelationshipClass>
</MembershipRule>
</MembershipRules>
</DataSource>
</Discovery>