Avatar of vitalsign0
vitalsign0
 asked on

Exchange 2007: Export a list of all distribution lists and their members

I would like to export a list of all distribution lists and their members using powershell. What would be the method for doing so?
ExchangeActive Directory

Avatar of undefined
Last Comment
vitalsign0

8/22/2022 - Mon
ITF1

Hi,
please use:
Get-DistributionGroup | Get-DistributionGroupMember | Export-CSV C:\Members.csv
This gives you all information into a .csv.

Regards

ITF1 | Anthony
ASKER CERTIFIED SOLUTION
suriyaehnop

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
vitalsign0

ASKER
This worked. Thank you.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck