• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 482
  • Last Modified:

Extracting email addresses from a dynamic distribution group

I need to extract the email addresses for the results of a dynamic distribution group which is filtered.  I've played around with get-dynamicdistributiongroup and get-recipient, but to no avail. This is on Microsoft Exchange 2007, service pack 2.
0
wlcsd-networkmanager
Asked:
wlcsd-networkmanager
1 Solution
 
AkhaterCommented:
try this

$MarketingDepartment = Get-DynamicDistributionGroup -Identity "Marketing Department"
Get-Recipient -RecipientPreviewFilter $MarketingDepartment.RecipientFilter | FT  Name,PrimarySmtpAddress
0
 
wlcsd-networkmanagerAuthor Commented:
Thank you so much, Akhater!  You wouldn't believe how difficult is was to find this solution on the web.
0
 
GSLElectricCommented:
I'm trying to follow the info from above and getting an error when try to run again Exchange Command Shell
The dynamic Distribution list I want is call GSLLVField

$GSLLVField = Get-DynamicDistributionGroup -Identity "GSLLVField"
Get-Recipient -RecipientPreviewFilter $GSLLVField.RecipientFilter | FT  Name,PrimarySmtpAddress

It will display all of the email address for the entire company.
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.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now