Home
%3CLINGO-SUB%20id%3D%22lingo-sub-321954%22%20slang%3D%22en-US%22%3EGrouping%20Windows%20Computer%20Objects%20and%20Associated%20Health%20Service%20Watcher%20Object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-321954%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20Oct%2017%2C%202008%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3EThe%20question%20has%20come%20up%20several%20times%20-%20how%20do%20you%20create%20a%20group%20that%20contains%20windows%20computer%20objects%20and%20their%20associated%20health%20service%20watcher%20object%3F%26nbsp%3B%20First%2C%20why%20would%20you%20even%20want%20to%3F%26nbsp%3B%20A%20key%20reason%20is%20because%20of%20the%20way%20OpsMgr%20admins%20commonly%20build%20out%20their%20notifications%20structure.%26nbsp%3B%20Different%20groups%20of%20windows%20servers%20are%20placed%20into%20opsmgr%20groups%20and%20the%20groups%20are%20associated%20with%20the%20servers%20administrators%20who%20should%20receive%20notifications%20when%20there%20is%20a%20problem.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20goal%20here%20would%20be%20to%20ensure%20administrators%20are%20notified%20when%20any%20alert%20is%20raised%20related%20to%20the%20servers%20they%20manage.%26nbsp%3B%20Mostly%2C%20this%20is%20straight%20forward%20and%20works%20fine%20as%20long%20as%20all%20objects%20of%20interest%20are%20'windows%20computer'%20objects%20or%20roll%20up%20to%20'windows%20computer%20objects.%26nbsp%3B%20One%20key%20exception%20to%20this%20is%20the%20'health%20service%20watcher'%20object%20-%20which%20is%20responsible%20for%20monitoring%20agent%20heartbeats.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIn%20the%20spirit%20of%20trying%20to%20include%20all%20objects%20that%20might%20generate%20an%20alert%20about%20a%20monitored%20server%20you%20must%20include%20the%20'health%20service%20watcher'%20in%20the%20group%20along%20with%20the%20'windows%20computer'%20object%20or%20you%20will%20miss%20heartbeat%20failure%20alerts.%26nbsp%3B%20The%20problem%20comes%20in%20because%20the%20'health%20service%20watcher'%20object%20is%20not%20related%20to%20the%20'windows%20computer'%20object%20so%20simply%20creating%20a%20group%20of%20'windows%20computer'%20objects%20does%20not%20include%20monitoring%20for%20heartbeat%20failures.%26nbsp%3B%20To%20fix%20this%20we%20need%20to%20add%20the%20'health%20service%20watcher'%20object%20to%20the%20group.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWhen%20you%20try%20to%20do%20this%20you%20quickly%20find%20that%20it's%20not%20as%20straight%20forward%20as%20it%20might%20seem.%26nbsp%3B%20As%20shown%20in%20the%20screenshot%2C%20there%20is%20limited%20formula%20criteria%20in%20common%20that%20would%20allow%20you%20to%20dynamically%20add%20every%20'health%20service%20object'%20watcher%20object%20where%20there%20is%20a%20matching%20'windows%20computer'%20object.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69284iE773A816C8802971%22%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EOne%20option%20would%20be%20to%20use%20wildcards%20and%20match%20on%20computer%20name.%26nbsp%3B%20That%20would%20work%20assuming%20two%20assumptions%20are%20true%20%3CBR%20%2F%3E%20-There%20is%20a%20dependable%20naming%20convention%20in%20place%20which%20will%20allow%20us%20to%20use%20wildcards%20%3CBR%20%2F%3E%20-The%20group%20is%20being%20constructed%20based%20on%20computer%20name%20%3CBR%20%2F%3E%20If%20either%20of%20these%20is%20not%20true%20then%20we%20are%20faced%20with%20manually%20adding%20each%20required%20'health%20service%20watcher'%20object%20to%20the%20group.%26nbsp%3B%20This%20is%20not%20only%20tedious%20but%20a%20manual%20process%20as%20well.%26nbsp%3B%20It%20would%20really%20be%20helpful%20if%20we%20had%20a%20way%20to%20simply%20include%20every%20'health%20service%20watcher'%20object%20in%20a%20group%20dynamically%20based%20on%20whatever%20criteria%20is%20used%20to%20populate%20the%20windows%20computer%20object.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EGood%20news!%26nbsp%3B%20There%20is%20a%20way%20to%20do%20this%20-%20and%20it's%20not%20too%20difficult.%26nbsp%3B%20To%20set%20this%20up%20you%20can%20either%20build%20the%20MP%20completely%20in%20XML%20(first%20example)%20or%20you%20can%20build%20the%20MP%20group%20the%20way%20you%20want%20it%20in%20the%20UI%20and%20add%20the%20relevant%20XML%20sections%20later%20(second%20example).%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3EExample1%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20The%20example%20below%20shows%20the%20entire%20XML%20from%20a%20sample%20management%20pack%20(built%20completely%20in%20XML)%20that%20simply%20defines%20a%20group%20based%20on%20a%20standard%20windows%20computer%20object.%26nbsp%3B%20The%20XML%20section%20that%20populates%20group%20membership%20is%20shown%20in%20%3CSTRONG%3E%20BOLD%20%3C%2FSTRONG%3E%20.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CMANAGEMENTPACK%3E%20%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%3C%2FA%3E%22%20%20xmlns%3Axsd%3D%22%20%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20mce_href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20%3C%2FA%3E%20%26gt%3B%20%3CBR%20%2F%3E%20%3CMANIFEST%3E%20%3CBR%20%2F%3E%20%3CIDENTITY%3E%20%3CBR%20%2F%3E%20%3CID%3ESteveTest.mp%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E1.0.0.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3C%2FIDENTITY%3E%20%3CBR%20%2F%3E%20%3CNAME%3ESteveTest.mp%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CREFERENCES%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BSystem%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3ESystem.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BMom%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.SystemCenter.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BWindows%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.Windows.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCES%3E%20%3CBR%20%2F%3E%20%3C%2FMANIFEST%3E%20%3CBR%20%2F%3E%20%3CTYPEDEFINITIONS%3E%20%3CBR%20%2F%3E%20%3CENTITYTYPES%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPES%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPE%20id%3D%22%26quot%3BSteveTest.GroupA%26quot%3B%22%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20base%3D%22%26quot%3BSystem!System.Group%26quot%3B%22%20abstract%3D%22%26quot%3Bfalse%26quot%3B%22%20singleton%3D%22%26quot%3Btrue%26quot%3B%22%3E%3C%2FCLASSTYPE%3E%20%3CBR%20%2F%3E%20%3C%2FCLASSTYPES%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPTYPES%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPTYPE%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20id%3D%22%26quot%3BSteveTest.GroupContainsEntity%26quot%3B%22%20base%3D%22%26quot%3BSystem!System.Containment%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CSOURCE%3ESystem!System.Group%3C%2FSOURCE%3E%20%3CBR%20%2F%3E%20%3CTARGET%3ESystem!System.Entity%3C%2FTARGET%3E%20%3CBR%20%2F%3E%20%3C%2FRELATIONSHIPTYPE%3E%20%3CBR%20%2F%3E%20%3C%2FRELATIONSHIPTYPES%3E%20%3CBR%20%2F%3E%20%3C%2FENTITYTYPES%3E%20%3CBR%20%2F%3E%20%3C%2FTYPEDEFINITIONS%3E%20%3CBR%20%2F%3E%20%3CMONITORING%3E%20%3CBR%20%2F%3E%20%3CDISCOVERIES%3E%20%3CBR%20%2F%3E%20%3CDISCOVERY%20id%3D%22%26quot%3BSteveTest.Discovery%26quot%3B%22%20target%3D%22%26quot%3BSteveTest.GroupA%26quot%3B%22%20enabled%3D%22%26quot%3Btrue%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CCATEGORY%3EDiscovery%3C%2FCATEGORY%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYTYPES%3E%3C%2FDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDATASOURCE%20id%3D%22%26quot%3BGroupPopulationDataSourceA%26quot%3B%22%20typeid%3D%22%26quot%3BMom!Microsoft.SystemCenter.GroupPopulator%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CRULEID%3E%24MPElement%24%3C%2FRULEID%3E%20%3CBR%20%2F%3E%20%3CGROUPINSTANCEID%3E%24Target%2FId%24%3C%2FGROUPINSTANCEID%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULES%3E%20%3CBR%20%2F%3E%20%3CSTRONG%3E%20%3CMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Windows!Microsoft.Windows.Computer%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPCLASS%3E%24MPElement%5BName%3D%22SteveTest.GroupContainsEntity%22%5D%24%3C%2FRELATIONSHIPCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CSIMPLEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CPROPERTY%3E%24MPElement%5BName%3D%22Windows!Microsoft.Windows.Computer%22%5D%2FNetBiosDomainName%24%3C%2FPROPERTY%3E%20%3CBR%20%2F%3E%20%3C%2FVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3COPERATOR%3EEqual%3C%2FOPERATOR%3E%20%3CBR%20%2F%3E%20%3CVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CVALUE%3EREDMOND%3C%2FVALUE%3E%20%3CBR%20%2F%3E%20%3C%2FVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FSIMPLEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3C%2FSTRONG%3E%20%3C%2FMEMBERSHIPRULES%3E%20%3CBR%20%2F%3E%20%3C%2FDATASOURCE%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERY%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERIES%3E%20%3CBR%20%2F%3E%20%3CRULES%3E%20%3CBR%20%2F%3E%20%3C%2FRULES%3E%20%3CBR%20%2F%3E%20%3C%2FMONITORING%3E%20%3CBR%20%2F%3E%20%3C%2FMANAGEMENTPACK%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20above%20works%20great%20EXCEPT%20the%20resulting%20group%20does%20not%20contain%20the%20health%20service%20watcher%20class.%26nbsp%3B%20To%20adjust%20this%20all%20you%20need%20to%20do%20is%20add%20in%20a%20second%20membership%20criteria%20section%20to%20the%20rules%20of%20the%20group%20as%20shown%20below.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Mom!Microsoft.SystemCenter.HealthServiceWatcher%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPCLASS%3E%24MPElement%5BName%3D%22SteveTest.GroupContainsEntity%22%5D%24%3C%2FRELATIONSHIPCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINS%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Mom!Microsoft.SystemCenter.HealthService%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINED%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Windows!Microsoft.Windows.Computer%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINED%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24Target%2FId%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINED%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINED%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINS%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULE%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ESo%2C%20when%20both%20are%20put%20together%20the%20resulting%20MP%20XML%20will%20appears%20as%20follows%20-%20note%20the%20comments%20added%20in%20to%20help%20explain%20what%20is%20being%20done.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CMANAGEMENTPACK%3E%20%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%3C%2FA%3E%22%20%20xmlns%3Axsd%3D%22%20%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20mce_href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20%3C%2FA%3E%20%26gt%3B%20%3CBR%20%2F%3E%20%3CMANIFEST%3E%20%3CBR%20%2F%3E%20%3CIDENTITY%3E%20%3CBR%20%2F%3E%20%3CID%3ESteveTest.mp%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E1.0.0.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3C%2FIDENTITY%3E%20%3CBR%20%2F%3E%20%3CNAME%3ESteveTest.mp%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CREFERENCES%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BSystem%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3ESystem.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BMom%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.SystemCenter.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BWindows%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.Windows.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCES%3E%20%3CBR%20%2F%3E%20%3C%2FMANIFEST%3E%20%3CBR%20%2F%3E%20%3CTYPEDEFINITIONS%3E%20%3CBR%20%2F%3E%20%3CENTITYTYPES%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPES%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPE%20id%3D%22%26quot%3BSteveTest.GroupA%26quot%3B%22%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20base%3D%22%26quot%3BSystem!System.Group%26quot%3B%22%20abstract%3D%22%26quot%3Bfalse%26quot%3B%22%20singleton%3D%22%26quot%3Btrue%26quot%3B%22%3E%3C%2FCLASSTYPE%3E%20%3CBR%20%2F%3E%20%3C%2FCLASSTYPES%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPTYPES%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPTYPE%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20id%3D%22%26quot%3BSteveTest.GroupContainsEntity%26quot%3B%22%20base%3D%22%26quot%3BSystem!System.Containment%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CSOURCE%3ESystem!System.Group%3C%2FSOURCE%3E%20%3CBR%20%2F%3E%20%3CTARGET%3ESystem!System.Entity%3C%2FTARGET%3E%20%3CBR%20%2F%3E%20%3C%2FRELATIONSHIPTYPE%3E%20%3CBR%20%2F%3E%20%3C%2FRELATIONSHIPTYPES%3E%20%3CBR%20%2F%3E%20%3C%2FENTITYTYPES%3E%20%3CBR%20%2F%3E%20%3C%2FTYPEDEFINITIONS%3E%20%3CBR%20%2F%3E%20%3CMONITORING%3E%20%3CBR%20%2F%3E%20%3CDISCOVERIES%3E%20%3CBR%20%2F%3E%20%3CDISCOVERY%20id%3D%22%26quot%3BSteveTest.Discovery%26quot%3B%22%20target%3D%22%26quot%3BSteveTest.GroupA%26quot%3B%22%20enabled%3D%22%26quot%3Btrue%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CCATEGORY%3EDiscovery%3C%2FCATEGORY%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYTYPES%3E%3C%2FDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDATASOURCE%20id%3D%22%26quot%3BGroupPopulationDataSourceA%26quot%3B%22%20typeid%3D%22%26quot%3BMom!Microsoft.SystemCenter.GroupPopulator%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CRULEID%3E%24MPElement%24%3C%2FRULEID%3E%20%3CBR%20%2F%3E%20%3CGROUPINSTANCEID%3E%24Target%2FId%24%3C%2FGROUPINSTANCEID%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULES%3E%3C%2FMEMBERSHIPRULES%3E%3C%2FDATASOURCE%3E%3C%2FDISCOVERY%3E%3C%2FDISCOVERIES%3E%3C%2FMONITORING%3E%3C%2FMANAGEMENTPACK%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3E%20%3C!--%20%3CBR%20%2F%3E%20First%20membership%20rule%20groups%20computers%20of%20interest.%20The%20criteria%20reads%20something%20like%20this%3A%20%3CBR%20%2F%3E%20%26quot%3BGroup%20Windows.Computer%20with%20a%20NetbiosDomainName%20equal%20to%20Redmond.%26quot%3B%C2%A0%20This%20could%20be%20any%20attribute%20of%20the%20windows%20computer%20class%20that%20you%20would%20like%20to%20use%20-%20NetbiosComputerName%2C%20OrganizationalUnit%2C%20etc%20%3CBR%20%2F%3E%20--%3E%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Windows!Microsoft.Windows.Computer%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPCLASS%3E%24MPElement%5BName%3D%22SteveTest.GroupContainsEntity%22%5D%24%3C%2FRELATIONSHIPCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CSIMPLEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CPROPERTY%3E%24MPElement%5BName%3D%22Windows!Microsoft.Windows.Computer%22%5D%2FNetBiosDomainName%24%3C%2FPROPERTY%3E%20%3CBR%20%2F%3E%20%3C%2FVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3COPERATOR%3EEqual%3C%2FOPERATOR%3E%20%3CBR%20%2F%3E%20%3CVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CVALUE%3EREDMOND%3C%2FVALUE%3E%20%3CBR%20%2F%3E%20%3C%2FVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FSIMPLEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULE%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3E%20%3C!--%20%3CBR%20%2F%3E%20Next%20membership%20rule%20groups%20associated%20health%20service%20watchers%20with%20computers%20already%20grouped%20by%20first%20membership%20rule.%20The%20%3CBR%20%2F%3E%20criteria%20reads%20something%20like%20this%3A%20%3CBR%20%2F%3E%20%26quot%3BGroup%20HealthServiceWatcher%20that%20contains%20HealthService%20contained%20by%20a%20computer%20that%20is%20contained%20by%20this%20group.%26quot%3B%20%3CBR%20%2F%3E%20--%3E%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Mom!Microsoft.SystemCenter.HealthServiceWatcher%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPCLASS%3E%24MPElement%5BName%3D%22SteveTest.GroupContainsEntity%22%5D%24%3C%2FRELATIONSHIPCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINS%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Mom!Microsoft.SystemCenter.HealthService%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINED%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Windows!Microsoft.Windows.Computer%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINED%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24Target%2FId%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINED%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINED%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINS%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULE%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%20%3CBR%20%2F%3E%20%20%3CBR%20%2F%3E%20%20%3CBR%20%2F%3E%20%20%3CBR%20%2F%3E%20%3CRULES%3E%20%3CBR%20%2F%3E%20%3C%2FRULES%3E%20%3CBR%20%2F%3E%20%20%3CBR%20%2F%3E%20%3CP%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3EExample%202%20%3CBR%20%2F%3E%20%3C%2FSTRONG%3E%20The%20above%20works%20fine%20but%20is%20an%20example%20of%20building%20an%20MP%20by%20hand.%26nbsp%3B%20It%20would%20be%20helpful%20to%20have%20a%20more%20generic%20example%20that%20works%20in%20every%20situation.%26nbsp%3B%20In%20this%20example%20you%20should%20be%20able%20to%20simply%20copy%20and%20paste%20the%20added%20membership%20rule%20to%20your%20own%20MP%20and%26nbsp%3Bmake%20sure%20all%20references%20are%20correct%26nbsp%3B(if%20building%20the%26nbsp%3Bbase%20group%20through%20the%20opsmgr%20UI%20they%20should%20be).%26nbsp%3B%20References%20that%20go%20together%20are%20color%20coded%20below%20to%20demonstrate%20what%20to%20check.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EFor%20this%20example%2C%20we%20have%20extended%20the%20windows%20computer%20class%20with%20a%20registry%20attribute%20we%20want%20to%20key%20off%20of%20to%20build%20our%20initial%20group%20membership.%26nbsp%3B%20The%20extended%20windows%20computer%20attribute%20along%20with%20the%20initial%20group%20using%20that%20windows%20computer%20attribute%20were%20built%20in%20the%20UI%20and%20saved%20in%20the%20same%20management%20pack.%26nbsp%3B%20That%20base%20MP%20is%20below.%26nbsp%3B%20Note%20that%20this%20MP%20is%20much%20the%20same%20as%20the%20one%20in%20example%201%20except%20that%20we%20now%20have%20a%20section%20defining%20the%20attribute%20and%20many%20of%20the%20names%20are%20in%20a%20different%20format%20because%20the%20MP%20was%20UI%20generated.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CMANAGEMENTPACK%20contentreadable%3D%22%26quot%3Btrue%26quot%3B%22%20xsd%3D%22%26quot%3B%22%3E%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20mce_href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20%3C%2FA%3E%20xmlns%3Axsl%3D%22%20%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2FXSL%2FTransform%22%20mce_href%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2FXSL%2FTransform%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Fwww.w3.org%2F1999%2FXSL%2FTransform%22%20%3C%2FA%3E%20%26gt%3B%20%3CBR%20%2F%3E%20%3CMANIFEST%3E%20%3CBR%20%2F%3E%20%3CIDENTITY%3E%20%3CBR%20%2F%3E%20%3CID%3EWindowsComputerExtendedGroupandAttributeSample%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E1.0.0.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3C%2FIDENTITY%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedGroupandAttributeSample%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CREFERENCES%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BMicrosoftWindowsLibrary6062780%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.Windows.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BMicrosoftSystemCenterInstanceGroupLibrary6062780%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.SystemCenter.InstanceGroup.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BSystemCenter%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.SystemCenter.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCES%3E%20%3CBR%20%2F%3E%20%3C%2FMANIFEST%3E%20%3CBR%20%2F%3E%20%3CTYPEDEFINITIONS%3E%20%3CBR%20%2F%3E%20%3CENTITYTYPES%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPES%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPE%20id%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20abstract%3D%22%26quot%3Bfalse%26quot%3B%22%20base%3D%22%26quot%3BMicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%26quot%3B%22%20hosted%3D%22%26quot%3Bfalse%26quot%3B%22%20singleton%3D%22%26quot%3Bfalse%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CPROPERTY%20id%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%26quot%3B%22%20type%3D%22%26quot%3Bstring%26quot%3B%22%20key%3D%22%26quot%3Bfalse%26quot%3B%22%20casesensitive%3D%22%26quot%3Bfalse%26quot%3B%22%20length%3D%22%26quot%3B256%26quot%3B%22%20minlength%3D%22%26quot%3B0%26quot%3B%22%3E%3C%2FPROPERTY%3E%20%3CBR%20%2F%3E%20%3C%2FCLASSTYPE%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPE%20id%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group%26quot%3B%22%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20abstract%3D%22%26quot%3Bfalse%26quot%3B%22%20base%3D%22%26quot%3BMicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroup%26quot%3B%22%20hosted%3D%22%26quot%3Bfalse%26quot%3B%22%20singleton%3D%22%26quot%3Btrue%26quot%3B%22%3E%3C%2FCLASSTYPE%3E%20%3CBR%20%2F%3E%20%3C%2FCLASSTYPES%3E%20%3CBR%20%2F%3E%20%3C%2FENTITYTYPES%3E%20%3CBR%20%2F%3E%20%3C%2FTYPEDEFINITIONS%3E%20%3CBR%20%2F%3E%20%3CMONITORING%3E%20%3CBR%20%2F%3E%20%3CDISCOVERIES%3E%20%3CBR%20%2F%3E%20%3CDISCOVERY%20id%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIafcf6a834dfd469a96919290733aa8b3%26quot%3B%22%20enabled%3D%22%26quot%3Btrue%26quot%3B%22%20target%3D%22%26quot%3BMicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%26quot%3B%22%20confirmdelivery%3D%22%26quot%3Bfalse%26quot%3B%22%20remotable%3D%22%26quot%3Btrue%26quot%3B%22%20priority%3D%22%26quot%3BNormal%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CCATEGORY%3EPerformanceCollection%3C%2FCATEGORY%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYCLASS%20typeid%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CPROPERTY%20typeid%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%20propertyid%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%26quot%3B%22%3E%3C%2FPROPERTY%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERYCLASS%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDATASOURCE%20id%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIef1ebc256cde41f79424a1d7a6f745b0%26quot%3B%22%20typeid%3D%22%26quot%3BMicrosoftWindowsLibrary6062780!Microsoft.Windows.RegistryDiscoverySingleProvider%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CCOMPUTERNAME%3E%24Target%2FProperty%5BType%3D%22MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%22%5D%2FNetworkName%24%3C%2FCOMPUTERNAME%3E%20%3CBR%20%2F%3E%20%3CATTRIBUTENAME%3EAttributeDiscoveryRulec1dfa684045c4dacb943e411c54fc344%3C%2FATTRIBUTENAME%3E%20%3CBR%20%2F%3E%20%3CPATH%3Esoftware%5Cmicrosoft%5Cmssqlserver%3C%2FPATH%3E%20%3CBR%20%2F%3E%20%3CPATHTYPE%3E0%3C%2FPATHTYPE%3E%20%3CBR%20%2F%3E%20%3CATTRIBUTETYPE%3E0%3C%2FATTRIBUTETYPE%3E%20%3CBR%20%2F%3E%20%3CFREQUENCY%3E60%3C%2FFREQUENCY%3E%20%3CBR%20%2F%3E%20%3CCLASSID%3E%24MPElement%5BName%3D%22Type1a02432a999f4a97bb6ceab38dc5da75%22%5D%24%3C%2FCLASSID%3E%20%3CBR%20%2F%3E%20%3CINSTANCESETTINGS%3E%20%3CBR%20%2F%3E%20%3CSETTINGS%3E%20%3CBR%20%2F%3E%20%3CSETTING%3E%20%3CBR%20%2F%3E%20%3CNAME%3E%24MPElement%5BName%3D%22Type1a02432a999f4a97bb6ceab38dc5da75%22%5D%2FAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%24%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CVALUE%3E%24Data%2FValues%2FAttributeDiscoveryRulec1dfa684045c4dacb943e411c54fc344%24%3C%2FVALUE%3E%20%3CBR%20%2F%3E%20%3C%2FSETTING%3E%20%3CBR%20%2F%3E%20%3CSETTING%3E%20%3CBR%20%2F%3E%20%3CNAME%3E%24MPElement%5BName%3D%22MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%22%5D%2FPrincipalName%24%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CVALUE%3E%24Target%2FProperty%5BType%3D%22MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%22%5D%2FPrincipalName%24%3C%2FVALUE%3E%20%3CBR%20%2F%3E%20%3C%2FSETTING%3E%20%3CBR%20%2F%3E%20%3C%2FSETTINGS%3E%20%3CBR%20%2F%3E%20%3C%2FINSTANCESETTINGS%3E%20%3CBR%20%2F%3E%20%3C%2FDATASOURCE%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERY%3E%20%3CBR%20%2F%3E%20%3CDISCOVERY%20id%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group.DiscoveryRule%26quot%3B%22%20enabled%3D%22%26quot%3Btrue%26quot%3B%22%20target%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group%26quot%3B%22%20confirmdelivery%3D%22%26quot%3Bfalse%26quot%3B%22%20remotable%3D%22%26quot%3Btrue%26quot%3B%22%20priority%3D%22%26quot%3BNormal%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CCATEGORY%3EDiscovery%3C%2FCATEGORY%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYRELATIONSHIP%20typeid%3D%22%26quot%3BMicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities%26quot%3B%22%3E%3C%2FDISCOVERYRELATIONSHIP%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDATASOURCE%20id%3D%22%26quot%3BGroupPopulationDataSource%26quot%3B%22%20typeid%3D%22%26quot%3BSystemCenter!Microsoft.SystemCenter.GroupPopulator%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CRULEID%3E%24MPElement%24%3C%2FRULEID%3E%20%3CBR%20%2F%3E%20%3CGROUPINSTANCEID%3E%24MPElement%5BName%3D%22UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group%22%5D%24%3C%2FGROUPINSTANCEID%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULES%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Type1a02432a999f4a97bb6ceab38dc5da75%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPCLASS%3E%24MPElement%5BName%3D%22MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities%22%5D%24%3C%2FRELATIONSHIPCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CSIMPLEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CPROPERTY%3E%24MPElement%5BName%3D%22Type1a02432a999f4a97bb6ceab38dc5da75%22%5D%2FAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%24%3C%2FPROPERTY%3E%20%3CBR%20%2F%3E%20%3C%2FVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3COPERATOR%3EEqual%3C%2FOPERATOR%3E%20%3CBR%20%2F%3E%20%3CVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CVALUE%3Etrue%3C%2FVALUE%3E%20%3CBR%20%2F%3E%20%3C%2FVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FSIMPLEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULES%3E%20%3CBR%20%2F%3E%20%3C%2FDATASOURCE%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERY%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERIES%3E%20%3CBR%20%2F%3E%20%3C%2FMONITORING%3E%20%3CBR%20%2F%3E%20%3CPRESENTATION%3E%20%3CBR%20%2F%3E%20%3CFOLDERS%3E%20%3CBR%20%2F%3E%20%3CFOLDER%20id%3D%22%26quot%3BFolder_cdf9b9091d7349d18334357446d704f8%26quot%3B%22%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20parentfolder%3D%22%26quot%3BSystemCenter!Microsoft.SystemCenter.Monitoring.ViewFolder.Root%26quot%3B%22%3E%3C%2FFOLDER%3E%20%3CBR%20%2F%3E%20%3C%2FFOLDERS%3E%20%3CBR%20%2F%3E%20%3C%2FPRESENTATION%3E%20%3CBR%20%2F%3E%20%3CLANGUAGEPACKS%3E%20%3CBR%20%2F%3E%20%3CLANGUAGEPACK%20id%3D%22%26quot%3BENU%26quot%3B%22%20isdefault%3D%22%26quot%3Bfalse%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRINGS%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BWindowsComputerExtendedGroupandAttributeSample%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedGroupandAttributeSample%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BFolder_cdf9b9091d7349d18334357446d704f8%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedGroupandAttributeSample%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIafcf6a834dfd469a96919290733aa8b3%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedAttributeSQLServerDiscovery%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindows%20Computer_Extended%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%20subelementid%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedAttributeSQLServer%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CDESCRIPTION%3E%3C%2FDESCRIPTION%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3ETestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group.DiscoveryRule%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EPopulate%20TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CDESCRIPTION%3EThis%20discovery%20rule%20populates%20the%20group%20'TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject'%3C%2FDESCRIPTION%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRINGS%3E%20%3CBR%20%2F%3E%20%3C%2FLANGUAGEPACK%3E%20%3CBR%20%2F%3E%20%3C%2FLANGUAGEPACKS%3E%20%3CBR%20%2F%3E%20%3C%2FMANAGEMENTPACK%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThe%20above%20may%20look%20confusing%20but%20it's%20actually%20very%20easy%20to%20add%20in%20our%20extra%20membership%20rules%20section%20that%20adds%20all%20related%20health%20service%20watcher%20objects.%26nbsp%3B%20The%20MP%20with%20the%20required%20addition%20is%20below%20.%26nbsp%3B%20You%20will%20have%20to%20make%20edits%20when%20adding%20the%20second%20membership%20rule%20section%20to%20make%20all%20of%20the%20relationships%20in%20the%20MP%20work%20out%20correctly.%26nbsp%3B%20In%20the%20snip%20below%20I've%20color%20coded%20the%20entries%20from%20the%20original%20MP%20above%20and%20the%20corresponding%20lines%20in%20the%20added%20MP%20that%20need%20to%20match.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CMANAGEMENTPACK%20contentreadable%3D%22%26quot%3Btrue%26quot%3B%22%20xsd%3D%22%26quot%3B%22%3E%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20mce_href%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%20%3C%2FA%3E%20xmlns%3Axsl%3D%22%20%3CA%20href%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2FXSL%2FTransform%22%20mce_href%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2FXSL%2FTransform%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20http%3A%2F%2Fwww.w3.org%2F1999%2FXSL%2FTransform%22%20%3C%2FA%3E%20%26gt%3B%20%3CBR%20%2F%3E%20%3CMANIFEST%3E%20%3CBR%20%2F%3E%20%3CIDENTITY%3E%20%3CBR%20%2F%3E%20%3CID%3EWindowsComputerExtendedGroupandAttributeSample%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E1.0.0.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3C%2FIDENTITY%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedGroupandAttributeSample%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CREFERENCES%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BMicrosoftWindowsLibrary6062780%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.Windows.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BMicrosoftSystemCenterInstanceGroupLibrary6062780%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.SystemCenter.InstanceGroup.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3CREFERENCE%20alias%3D%22%26quot%3BSystemCenter%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CID%3EMicrosoft.SystemCenter.Library%3C%2FID%3E%20%3CBR%20%2F%3E%20%3CVERSION%3E6.0.6278.0%3C%2FVERSION%3E%20%3CBR%20%2F%3E%20%3CPUBLICKEYTOKEN%3E31bf3856ad364e35%3C%2FPUBLICKEYTOKEN%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCE%3E%20%3CBR%20%2F%3E%20%3C%2FREFERENCES%3E%20%3CBR%20%2F%3E%20%3C%2FMANIFEST%3E%20%3CBR%20%2F%3E%20%3CTYPEDEFINITIONS%3E%20%3CBR%20%2F%3E%20%3CENTITYTYPES%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPES%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPE%20id%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20abstract%3D%22%26quot%3Bfalse%26quot%3B%22%20base%3D%22%26quot%3BMicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%26quot%3B%22%20hosted%3D%22%26quot%3Bfalse%26quot%3B%22%20singleton%3D%22%26quot%3Bfalse%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CPROPERTY%20id%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%26quot%3B%22%20type%3D%22%26quot%3Bstring%26quot%3B%22%20key%3D%22%26quot%3Bfalse%26quot%3B%22%20casesensitive%3D%22%26quot%3Bfalse%26quot%3B%22%20length%3D%22%26quot%3B256%26quot%3B%22%20minlength%3D%22%26quot%3B0%26quot%3B%22%3E%3C%2FPROPERTY%3E%20%3CBR%20%2F%3E%20%3C%2FCLASSTYPE%3E%20%3CBR%20%2F%3E%20%3CCLASSTYPE%20id%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group%26quot%3B%22%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20abstract%3D%22%26quot%3Bfalse%26quot%3B%22%20base%3D%22%26quot%3BMicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroup%26quot%3B%22%20hosted%3D%22%26quot%3Bfalse%26quot%3B%22%20singleton%3D%22%26quot%3Btrue%26quot%3B%22%3E%3C%2FCLASSTYPE%3E%20%3CBR%20%2F%3E%20%3C%2FCLASSTYPES%3E%20%3CBR%20%2F%3E%20%3C%2FENTITYTYPES%3E%20%3CBR%20%2F%3E%20%3C%2FTYPEDEFINITIONS%3E%20%3CBR%20%2F%3E%20%3CMONITORING%3E%20%3CBR%20%2F%3E%20%3CDISCOVERIES%3E%20%3CBR%20%2F%3E%20%3CDISCOVERY%20id%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIafcf6a834dfd469a96919290733aa8b3%26quot%3B%22%20enabled%3D%22%26quot%3Btrue%26quot%3B%22%20target%3D%22%26quot%3BMicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%26quot%3B%22%20confirmdelivery%3D%22%26quot%3Bfalse%26quot%3B%22%20remotable%3D%22%26quot%3Btrue%26quot%3B%22%20priority%3D%22%26quot%3BNormal%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CCATEGORY%3EPerformanceCollection%3C%2FCATEGORY%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYCLASS%20typeid%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CPROPERTY%20typeid%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%20propertyid%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%26quot%3B%22%3E%3C%2FPROPERTY%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERYCLASS%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDATASOURCE%20id%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIef1ebc256cde41f79424a1d7a6f745b0%26quot%3B%22%20typeid%3D%22%26quot%3BMicrosoftWindowsLibrary6062780!Microsoft.Windows.RegistryDiscoverySingleProvider%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CCOMPUTERNAME%3E%24Target%2FProperty%5BType%3D%22MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%22%5D%2FNetworkName%24%3C%2FCOMPUTERNAME%3E%20%3CBR%20%2F%3E%20%3CATTRIBUTENAME%3EAttributeDiscoveryRulec1dfa684045c4dacb943e411c54fc344%3C%2FATTRIBUTENAME%3E%20%3CBR%20%2F%3E%20%3CPATH%3Esoftware%5Cmicrosoft%5Cmssqlserver%3C%2FPATH%3E%20%3CBR%20%2F%3E%20%3CPATHTYPE%3E0%3C%2FPATHTYPE%3E%20%3CBR%20%2F%3E%20%3CATTRIBUTETYPE%3E0%3C%2FATTRIBUTETYPE%3E%20%3CBR%20%2F%3E%20%3CFREQUENCY%3E60%3C%2FFREQUENCY%3E%20%3CBR%20%2F%3E%20%3CCLASSID%3E%24MPElement%5BName%3D%22Type1a02432a999f4a97bb6ceab38dc5da75%22%5D%24%3C%2FCLASSID%3E%20%3CBR%20%2F%3E%20%3CINSTANCESETTINGS%3E%20%3CBR%20%2F%3E%20%3CSETTINGS%3E%20%3CBR%20%2F%3E%20%3CSETTING%3E%20%3CBR%20%2F%3E%20%3CNAME%3E%24MPElement%5BName%3D%22Type1a02432a999f4a97bb6ceab38dc5da75%22%5D%2FAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%24%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CVALUE%3E%24Data%2FValues%2FAttributeDiscoveryRulec1dfa684045c4dacb943e411c54fc344%24%3C%2FVALUE%3E%20%3CBR%20%2F%3E%20%3C%2FSETTING%3E%20%3CBR%20%2F%3E%20%3CSETTING%3E%20%3CBR%20%2F%3E%20%3CNAME%3E%24MPElement%5BName%3D%22MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%22%5D%2FPrincipalName%24%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CVALUE%3E%24Target%2FProperty%5BType%3D%22MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%22%5D%2FPrincipalName%24%3C%2FVALUE%3E%20%3CBR%20%2F%3E%20%3C%2FSETTING%3E%20%3CBR%20%2F%3E%20%3C%2FSETTINGS%3E%20%3CBR%20%2F%3E%20%3C%2FINSTANCESETTINGS%3E%20%3CBR%20%2F%3E%20%3C%2FDATASOURCE%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERY%3E%20%3CBR%20%2F%3E%20%3CDISCOVERY%20id%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group.DiscoveryRule%26quot%3B%22%20enabled%3D%22%26quot%3Btrue%26quot%3B%22%20target%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group%26quot%3B%22%20confirmdelivery%3D%22%26quot%3Bfalse%26quot%3B%22%20remotable%3D%22%26quot%3Btrue%26quot%3B%22%20priority%3D%22%26quot%3BNormal%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CCATEGORY%3EDiscovery%3C%2FCATEGORY%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDISCOVERYRELATIONSHIP%20typeid%3D%22%26quot%3BMicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities%26quot%3B%22%3E%3C%2FDISCOVERYRELATIONSHIP%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERYTYPES%3E%20%3CBR%20%2F%3E%20%3CDATASOURCE%20id%3D%22%26quot%3BGroupPopulationDataSource%26quot%3B%22%20typeid%3D%22%26quot%3BSystemCenter!Microsoft.SystemCenter.GroupPopulator%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CRULEID%3E%24MPElement%24%3C%2FRULEID%3E%20%3CBR%20%2F%3E%20%3CGROUPINSTANCEID%3E%24MPElement%5BName%3D%22UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group%22%5D%24%3C%2FGROUPINSTANCEID%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULES%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22Type1a02432a999f4a97bb6ceab38dc5da75%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPCLASS%3E%24MPElement%5BName%3D%22MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities%22%5D%24%3C%2FRELATIONSHIPCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CSIMPLEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CPROPERTY%3E%24MPElement%5BName%3D%22Type1a02432a999f4a97bb6ceab38dc5da75%22%5D%2FAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%24%3C%2FPROPERTY%3E%20%3CBR%20%2F%3E%20%3C%2FVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3COPERATOR%3EEqual%3C%2FOPERATOR%3E%20%3CBR%20%2F%3E%20%3CVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CVALUE%3Etrue%3C%2FVALUE%3E%20%3CBR%20%2F%3E%20%3C%2FVALUEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FSIMPLEEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3CMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22SystemCenter!Microsoft.SystemCenter.HealthServiceWatcher%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CRELATIONSHIPCLASS%3E%24MPElement%5BName%3D%22MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities%22%5D%24%3C%2FRELATIONSHIPCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINS%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22SystemCenter!Microsoft.SystemCenter.HealthService%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINED%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24MPElement%5BName%3D%22MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer%22%5D%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3CEXPRESSION%3E%20%3CBR%20%2F%3E%20%3CCONTAINED%3E%20%3CBR%20%2F%3E%20%3CMONITORINGCLASS%3E%24Target%2FId%24%3C%2FMONITORINGCLASS%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINED%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINED%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FCONTAINS%3E%20%3CBR%20%2F%3E%20%3C%2FEXPRESSION%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULE%3E%20%3CBR%20%2F%3E%20%3C%2FMEMBERSHIPRULES%3E%20%3CBR%20%2F%3E%20%3C%2FDATASOURCE%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERY%3E%20%3CBR%20%2F%3E%20%3C%2FDISCOVERIES%3E%20%3CBR%20%2F%3E%20%3C%2FMONITORING%3E%20%3CBR%20%2F%3E%20%3CPRESENTATION%3E%20%3CBR%20%2F%3E%20%3CFOLDERS%3E%20%3CBR%20%2F%3E%20%3CFOLDER%20id%3D%22%26quot%3BFolder_cdf9b9091d7349d18334357446d704f8%26quot%3B%22%20accessibility%3D%22%26quot%3BPublic%26quot%3B%22%20parentfolder%3D%22%26quot%3BSystemCenter!Microsoft.SystemCenter.Monitoring.ViewFolder.Root%26quot%3B%22%3E%3C%2FFOLDER%3E%20%3CBR%20%2F%3E%20%3C%2FFOLDERS%3E%20%3CBR%20%2F%3E%20%3C%2FPRESENTATION%3E%20%3CBR%20%2F%3E%20%3CLANGUAGEPACKS%3E%20%3CBR%20%2F%3E%20%3CLANGUAGEPACK%20id%3D%22%26quot%3BENU%26quot%3B%22%20isdefault%3D%22%26quot%3Bfalse%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRINGS%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BWindowsComputerExtendedGroupandAttributeSample%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedGroupandAttributeSample%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BFolder_cdf9b9091d7349d18334357446d704f8%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedGroupandAttributeSample%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIafcf6a834dfd469a96919290733aa8b3%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedAttributeSQLServerDiscovery%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindows%20Computer_Extended%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BType1a02432a999f4a97bb6ceab38dc5da75%26quot%3B%22%20subelementid%3D%22%26quot%3BAttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EWindowsComputerExtendedAttributeSQLServer%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CDESCRIPTION%3E%3C%2FDESCRIPTION%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3ETestGrou%C4%82tojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3CDISPLAYSTRING%20elementid%3D%22%26quot%3BUINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group.DiscoveryRule%26quot%3B%22%3E%20%3CBR%20%2F%3E%20%3CNAME%3EPopulate%20TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject%3C%2FNAME%3E%20%3CBR%20%2F%3E%20%3CDESCRIPTION%3EThis%20discovery%20rule%20populates%20the%20group%20'TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject'%3C%2FDESCRIPTION%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRING%3E%20%3CBR%20%2F%3E%20%3C%2FDISPLAYSTRINGS%3E%20%3CBR%20%2F%3E%20%3C%2FLANGUAGEPACK%3E%20%3CBR%20%2F%3E%20%3C%2FLANGUAGEPACKS%3E%20%3CBR%20%2F%3E%20%3C%2FMANAGEMENTPACK%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EOK%2C%20done%20-%20just%20a%20few%20minor%20adjustments%20and%20the%20group%20is%20returning%20both%20the%20original%20target%20AND%20the%20associated%20health%20service%20watcher%20objects%20as%20shown.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F69286iBE70457F7FBC4DD9%22%20%2F%3E%3C%2FP%3E%0A%20%0A%3CLINGO-TEASER%20id%3D%22lingo-teaser-321954%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Oct%2017%2C%202008%20The%20question%20has%20come%20up%20several%20times%20-%20how%20do%20you%20create%20a%20group%20that%20contains%20windows%20computer%20objects%20and%20their%20associated%20health%20service%20watcher%20object%3F%26nbsp%3B%20First%2C%20why%20would%20you%20even%20want%20to%3F%26nbsp%3B%20A%20key%20reason%20is%20because%20of%20the%20way%20OpsMgr%20admins%20commonly%20build%20out%20their%20notifications%20structure.%3C%2FLINGO-TEASER%3E
Microsoft
First published on MSDN on Oct 17, 2008

