Domain controller backup (method for export domain users)

xiaoxiao2021-03-05  28

Domain controller backup (method for export domain users)

Import the organizational unit, group, and user information into the newly installed domain controller using LDIFDE, as follows: 1) Log in as domain administrator, install Support Tools in your new, old domain controller, and please Deleting Trust relationships with other domains 2) On the old domain controller, run the following command to export the following command (please place the current directory: c: //): Export Organization Unit: C: C: // > LDIFDE -F OULIST.LDF -S Server1 -D DC = Testad1, DC = COM -P subtree -r "(ObjectClass = OrganizationalUnit)" -l "DN, Managedby, Countrycode, C, Description, L, ObjectClass, OU, Postalcode, Name, ST, STRREET, CO "export group: c: //> ldifde -f grouplist.ldf -s server1 -d dc = testAd1, DC = com -p subtree -r" (ObjectClass = group) -l "DN, MEMBER, INFO, DESCRIPTION, MAIL, GROUPTYPE, INSTANCEPE, ObjectClass, Name, Samaccountname" export users: c: //> ldifde -f userlist.ldf -s server1 -d dc = testad1, dc = com -p subtree -r "(objectclass = user)" -l "dn, manager, streetaddress, company, countryCode, c, department, displayName, mail, givvenName, homeDirectory, homeDrive, instanceType, l, msNPAllowDialin, objectClass, physicalDeliveryOfficeName, postalCode, profilePath, Name, SamaccountName, ST, SN, TELEPHONENUMBER, CO, TITLE, UserAccountControl, UserPrincipalName "3) The set of Oulist.ldf grouplist.ldf userlist.ldf under the C: // Copy to another C: 4) Use Notepad to open the above three files, use the domain domain character string to replace the domain name string in the file. If the domain name of the new domain is TestAd2.com, you should replace TestAD1, save exit 5) Open the command. Row mode, set the current directory to: c: //, run the following command to import object: Import Organization Unit: C: //> LDIFDE -I -F OULIST.LDF -K Import User: C: //> LDIFDE - I -F UserList.ldf -k import group: c: //> ldifde -i -f grouplist.ldf -k6) After the user is imported, based on security, the password is empty, and it has been disabled, set to "next login You must change your password, you need to manually open the imported account. Note: Before doing any operation, back up the system and user data!

转载请注明原文地址:https://www.9cbs.com/read-33514.html

New Post(0)