You could use adfind from
www.joeware.net. It is a great free tool. The
command below will output the users to the file employees.csv with the
samaccountname, e-mail address and Display name. Fields output are defined
by the script writer.
adfind -f "(&(objectclass=user)(objectcategory=person))" -b
"ou=employees,ou=users,dc=mydomain,dc=com" -csv -nodn samaccountname mail
displayName > c:\employees.csv
--
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT
http://www.pbbergs.com
Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.