If you want to manipulate the results, you might want to use csvde.exe. The
syntax are almost the same, except that you can export it to a csv file
which you can then manipulate in Excel.
Both utilities allows you to perform import and export as well. However,
always backup your database and test with a small group of test OU before
performing a mass import.
The command for csvde.exe is as follow:
csvde -f USERS.CSV -d "dc=DOMAIN,dc=COM" -p subtree -r (objectClass=user) -
l "cn,givenName,scriptPath"
Note:
- I wasn't able to specify more than one clause for the filter (-r option).
Don't understand why?
- You might want to start with a small OU to verify that it's what you want.
To do that, replace the -d "dc=domain,dc=com" with -d
"ou=testOU,dc=domain,dc=com".
Refer to the following articles for more information:
http://support.microsoft.com/?id=237677
http://support.microsoft.com/?id=327620