Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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

Posted on 2004-10-26
Medium Priority
Last Modified: 2010-04-14
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
Question by:sgriffin
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
LVL 11

Expert Comment

ID: 12408647
Hello Sgriffin,

LDIFDE might be one way to do it:

LVL 11

Expert Comment

ID: 12408655
An example could be:
Ldifde.exe -f membership.txt -s DCServerName -r "(objectclass=group)" -l
where member is the name of the group
LVL 11

Expert Comment

ID: 12408679
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
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.


Author Comment

ID: 12408693
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


LVL 16

Accepted Solution

JamesDS earned 200 total points
ID: 12408838
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.


LVL 11

Expert Comment

ID: 12408926
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:


Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question