export the list of mailboxes that a EX2010 Dynamic Distro will use when a Custom Recipient Filter is applied, then pipe it into a CSV file

Experts,

I have found simple PS scripts that will work but only with an std OU filter, not using a Custom Recipient Filter on the Distro.

Thanks,

Russ
Russ WrightsonIT Admin Asked:
Who is Participating?
 
Adam BrownConnect With a Mentor Sr Solutions ArchitectCommented:
https://technet.microsoft.com/en-us/library/bb232019(v=exchg.141).aspx explains how to accomplish this in EMC and in Powershell. It's fairly simple to do, you just need to make use of the -recipientpreviewfilter switch on get-mailbox. They example they give includes OU information, but if your DDG does not limit itself by OU, you can just remove the Organizational unit portion of the command and it will check against the whole domain.
0
 
Russ WrightsonIT Admin Author Commented:
Thamks Adam, your link was helpful. We also did find a PS script that someone had created that would produce the CSV for us as well.
0
 
Adam BrownSr Solutions ArchitectCommented:
for the future, though, you can usually build up a CSV by piping output from any cmdlet to the export-csv cmdlet like this:

$MarketingGroup = Get-DynamicDistributionGroup "Marketing Group"
Get-Recipient -RecipientPreviewFilter $MarketingGroup.RecipientFilter | export-csv <filename>

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.