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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
JamesDSConnect With a Mentor Commented:
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
 
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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
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
 
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
All Courses

From novice to tech pro — start learning today.