Link to home
Start Free TrialLog in
Avatar of richtree
richtree

asked on

How to print out members of distribution list in Exchange 2003?

Environment: Exchange 2003
contact#1: Alex Bucher - ab@a.com
contact#2: Charlie Delta - cd@b.com
distribution list: myGroup - myGroup@myCorp.com
 members: Alex Bucher, Charlie Delta
Goal: print out the name and email address of members of myGroup like this:
 myGroup@myCorp.com // this line can be optional because there is only one entry
 Alex Bucher: ab@a.com
 Charlie Delta: cd@b.com

FYI: This community already has a solution to print out members of an OU. See following link if it helps.
https://www.experts-exchange.com/questions/22966142/How-to-print-out-all-users-with-their-name-and-email-address-in-an-Organization-Unit.html

Q#1 How to print out the name and email address of members of myGroup?

Thanks.
SOLUTION
Avatar of Paka
Paka

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of richtree
richtree

ASKER

It runs but generates nothing. Can you insert some code to 'debug' what goes wrong?
thanks.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Your new code works like charm. It gives me more than I expect.
Thank you so much.