Active Directory export to CSV ( by read-only user , dont want to use 3rd party app...)

Hi ,
I have a user that needs to get a txt file of members of a group from Active Directory on a regular basis...

Net group might be an idea , but it doesnt seem to work properly.. ie says it cant find a group ( its in an OU called Groups)

Thanks in advance
Who is Participating?
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.

Hello Sgriffin,

LDIFDE might be one way to do it:

An example could be:
Ldifde.exe -f membership.txt -s DCServerName -r "(objectclass=group)" -l
where member is the name of the group
Another way of doing it, exporting to a csv file, without using a third party utility:

csvde -f c:\output.csv -r (objectclass=group) -l name,member
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

sgriffinAuthor Commented:
where would I find csvde and ldifde? C:\winnt?

Can I find out the members of a group without naming a member? as in:

Ldifde.exe -f membership.txt -s DCServerName -r "(objectclass=group)" -l


Net group command should work fine, so long as the machine is a member of the domain and the user is logged in to the domain.

For instance, the command:
NET GROUP "Domain Admins" /domain

returns all members of the domain admins group. Note the quotes here because the group name has a space in it.



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
Hello again,

Both should be available on any of your DCs and yes you can use the command you had typed above.

Some uselful links are:
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
Windows 2000

From novice to tech pro — start learning today.

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.