Tuesday, April 29, 2008

Import/Export Users from AD

The linked website explains in more detail the differences in LDFIDE and CSVDE. Luckily the syntax is mostly the same, you can interchange ldfide and csvde in the example script below.

csvde -f Exportuser.csv -s exdc1 -d "dc=example,dc=local" -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" -l "cn,givenName,objectclass,samAccountName"

No comments: