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
 
Back
Top