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

How to export/import users without connecting two domains

Status
Not open for further replies.

msworld

MIS
Jun 28, 2005
534
US
We have two different domains in two locations. They don't connect to each other. However both sites are for same clients to access using TS. We would like to export all users from the domain A to domain B. I tested it using CSVDE. I changed the dc=domainA to dc=domainA and dc=com to dc=local. but when I try to use CSVDE to import, I receive this error:
Add error on line 2: Invalid Syntax
The server side error is "The parameter is incorrect."

Do you know any easy way to export/import users from one domain to another one?

Bob Lin, MS-MVP, MCSE & CNE
How to Setup Windows, Network, VPN & Remote Access on
 
The users would be easy, but you will NOT be able to do passwords.

As for the error, it sounds like a syntax issue.
 
Thankk you for teh reply. Can you tell what's the problem from the below CSV file? I only changed dc=bob and dc-local (the domain is bob.local).


DN,objectClass,cn,description,distinguishedName,instanceType,whenCreated,whenChanged,uSNCreated,memberOf,uSNChanged,name,objectGUID,userAccountControl,badPwdCount,codePage,countryCode,badPasswordTime,lastLogoff,lastLogon,pwdLastSet,primaryGroupID,objectSid,adminCount,accountExpires,logonCount,sAMAccountName,sAMAccountType,objectCategory,isCriticalSystemObject,displayName,logonHours,userPrincipalName,showInAdvancedViewOnly,servicePrincipalName,givenName,userParameters,comment,lockoutTime,msNPAllowDialin,sn
"CN=AL User 2,DC=bob,DC=local",user,AL User 2,Steve,"CN=AL User 2,DC=bob,DC=local",4,20070125203821.0Z,20070125203900.0Z,234125,"CN=AL Group,DC=bob,DC=local;CN=Remote Desktop Users,CN=Builtin,DC=bob,DC=local",234138,AL User 2,X'cd2e8cce7209cd47a9e383c513c979de',66048,0,0,0,0,0,1.28E+17,1.28E+17,513,X'010500000000000515000000695551740cd21b8caad7910013050000',,9.22E+18,3,al2,805306368,"CN=Person,CN=Schema,CN=Configuration,DC=bob,DC=local",,AL User 2,,al2@bob.com,,,AL User 2,X'20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202050061a080143747843666750726573656e74e394b5e694b1e688b0e381a2180801437478436667466c61677331e380b0e381a6e380b2e380b8120801437478536861646f77e384b0e380b0e380b0e380b02a02014374784d696e456e6372797074696f6e4c6576656ce384b0202001437478576f726b4469726563746f7279e390b4e684b3e68cb5e384b4e68cb4e68cb5e384b6e68cb6e384b6e388b7e690b6e39cb7e3a4b6e694b6e68cb5e380b0223801437478496e697469616c50726f6772616de390b4e684b3e68cb5e384b4e68cb4e68cb5e384b6e68cb6e384b6e388b7e690b6e39cb7e3a4b6e694b6e68cb5e384b6e68cb6e384b6e388b7e690b6e39cb7e3a4b6e694b6e694b2e394b6e3a0b7e394b6e380b0',,,FALSE,
"CN=EE User 1,DC=bob,DC=local",user,EE User 1,Myron Thomas,"CN=EE User 1,DC=bob,DC=local",4,20070205162759.0Z,20070223012017.0Z,235573,"CN=EE Group,DC=bob,DC=local;CN=Remote Desktop Users,CN=Builtin,DC=bob,DC=local",239862,EE User 1,X'30cbdbe666ec2047927e37bbbecc4f6f',66048,0,0,0,1.28E+17,0,1.28E+17,1.28E+17,513,X'010500000000000515000000695551740cd21b8caad7910015050000',,9.22E+18,32,EE1,805306368,"CN=Person,CN=Schema,CN=Configuration,DC=bob,DC=local",,EE User 1,,EE1@bob.com,,,EE User 1,X'20202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202050061a080143747843666750726573656e74e394b5e694b1e688b0e381a2180801437478436667466c61677331e380b0e381a6e380b2e380b8120801437478536861646f77e384b0e380b0e380b0e380b02a02014374784d696e456e6372797074696f6e4c6576656ce384b0202001437478576f726b4469726563746f7279e390b4e684b3e68cb5e394b4e394b4e68cb5e384b6e68cb6e384b6e388b7e690b6e39cb7e3a4b6e694b6e68cb5e380b0223801437478496e697469616c50726f6772616de390b4e684b3e68cb5e394b4e394b4e68cb5e384b6e68cb6e384b6e388b7e690b6e39cb7e3a4b6e694b6e68cb5e384b6e68cb6e384b6e388b7e690b6e39cb7e3a4b6e694b6e694b2e394b6e3a0b7e394b6e380b0',,,FALSE,


Bob Lin, MS-MVP, MCSE & CNE
How to Setup Windows, Network, VPN & Remote Access on
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top