Querying AD for Group Members

  • Thread starter news.comcast.giganews.com
  • Start date
N

news.comcast.giganews.com

The quickest way would be to set up a vb script. There are examples of how
to do this on Technet.

Ed
Steve@jhu said:
Hey, does anyone know how to export a list of members of a group? I tried
setting up a query in AD to search for User\Group Membership\Starts
with\name of group. That didn't give any results. Does anyone have any
ideas? Thanks.
 
G

Guest

Hey, does anyone know how to export a list of members of a group? I tried setting up a query in AD to search for User\Group Membership\Starts with\name of group. That didn't give any results. Does anyone have any ideas? Thanks

Stev
 
G

Guest

I was actually able to figure it out after playing with it. I still searched in Users\Group Membership, but I had to select "Is (exactly)", and use the full DN for the group...searching for just the group display name wasn't enough.

Stev

Steve@jhu said:
Hey, does anyone know how to export a list of members of a group? I trie
setting up a query in AD to search for User\Group Membership\Start
with\name of group. That didn't give any results. Does anyone have an
ideas? Thanks
 
T

Terry E Dow

LDIFDE -r objectCategory=group -l member -f group-members.ldf will dump all
groups with all members.
LDIFDE -r "(&(objectCategory=person)(objectClass=user))" -l memberOf -f
user-memberOf.ldf will dump all user's group memberships.
LDIFDE -r name=<samaccountname> -l member,memberOf -f temp.ldf will dump an
object's member/memberOf. The samaccountname is the name of the object,
whether it is a group or a user account.

Steve@jhu said:
I was actually able to figure it out after playing with it. I still
searched in Users\Group Membership, but I had to select "Is (exactly)", and
use the full DN for the group...searching for just the group display name
wasn't enough.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top