<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx</link><description>I've received several questions over the past few days about how to create and update groups in the SDK. Below is a commented sample of how to do it. What InsertCustomMonitoringObject group does, is create a new singleton class that derives from Microsoft.SystemCenter.InstanceGroup.</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#2988772</link><pubDate>Wed, 30 May 2007 17:08:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2988772</guid><dc:creator>ifletch</dc:creator><description>&lt;p&gt;How do I add sub groups to a group? &amp;nbsp;Is there any documentation on the formula?&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#2992336</link><pubDate>Wed, 30 May 2007 22:14:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2992336</guid><dc:creator>JakubOleksy</dc:creator><description>&lt;p&gt;Take a look at the most recent groups post for more examples of formulas:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/jakuboleksy/archive/2007/05/22/more-on-group-membership-and-calculations.aspx"&gt;http://blogs.msdn.com/jakuboleksy/archive/2007/05/22/more-on-group-membership-and-calculations.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In order to create a sub-group, you need to add your group as a member of the group you want it to be a sub-group of.&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#3072068</link><pubDate>Mon, 04 Jun 2007 06:42:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3072068</guid><dc:creator>jack401</dc:creator><description>&lt;p&gt;I have create a group, and how to find it from all groups , if finded ,how to insert a computer to it?&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#3076165</link><pubDate>Mon, 04 Jun 2007 11:28:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3076165</guid><dc:creator>jack401</dc:creator><description>&lt;p&gt;oh, another question , I add the &lt;/p&gt;
&lt;p&gt;&amp;lt;IncludeList&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;MonitoringObjectId&amp;gt;******&amp;lt;/MonitoringObjectId&amp;gt;&amp;lt;/IncludeList&amp;gt; into the managementpack, then I insert a computer to the group, but I can see the computer only in the group properity[explicit members], &amp;nbsp;then right-click the group , view group members... , see no computers, and view group state..., also cannot find the computer, and On The Monitoring , its all the same . &lt;/p&gt;
&lt;p&gt;Is this normal ? when I insert a computer to a group , I can only see it on the explicit members of the group properity?&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#3083537</link><pubDate>Mon, 04 Jun 2007 19:54:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3083537</guid><dc:creator>JakubOleksy</dc:creator><description>&lt;p&gt;Depending on how you inserted the computer explicitly, it will take some time for group calculation to rerun again, but your computer should show up as a member of the group when it is in the explicit list. &lt;/p&gt;
&lt;p&gt;I don't understand your first question about inserting computers into the group. That is what this post and the other referenced post are all about. Can you be more specific as to what problem you are having?&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#3089105</link><pubDate>Tue, 05 Jun 2007 04:46:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3089105</guid><dc:creator>jack401</dc:creator><description>&lt;p&gt;Thanks Jakub, sorry for my pool English, I used the &amp;lt;includelist&amp;gt;&amp;lt;monitoringobjectid&amp;gt;******&amp;lt;/monitoringobjectid&amp;gt;&amp;lt;/includelist&amp;gt; &amp;nbsp;to insert a computer into the group, this is one method to insert computer into group , but is this the only method?How about other methods?&lt;/p&gt;
&lt;p&gt;And when I insert successful, I can see the computer only in explicit list , it didnt show as a member of the group from now on ( about 24 hours ) , what's wrong?&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#3089256</link><pubDate>Tue, 05 Jun 2007 05:03:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3089256</guid><dc:creator>JakubOleksy</dc:creator><description>&lt;p&gt;The post I referenced in my comment earlier has all the various ways to add group members, including computers and goes into great detail about how group calculation works. Please read through it as it should answer all your questions. If your computer is not showing up, either it does not match the relationship type supported by the group calculation formula or is an invalid id, I can't think of another reason it wouldn't work.&lt;/p&gt;
&lt;p&gt;Did you check the event log on the RMS to see if there are any errors related to this rule?&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#3092902</link><pubDate>Tue, 05 Jun 2007 10:00:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3092902</guid><dc:creator>jack401</dc:creator><description>&lt;p&gt;But if it is an invalid id , it shouldn't show up in the explicit list also &lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#3093975</link><pubDate>Tue, 05 Jun 2007 11:19:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3093975</guid><dc:creator>jack401</dc:creator><description>&lt;p&gt;I check it again, it also match the relationship type , but it still didnt show as the member.&lt;/p&gt;
&lt;p&gt;when I add a computer manually ,then it shows as a member with the computer manually added.&lt;/p&gt;
&lt;p&gt;What's the matter?The SCOM2007 didnt refresh the computer inserted by SDK? &lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#3133757</link><pubDate>Thu, 07 Jun 2007 08:57:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3133757</guid><dc:creator>JakubOleksy</dc:creator><description>&lt;p&gt;Sorry for the delay, I was following up with the appropriate developer for the group calculation feature. He basically said the same thing I said, in that there are two reasons why this might not work. The first is the Id is not right; perhaps the instance is deleted or it is not an instance to begin with. The other reason is the instance is not of a type that matches the relationship type as defined by the rule. &lt;/p&gt;
&lt;p&gt;Would it be possible for you to attach your group calculation rule and results from a query on the TypedManagedEntity table where the BaseManagedEntityId equals the Guid you are adding to your include list?&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#7937249</link><pubDate>Thu, 28 Feb 2008 23:23:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7937249</guid><dc:creator>Michael.feuchtmann</dc:creator><description>&lt;p&gt;Hi Jakub,&lt;/p&gt;
&lt;p&gt;I'm trying to add dynamically some Computers to a group based on a seperated Database. &lt;/p&gt;
&lt;p&gt;Furthermore I would like to add all classes from the entity, based on a Computer FQDN.&lt;/p&gt;
&lt;p&gt;Iv'e tried to use your solution, but if I choose the System.Entity, it shows me just the classes of a computer and not the HealthService, Exchange objects and so on.&lt;/p&gt;
&lt;p&gt;The other question is:&lt;/p&gt;
&lt;p&gt;Make it sense to &amp;nbsp;to set some attributes at the top (System.Entity) to fill the groups dynamically based on such attributes. &lt;/p&gt;
&lt;p&gt;If you could provide me a solution I would really appriciate.&lt;/p&gt;
</description></item><item><title>re: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#7937491</link><pubDate>Fri, 29 Feb 2008 00:27:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7937491</guid><dc:creator>JakubOleksy</dc:creator><description>&lt;p&gt;&amp;quot;Furthermore I would like to add all classes from the entity, based on a Computer FQDN.&amp;quot;&lt;/p&gt;
&lt;p&gt;What does that mean, can you elaborate? Also, the public newsgroups would be a better place to ask this specific question; I am not an expert on group calculation configuration.&lt;/p&gt;
</description></item><item><title>FW: Advanced example using PowerShell and the OpsMgr SDK: Creating and Updating Groups</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#9171835</link><pubDate>Thu, 04 Dec 2008 00:16:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9171835</guid><dc:creator>Rod Trent at myITforum.com</dc:creator><description>&lt;p&gt;FW: Advanced example using PowerShell and the OpsMgr SDK: Creating and Updating Groups Feed: System Center&lt;/p&gt;
</description></item><item><title>OpsMgr Shell: Advanced example using PowerShell and the SDK</title><link>http://blogs.msdn.com/jakuboleksy/archive/2006/11/15/creating-and-updating-groups.aspx#9181416</link><pubDate>Sat, 06 Dec 2008 22:07:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9181416</guid><dc:creator>get-powershellblog </dc:creator><description>&lt;p&gt;I&amp;amp;#39;ve got a new post up HERE on the System Center Forum site. The title is &amp;amp;quot;Advanced example&lt;/p&gt;
</description></item></channel></rss>