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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSVDE Script with filters

Status
Not open for further replies.

Bhavin78

IS-IT--Management
Oct 26, 2004
320
I want to re-design my netowrk and I want to export all users to csv file by OU not by domain.
This is what I am using and it exports everyone from domain, I want to filter out by OU. I want to export everything so it will be easy to import them. I also want to do same thing with Group, Help me with good tips.

csvde -f c:\users.csv -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" -l
"cn,DN,objectClass,samAccountName,userPrincipalName,displayName,SN,givenName,initials,title,description,department,mail,telephonenumber,homePhone,mobile,pager,physicalDelivery,OfficeName,userAccountControl,-Memberof"
pause
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top