The System Center Operations Manager Support Team Blog

This is the OpsMgr 2007 blog for the Microsoft support team. If you were looking for the SCOM 2007 or MOM 2005 blog then you are in the right place.

OpsMgr 2007: Programmatically creating a list of groups

OpsMgr 2007: Programmatically creating a list of groups

  • Comments 3
  • Likes

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 http://blogs.technet.com/brianwren/archive/2008/11/18/programmatically-creating-groups.aspx

Enjoy!

J.C. Hornbeck | Manageability Knowledge Engineer

Comments
  • Just an FYI that I posted about an article on programmatically creating a list of groups over on our

  •   Just in case you missed it, Brian Wren recently posted a cool example on how to programmatically

  • Just in case you missed it, Brian Wren recently posted a cool example on how to programmatically create

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment