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

AD accounts

Status
Not open for further replies.

jrdebug

IS-IT--Management
Apr 18, 2001
126
PH
how do i copy/replicate user accounts from one domain to another without any physical link in between. i want to recreate exactly the same user accounts with passwords from an existing domain to a newly established domain. Jeffrey Rebong
Computer Engineer/Network Administrator
jrdebug@yahoo.com
 
typr the following conmmand at the command prompt in the server u want to export the user account from :
with server=your server name
dc=yourdomain name

ldifde -f Exportuser.ldf -s server -d "dc=Export,dc=com" -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))" - "cn,givenName,objectclass,samAccountName"

this will create afile called export user.ldf

now copy this file to a floppy and issue this command at the prompt of the server u want to copy the users to:

where server2 is ur server name

ldifde -i -f ExportOU.ldf -s Server2

hope this helps
Kapil
Technical Director
Infovalley Interwebspiders Pvt. Ltd.
Microsoft Certified System Engineer
visit
If u find the information provided here useful to u then let me know by clicking on the link below s-)
 
thanks Kapil! that was great!!! although pls let me add one minor detail you missed. the last switch should have been -l.

Jeffrey Rebong
Computer Engineer/Network Administrator
jrdebug@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top