Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
How do I export distribution groups and Mail contact to a csv file in Exchange
I would like a exchange shell script to help me understand which contacts belong to which distribution list.
8/22/2022 - Mon
r -Identity <email@example.com> | Select Identity, PrimarySmtpAddress | Export-CSV C:\DistributionGroup.csv
sorry for my ignorance but what do i ender in the <firstname.lastname@example.org> part of the script as all my contacts have different email domains? Thanks
You could do the following:
Get-DistributionGroup “your_distro_name” | Get-DistributionGroupMembe
r | Select Name,RecipientType | export-csv c:\distro_contacts.csv
This will list the members of your desired distribution list and provide their recipient type. Simply filter out every RecipientType except MailContact.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
Hi I would like all the distribution groups returning.....
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Worked well thanks
to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Plans and Pricing
Certified Expert Program
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent