Active Directory Query to list members in specific group

using windows server 2008 command prompt, run it as administrator and type the following command:

ldifde -f groupMembers.txt -r “(&(objectClass=User)(memberOf=CN=myGroup,OU=MyContainer,DC=myOrg,DC=local))” -l “sAMAccountName,givenName,sn”

where “groupMembers.txt” is the text file that is going to be saved under your c:\ drive that contains the group members.

 

 

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>