The question has come up several times - how do you create a group that contains windows computer objects and their associated health service watcher object?  First, why would you even want to?  A key reason is because of the way OpsMgr admins commonly build out their notifications structure.  Different groups of windows servers are placed into opsmgr groups and the groups are associated with the servers administrators who should receive notifications when there is a problem.


The goal here would be to ensure administrators are notified when any alert is raised related to the servers they manage.  Mostly, this is straight forward and works fine as long as all objects of interest are 'windows computer' objects or roll up to 'windows computer objects.  One key exception to this is the 'health service watcher' object - which is responsible for monitoring agent heartbeats.


In the spirit of trying to include all objects that might generate an alert about a monitored server you must include the 'health service watcher' in the group along with the 'windows computer' object or you will miss heartbeat failure alerts.  The problem comes in because the 'health service watcher' object is not related to the 'windows computer' object so simply creating a group of 'windows computer' objects does not include monitoring for heartbeat failures.  To fix this we need to add the 'health service watcher' object to the group.


When you try to do this you quickly find that it's not as straight forward as it might seem.  As shown in the screenshot, there is limited formula criteria in common that would allow you to dynamically add every 'health service object' watcher object where there is a matching 'windows computer' object.



One option would be to use wildcards and match on computer name.  That would work assuming two assumptions are true
-There is a dependable naming convention in place which will allow us to use wildcards
-The group is being constructed based on computer name
If either of these is not true then we are faced with manually adding each required 'health service watcher' object to the group.  This is not only tedious but a manual process as well.  It would really be helpful if we had a way to simply include every 'health service watcher' object in a group dynamically based on whatever criteria is used to populate the windows computer object.


