OpsMgr 2007: Programmatically creating a list of groups

Just in case you missed it, Brian Wren recently posted a cool example on how to programmatically create a whole list of groups in Operations Manager 2007.  If this is something you've wanted to do but didn't know how then you'll definitely want to check out post:

========

Well, it looks from my last post that I took about a eight month hiatus from the blog.  Fortunately, I've been doing a bunch of OpsMgr in that time, so I have a bunch of content to get out here.  Just a matter of taking the time to write it up.

The one I'll go with first is programmatically creating groups.  Now creating a single group is pretty easy in the Operations Console, so creating a single one from a command line isn't going to get anyone excited.  What is exciting though is if you have a bunch of groups to create - especially if several of these are subgroups.

I'll leave you to figure out the complexity of providing a list of groups - maybe reading from a text file or something.  That's just straight PowerShell work.  What I will give you though is the code to create a new group.  You should be able to use this base code to do whatever complex and repetitive group creation that you might need.

To continue reading and see Brian's example visit https://blogs.technet.com/brianwren/archive/2008/11/18/programmatically-creating-groups.aspx

Enjoy!

J.C. Hornbeck | Manageability Knowledge Engineer