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?
 
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
 
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
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.

All Courses

From novice to tech pro — start learning today.