Hi,
I'm relatively new in PowerShell. My objective is to export users, groups, and groups membership from selected OU(s) in "domainA.com" and import into "domainB.com" using *.csv file.
The requirements of this task as following; 1. Export all user in selected OU(s) with mandatory LDAP attributes and import (mirror) it in domain B; "employeeNumber,givenName,Sn,displayName,Company,Department,departmentNumber, Title,Description ,Division,employeeType,L,Manager,Mobile,otherTelephone,telephoneNumber, facsimileTelephoneNumber,physicalDeliveryOfficeName,postalCode" 2. User's password not required, (optional) auto generate or leave blank in domain B 3. Export all group from selected OU in domain A and import (mirror) it in domain B 4. Export all group membership for all groups and import (mirror) it in domain B Domain B is a test environment and is not connected to production network. Can I use powershell to perform this task for both export and import?
There is probably a sequence to do this during import process. 1. Groups --> users --> group membership
I'm using legacy tool such as csvde, ldifde, etc and it is quite complicated and messy. Any PS Guru can assist me? |