Blog Post

Core Infrastructure and Security Blog
1 MIN READ

Creating OpsMgr 2007 Groups Programmatically

StevenRachui's avatar
StevenRachui
Icon for Microsoft rankMicrosoft
Jan 21, 2019

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.0
No CommentsBe the first to comment