Is there a way to return the members of a group using Powershell?
This question came up in the forums a few weeks ago. For how to create an OpsMgr 2007 group in Powershell, see
Question - How to create a group using powershell
?And these as well
http://www.systemcentercentral.com/BlogDetails/tabid/143/IndexID/14790/Default.aspx
http://marcusoh.blogspot.com/2010/01/listing-group-membership-of-computer-in_06.html
All of these have exaxmples for how to create OpsMgr groups in code or script, so should help.
He needs to get the members of a group, not creating a group ;)
Here you go, had that question a few weeks ago as well: www.systemcentercentral.com/Forums/tabid/60/categoryid/5/indexid/57501/Default.aspx