Good news!  There is a way to do this - and it's not too difficult.  To set this up you can either build the MP completely in XML (first example) or you can build the MP group the way you want it in the UI and add the relevant XML sections later (second example).


Example1
The example below shows the entire XML from a sample management pack (built completely in XML) that simply defines a group based on a standard windows computer object.  The XML section that populates group membership is shown in BOLD .


<ManagementPack  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" >
<Manifest>
<Identity>
<ID>SteveTest.mp</ID>
<Version>1.0.0.0</Version>
</Identity>
<Name>SteveTest.mp</Name>
<References>
<Reference Alias="System">
<ID>System.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="Mom">
<ID>Microsoft.SystemCenter.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="Windows">
<ID>Microsoft.Windows.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
</References>
</Manifest>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="SteveTest.GroupA" Accessibility="Public" Base="System!System.Group" Abstract="false" Singleton="true" />
</ClassTypes>
<RelationshipTypes>
<RelationshipType Accessibility="Public" ID="SteveTest.GroupContainsEntity" Base="System!System.Containment">
<Source>System!System.Group</Source>
<Target>System!System.Entity</Target>
</RelationshipType>
</RelationshipTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="SteveTest.Discovery" Target="SteveTest.GroupA" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes/>
<DataSource ID="GroupPopulationDataSourceA" TypeID="Mom!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$Target/Id$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="SteveTest.GroupContainsEntity"]$</RelationshipClass>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/NetBiosDomainName$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>REDMOND</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</MembershipRule>
</MembershipRules>
</DataSource>
</Discovery>
</Discoveries>
<Rules>
</Rules>
</Monitoring>
</ManagementPack>


