Exchange 2007 Address List - memberofgroup
I am trying to create an address list from the members of a particular group, and all child objects. But it appears the memberofgroup syntax only returns members of the parent group, and not members of any child groups. Can this be achieved?
Command used:
New-AddressList -Name "Test Address List" -RecipientFilter {(MemberOfGroup -eq "CN=Sales,OU=Distribution,OU=Groups,OU=Sales,DC=domain,DC=com")}
March 31st, 2010 7:00pm
You can script a recursive search for membership. I
believe I've seen examples on the Internet. The last time I did that it
was with VBScript, not PowerShell, but it should certainly be doable. One
thing you have to be careful about is to detect looping. You can see and
appreciate that it's not a simple problem.-- Ed Crowley
MVP"There are seldom good technological solutions to behavioral
problems.".
"Corman420" wrote in message news:49f9cb30-ffa6-4a65-9668-6f7607aedd4b...
I am trying to create an address list from the members of a particular
group, and all child objects. But it appears the memberofgroup syntax only
returns members of the parent group, and not members of any child groups.
Can this be achieved?
Command used:
New-AddressList -Name "Test Address List" -RecipientFilter {(MemberOfGroup
-eq
"CN=Sales,OU=Distribution,OU=Groups,OU=Sales,DC=domain,DC=com")}
Ed Crowley MVP
"There are seldom good technological solutions to behavioral problems."
Free Windows Admin Tool Kit Click here and download it now
April 1st, 2010 2:17am