Solved

Exchange Powershell Command

Posted on 2011-09-16
2
399 Views
Last Modified: 2012-08-13
I am trying to create an exchange powershell command to create a dynamic exchange group from members of multiple distribution lists.  Example below

New group that im trying to create (Group G) needs to contain members of group A and B which are also members of group C

Anyone have an idea on how to create a dynamic group with this kind of complexity
0
Comment
Question by:marmarmat
2 Comments
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 36554108
this type of dynamic group is not possible

you could create a static group using these parameters and then have a scheduled task that updates the membership
here is the script that you could run to create the initial group membership
Get-DistributionGroupMember groupA | where { foreach($user in Get-DistributionGroupMember groupC) {$g.Name -eq $_.Name }} | ForEach-Object { Add-DistributionGroupMember GroupG -Member $_.Name }

the script to update you would want to clear the membership and readd (easiest) otherwise you would need to detect names to remove and add
0
 
LVL 3

Expert Comment

by:ericwoodford
ID: 37998934
If you just want all members of group A and group B to be in a dynamic DL, populate a custom attribute (1-15) on the groups, then define your Dynamic group using the Exchange console, to include Mail enabled groups that contain that custom attribute value. I just tested this in Exchange 2007 EMC.

If you are looking for only a portion of group A and group B, Endital1097's solution looks good.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This video discusses moving either the default database or any database to a new volume.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question