Reputation: 6371
How can I build a dynamic distribution list that includes all members with exchange mailboxes of a particular domain, oh say, with addresses @roadkillcafe.com
?
We have several domains in our setup, many of them have aliases (proxies) with the @roadkillcafe.com
domain name, but their primary addresses (UPN) are different. We also have exchange accounts whose UPN are of that same domain.
I need a mailing list that can send to all addresses with that domain name either as UPN or as proxy. How can I get this?
I know to use the command new-dynamicdistributiongroup
and set-dynamicdistributiongroup
in powershell.
Upvotes: 0
Views: 3084
Reputation: 10044
You could use the New-DynamicDistributionGroup
cmdlet. Here's the TechNet article and the TechNet article on what's filterable. Luckily alias
and userprincipalname
are filterable with wildcards.
New-DynamicDistributionGroup -Name "ExampleDDG" -RecipientFilter {
(Alias -like '*@roadkillcafe') -or
(userprincipalname -like '*@roadkillcafe')
}
Upvotes: 1