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


J.C. Hornbeck | Manageability Knowledge Engineer

Comments (4)

  1. Anonymous says:

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

  2. Anonymous says:

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

  3. Anonymous says:

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

  4. show box says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    Latest version of Showbox App download for all android smart phones and tablets.
    http://movieboxappdownloads.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    Showbox for PC articles:
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings.
    http://www.showboxforipad.org/showbox-apk/ Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android. The above
    all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.
    Movie Box, an esteemed movies application in which you can find stacks of programs and films. The guide is given here to download Movie Box app to Android and to Apple iOS 9.0.2, iOS 8.4/8.3 and also for the lower versions without Jailbreak.
    Please do login to Showbox application with the help of Ymail. You can login in Ymail from here –
    Sign Up & Do registration for latest movies on Showbox application