The above works great EXCEPT the resulting group does not contain the health service watcher class.  To adjust this all you need to do is add in a second membership criteria section to the rules of the group as shown below.


<MembershipRule>
<MonitoringClass>$MPElement[Name="Mom!Microsoft.SystemCenter.HealthServiceWatcher"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="SteveTest.GroupContainsEntity"]$</RelationshipClass>
<Expression>
<Contains>
<MonitoringClass>$MPElement[Name="Mom!Microsoft.SystemCenter.HealthService"]$</MonitoringClass>
<Expression>
<Contained>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<Expression>
<Contained>
<MonitoringClass>$Target/Id$</MonitoringClass>
</Contained>
</Expression>
</Contained>
</Expression>
</Contains>
</Expression>
</MembershipRule>


So, when both are put together the resulting MP XML will appears as follows - note the comments added in to help explain what is being done.


<ManagementPack  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" >
<Manifest>
<Identity>
<ID>SteveTest.mp</ID>
<Version>1.0.0.0</Version>
</Identity>
<Name>SteveTest.mp</Name>
<References>
<Reference Alias="System">
<ID>System.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="Mom">
<ID>Microsoft.SystemCenter.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="Windows">
<ID>Microsoft.Windows.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
</References>
</Manifest>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="SteveTest.GroupA" Accessibility="Public" Base="System!System.Group" Abstract="false" Singleton="true" />
</ClassTypes>
<RelationshipTypes>
<RelationshipType Accessibility="Public" ID="SteveTest.GroupContainsEntity" Base="System!System.Containment">
<Source>System!System.Group</Source>
<Target>System!System.Entity</Target>
</RelationshipType>
</RelationshipTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="SteveTest.Discovery" Target="SteveTest.GroupA" Enabled="true">
<Category>Discovery</Category>
<DiscoveryTypes/>
<DataSource ID="GroupPopulationDataSourceA" TypeID="Mom!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$Target/Id$</GroupInstanceId>
<MembershipRules>


