Exporting users

  • Thread starter Thread starter Miha
  • Start date Start date
M

Miha

Hi

Does anyone have a script, that will export all usernames and e-mail
addresses from AD?
Thanks
Regards
Miha
 
I don't have a script, but csvde might be what you are looking for.

csvde -f output.csv -r "(&(objectClass=user)(objectCategory=person)) -d
"cn=Users,DC=localdomain,DC=localdomain" -l
"DN,sAMAccountName,displayName,mail"

/neo
 
thanks. I'll give it a try.
neo said:
I don't have a script, but csvde might be what you are looking for.

csvde -f output.csv -r "(&(objectClass=user)(objectCategory=person)) -d
"cn=Users,DC=localdomain,DC=localdomain" -l
"DN,sAMAccountName,displayName,mail"

/neo
 
Hi,

Check if it can also help you:

dsquery * domainroot -filter
"(&(objectCategory=User)(sAMAccountName=*))" -attr sAMAccountName
proxyaddresses -limit 200000

Qualquer sugestão deve ser testada antes de aplicada - www.gupade.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top