Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what is the sytax to export users info from one of the OU in AD

Status
Not open for further replies.

fatchai

Technical User
Nov 4, 2006
17
HK
hi :

i m trying to learn csvde command and hope can use it to do some batch processing in AD. ... i tried to export a user list from an OU in my AD. The command showed successful but no data was captured into the csv file.
i m not sure whether i specified the correct sytax in the command...the structure of my AD is as follows

na.corp.abcd.net
|_ A_city
|_ A_office
|_ A_devision
|_users


so on my cmd prompt, i specified :

csvde -d "ou=acity, ou=a_office, ou=a_devision, ou=users"
-f xxxxx.csv

No entry found ...
command has completed successfully

then returned to the command prompt.

Anyone can point me to the right direction pls ?

 
ou=acity, ou=a_office, ou=a_devision, ou=users"
is not a valid LDAP path.

Use ADSIEdit to determine the proper LDAP path for your OU.

Personally I would use VBScript instead of CSVDE. It is a lot more flexible and less cryptic.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
You've got it backwards, and I think you have to specify all the way up the tree. Assuming I'm reading correctly that you've got a child domain of a child domain of the root, the correct path would be:
"ou=users, ou=A_devision, ou=A_office, ou=A_City, dc=na, dc=corp, dc=abcd, dc=net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top