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