<!--
First membership rule groups computers of interest. The criteria reads something like this:
"Group Windows.Computer with a NetbiosDomainName equal to Redmond."  This could be any attribute of the windows computer class that you would like to use - NetbiosComputerName, OrganizationalUnit, etc
-->

<MembershipRule>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="SteveTest.GroupContainsEntity"]$</RelationshipClass>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/NetBiosDomainName$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>REDMOND</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</MembershipRule>


<!--
Next membership rule groups associated health service watchers with computers already grouped by first membership rule. The
criteria reads something like this:
"Group HealthServiceWatcher that contains HealthService contained by a computer that is contained by this group."
-->

<MembershipRule>
<MonitoringClass>$MPElement[Name="Mom!Microsoft.SystemCenter.HealthServiceWatcher"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="SteveTest.GroupContainsEntity"]$</RelationshipClass>
<Expression>
<Contains>
<MonitoringClass>$MPElement[Name="Mom!Microsoft.SystemCenter.HealthService"]$</MonitoringClass>
<Expression>
<Contained>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<Expression>
<Contained>
<MonitoringClass>$Target/Id$</MonitoringClass>
</Contained>
</Expression>
</Contained>
</Expression>
</Contains>
</Expression>
</MembershipRule>


</MembershipRules>
</DataSource>
</Discovery>
</Discoveries>
<Rules>
</Rules>
</Monitoring>
</ManagementPack>


