ADfind to list a specific members of a distribution list

Hi all,   I am trying to get a listing of all members for a specific distribution list using ADFIND.   What would be the syntax for it?

Thanks
LVL 1
annayegAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph DalyCommented:
Using ADfind you would use a command similar to
adfind>adfind -f "(&(objectCategory=group)(cn=groupname))" attr list member

This will return the DN of the users in the group.

And if you wanted you could use DSquery to come up with a little cleaner report you can run

dsquery group -name groupname | dsget group -members | dsget user -display
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
annayegAuthor Commented:
do I run the dsquery in a command line?  Also, my distirbution list name start with a period .test-external.  do I place quatation?
0
Joseph DalyCommented:
To run the dsquery you would need to have the administrative tools (adminpak.msi) installed on the machine your running this on. You could also run the dsquery from a domain controller.

Once you have the adminpak installed all you need to do is open a command prompt and paste in the DSquery command.

Ive never tested with a group that starts with a . it may work without any quotes.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.