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
LVL 2
sgriffinAsked:
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.

KaliKoderCommented:
Hello Sgriffin,

LDIFDE might be one way to do it:
http://support.microsoft.com/kb/q237677/

0
KaliKoderCommented:
An example could be:
Ldifde.exe -f membership.txt -s DCServerName -r "(objectclass=group)" -l
"member"
where member is the name of the group
0
KaliKoderCommented:
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
0
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

thanks!

0
JamesDSCommented:
sgriffin
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.

Cheers

JamesDS
0

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
KaliKoderCommented:
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:

http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/activedirectory/howto/bulkstep.mspx
http://www.computerperformance.co.uk/Logon/CSVDE_LDIFDE.htm
0
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.