Example 2
The above works fine but is an example of building an MP by hand.  It would be helpful to have a more generic example that works in every situation.  In this example you should be able to simply copy and paste the added membership rule to your own MP and make sure all references are correct (if building the base group through the opsmgr UI they should be).  References that go together are color coded below to demonstrate what to check.


For this example, we have extended the windows computer class with a registry attribute we want to key off of to build our initial group membership.  The extended windows computer attribute along with the initial group using that windows computer attribute were built in the UI and saved in the same management pack.  That base MP is below.  Note that this MP is much the same as the one in example 1 except that we now have a section defining the attribute and many of the names are in a different format because the MP was UI generated.


<?xml version="1.0" encoding="utf-8"?><ManagementPack ContentReadable="true" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" >
<Manifest>
<Identity>
<ID>WindowsComputerExtendedGroupandAttributeSample</ID>
<Version>1.0.0.0</Version>
</Identity>
<Name>WindowsComputerExtendedGroupandAttributeSample</Name>
<References>
<Reference Alias="MicrosoftWindowsLibrary6062780">
<ID>Microsoft.Windows.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="MicrosoftSystemCenterInstanceGroupLibrary6062780">
<ID>Microsoft.SystemCenter.InstanceGroup.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="SystemCenter">
<ID>Microsoft.SystemCenter.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
</References>
</Manifest>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Type1a02432a999f4a97bb6ceab38dc5da75" Accessibility="Public" Abstract="false" Base="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer" Hosted="false" Singleton="false">
<Property ID="AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
</ClassType>
<ClassType ID="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group" Accessibility="Public" Abstract="false" Base="MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroup" Hosted="false" Singleton="true" />
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="AttributeDiscoveryGeneratedByUIafcf6a834dfd469a96919290733aa8b3" Enabled="true" Target="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>PerformanceCollection</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Type1a02432a999f4a97bb6ceab38dc5da75">
<Property TypeID="Type1a02432a999f4a97bb6ceab38dc5da75" PropertyID="AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286" />
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="AttributeDiscoveryGeneratedByUIef1ebc256cde41f79424a1d7a6f745b0" TypeID="MicrosoftWindowsLibrary6062780!Microsoft.Windows.RegistryDiscoverySingleProvider">
<ComputerName>$Target/Property[Type="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<AttributeName>AttributeDiscoveryRulec1dfa684045c4dacb943e411c54fc344</AttributeName>
<Path>software\microsoft\mssqlserver</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
<Frequency>60</Frequency>
<ClassId>$MPElement[Name="Type1a02432a999f4a97bb6ceab38dc5da75"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Type1a02432a999f4a97bb6ceab38dc5da75"]/AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286$</Name>
<Value>$Data/Values/AttributeDiscoveryRulec1dfa684045c4dacb943e411c54fc344$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>
<Discovery ID="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group.DiscoveryRule" Enabled="true" Target="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryRelationship TypeID="MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities" />
</DiscoveryTypes>
<DataSource ID="GroupPopulationDataSource" TypeID="SystemCenter!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$MPElement[Name="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group"]$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Type1a02432a999f4a97bb6ceab38dc5da75"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property>$MPElement[Name="Type1a02432a999f4a97bb6ceab38dc5da75"]/AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</MembershipRule>
</MembershipRules>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<Presentation>
<Folders>
<Folder ID="Folder_cdf9b9091d7349d18334357446d704f8" Accessibility="Public" ParentFolder="SystemCenter!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
</Folders>
</Presentation>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="false">
<DisplayStrings>
<DisplayString ElementID="WindowsComputerExtendedGroupandAttributeSample">
<Name>WindowsComputerExtendedGroupandAttributeSample</Name>
</DisplayString>
<DisplayString ElementID="Folder_cdf9b9091d7349d18334357446d704f8">
<Name>WindowsComputerExtendedGroupandAttributeSample</Name>
</DisplayString>
<DisplayString ElementID="AttributeDiscoveryGeneratedByUIafcf6a834dfd469a96919290733aa8b3">
<Name>WindowsComputerExtendedAttributeSQLServerDiscovery</Name>
</DisplayString>
<DisplayString ElementID="Type1a02432a999f4a97bb6ceab38dc5da75">
<Name>Windows Computer_Extended</Name>
</DisplayString>
<DisplayString ElementID="Type1a02432a999f4a97bb6ceab38dc5da75" SubElementID="AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286">
<Name>WindowsComputerExtendedAttributeSQLServer</Name>
<Description />
</DisplayString>
<DisplayString ElementID="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group">
<Name>TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject</Name>
</DisplayString>
<DisplayString ElementID="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group.DiscoveryRule">
<Name>Populate TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject</Name>
<Description>This discovery rule populates the group 'TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject'</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</ManagementPack>


The above may look confusing but it's actually very easy to add in our extra membership rules section that adds all related health service watcher objects.  The MP with the required addition is below .  You will have to make edits when adding the second membership rule section to make all of the relationships in the MP work out correctly.  In the snip below I've color coded the entries from the original MP above and the corresponding lines in the added MP that need to match.


<?xml version="1.0" encoding="utf-8"?><ManagementPack ContentReadable="true" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsl=" http://www.w3.org/1999/XSL/Transform" >
<Manifest>
<Identity>
<ID>WindowsComputerExtendedGroupandAttributeSample</ID>
<Version>1.0.0.0</Version>
</Identity>
<Name>WindowsComputerExtendedGroupandAttributeSample</Name>
<References>
<Reference Alias="MicrosoftWindowsLibrary6062780">
<ID>Microsoft.Windows.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="MicrosoftSystemCenterInstanceGroupLibrary6062780">
<ID>Microsoft.SystemCenter.InstanceGroup.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="SystemCenter">
<ID>Microsoft.SystemCenter.Library</ID>
<Version>6.0.6278.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
</References>
</Manifest>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="Type1a02432a999f4a97bb6ceab38dc5da75" Accessibility="Public" Abstract="false" Base="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer" Hosted="false" Singleton="false">
<Property ID="AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286" Type="string" Key="false" CaseSensitive="false" Length="256" MinLength="0" />
</ClassType>
<ClassType ID="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group" Accessibility="Public" Abstract="false" Base="MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroup" Hosted="false" Singleton="true" />
</ClassTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="AttributeDiscoveryGeneratedByUIafcf6a834dfd469a96919290733aa8b3" Enabled="true" Target="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>PerformanceCollection</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Type1a02432a999f4a97bb6ceab38dc5da75">
<Property TypeID="Type1a02432a999f4a97bb6ceab38dc5da75" PropertyID="AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286" />
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="AttributeDiscoveryGeneratedByUIef1ebc256cde41f79424a1d7a6f745b0" TypeID="MicrosoftWindowsLibrary6062780!Microsoft.Windows.RegistryDiscoverySingleProvider">
<ComputerName>$Target/Property[Type="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<AttributeName>AttributeDiscoveryRulec1dfa684045c4dacb943e411c54fc344</AttributeName>
<Path>software\microsoft\mssqlserver</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
<Frequency>60</Frequency>
<ClassId>$MPElement[Name="Type1a02432a999f4a97bb6ceab38dc5da75"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Type1a02432a999f4a97bb6ceab38dc5da75"]/AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286$</Name>
<Value>$Data/Values/AttributeDiscoveryRulec1dfa684045c4dacb943e411c54fc344$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>
<Discovery ID="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group.DiscoveryRule" Enabled="true" Target="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryRelationship TypeID="MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities" />
</DiscoveryTypes>
<DataSource ID="GroupPopulationDataSource" TypeID="SystemCenter!Microsoft.SystemCenter.GroupPopulator">
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$MPElement[Name="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group"]$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Type1a02432a999f4a97bb6ceab38dc5da75"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property>$MPElement[Name="Type1a02432a999f4a97bb6ceab38dc5da75"]/AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>true</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</MembershipRule>
<MembershipRule>
<MonitoringClass>$MPElement[Name="SystemCenter!Microsoft.SystemCenter.HealthServiceWatcher"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="MicrosoftSystemCenterInstanceGroupLibrary6062780!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
<Expression>
<Contains>
<MonitoringClass>$MPElement[Name="SystemCenter!Microsoft.SystemCenter.HealthService"]$</MonitoringClass>
<Expression>
<Contained>
<MonitoringClass>$MPElement[Name="MicrosoftWindowsLibrary6062780!Microsoft.Windows.Computer"]$</MonitoringClass>
<Expression>
<Contained>
<MonitoringClass>$Target/Id$</MonitoringClass>
</Contained>
</Expression>
</Contained>
</Expression>
</Contains>
</Expression>
</MembershipRule>
</MembershipRules>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<Presentation>
<Folders>
<Folder ID="Folder_cdf9b9091d7349d18334357446d704f8" Accessibility="Public" ParentFolder="SystemCenter!Microsoft.SystemCenter.Monitoring.ViewFolder.Root" />
</Folders>
</Presentation>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="false">
<DisplayStrings>
<DisplayString ElementID="WindowsComputerExtendedGroupandAttributeSample">
<Name>WindowsComputerExtendedGroupandAttributeSample</Name>
</DisplayString>
<DisplayString ElementID="Folder_cdf9b9091d7349d18334357446d704f8">
<Name>WindowsComputerExtendedGroupandAttributeSample</Name>
</DisplayString>
<DisplayString ElementID="AttributeDiscoveryGeneratedByUIafcf6a834dfd469a96919290733aa8b3">
<Name>WindowsComputerExtendedAttributeSQLServerDiscovery</Name>
</DisplayString>
<DisplayString ElementID="Type1a02432a999f4a97bb6ceab38dc5da75">
<Name>Windows Computer_Extended</Name>
</DisplayString>
<DisplayString ElementID="Type1a02432a999f4a97bb6ceab38dc5da75" SubElementID="AttributeDiscoveryGeneratedByUIea6af13d16af48848c01f386bbfae286">
<Name>WindowsComputerExtendedAttributeSQLServer</Name>
<Description />
</DisplayString>
<DisplayString ElementID="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group">
<Name>TestGrouĂtojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject</Name>
</DisplayString>
<DisplayString ElementID="UINameSpaceae66a981ae23413b994dfc3e94e9ca60.Group.DiscoveryRule">
<Name>Populate TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject</Name>
<Description>This discovery rule populates the group 'TestGrouptojoinWindowsComputerExtendedAttributeandHealthServiceWatcherObject'</Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</ManagementPack>


OK, done - just a few minor adjustments and the group is returning both the original target AND the associated health service watcher objects as shown.