Filter Members of specific distribution group

H

Hassan110

How can I export all users (with all of thier AD information) in excel
who belong to specific distribution groups?

I tried to use CSVDE -f c:\onlyusers.csv -r objectCategory=person
 
R

Richard Mueller

How can I export all users (with all of thier AD information) in excel
who belong to specific distribution groups?

I tried to use CSVDE -f c:\onlyusers.csv -r objectCategory=person

try the filter (watch line wrapping):

r
(&(objectCategory=person)(memberOf=cn=Mygroup,ou=Sales,dc=MyDomain,dc=com))

You must specify the Distinguished Name of the distribution group. In fact,
unless you have members of the group that are not users, you can use:

r (memberOf=cn=Mygroup,ou=Sales,dc=MyDomain,dc=com)

If you need to filter on members of several groups, you can Or them with the
| operator.
 
H

Herb Martin

How can I export all users (with all of thier AD information) in excel
who belong to specific distribution groups?

I tried to use CSVDE -f c:\onlyusers.csv -r objectCategory=person

Works fine here. (Using your exact syntax, copied and pasted to
command line).

What errors did you get?

What is the SPECIFIC problem you experienced including any
error messages and numbers.

We presume you are a Domain Admin? Right?
 

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