First published on MSDN on Jan 17, 2009
I've recently given a couple of examples of how to create groups that will dynamically include the health service watcher object and also how to create groups based on my sample custom MP that will populate based on AD security group membership. Both of these examples required editing the XML directly to insert the proper group membership expression. Brian Wren writes an excellent blog post about how to create groups programmatically. You sill need the correct expression to build out group membership but it may be a bit nicer for some than having to sift through the raw management pack XML.
http://blogs.technet.com/brianwren/archive/2008/11/18/programmatically-creating-groups.aspx
Updated Apr 07, 2020
Version 3.0StevenRachui
Microsoft
Joined October 22, 2018
Core Infrastructure and Security Blog
Follow this blog board to get notified when there's new activity