90
Magnamious Systems Pvt. Ltd Active Directory Domain Migration Manual Using Microsoft ADMT 3.0 Magnamious Systems Pvt. Ltd Author- Bhavesh Liya

Active Directory Domain Migration Using ADMT Tool1

Embed Size (px)

Citation preview

Page 1: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Active Directory Domain Migration

Manual Using Microsoft

ADMT 3.0

Magnamious Systems Pvt. Ltd

Author- Bhavesh Liya

Page 2: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Active Directory Domain migration using ADMT Tool Project Summary – To test Windows 2003 Active Directory Domain migration using Microsoft Active Directory Migration Tool in test environment Example Customer : Nitco Tiles Goals :

1. Users, Computers & Groups migration to new domain keeping old SID intact along with new SID(using SID History).This will allow access to old domain resources (Like file server, SQL server Access etc) along with new domain.

2. Migrate users passwords.

3. Automatic migration of users’ domain membership & profile without going to users’

desk. 4. Migrate existing server account membership along with service accounts.

Test LAB configuration – Microsoft Virtual Server environment used for testing. Microsoft Hyper-V used as virtual platform for virtual servers. Microsoft ADMT 3.0 is used for migration. Migration Setup details –

1. Old Windows 2003 Active Directory Domain name – “nitcowrl.com” 2. Microsoft SQL 2005 Server which is member of “nitcowrl.com” domain 3. 5 desktop clients with windows XP SP3 which are members of “nitcowrl.com” Domain 4. New Windows 2003 Active Directory Domain name – “nitco.local” 5. Migration server with ADMT 3.0 installed which is member of “nitco.local” Domain

Page 3: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Aim – Migrate users (with passwords), Computers & Groups from “nitcowrl.com” domain to “nitco.local” Domain. Migrate SQL server service account to “nitco.local” domain. Change member ship of SQL server & XP clients from “nitcowrl.com” domain to “nitco.local” domain Migration Steps – Migration should be done in 2 steps

1. Prepare domains for migration 2. Migrate objects from old domain to new domain

Migration steps in brief –

Preparing domains for migration –

1. Create new Active Directory domain. 2. Install Windows Support Tools on both servers. 3. Add DNS forwarders in both servers for each other. 4. Raise domain functional level to windows 2000 Native mode if not done. 5. Create 2 Way trust between both domains. 6. Create independent migration server for migration (ADMT 3.0). 7. Migration server should be member of new domain. Windows 2003 recommended as

OS for migration server. 8. Install Password Export Server Service on old server. 9. Disable SID filtering on old server. 10. Create one Migration OU on both servers. 11. Create Group policy to disable Windows firewall on old Domain & apply to migration

OU. 12. Create Group Policy to add “Migration Account” (which is on new domain) to clients

“Local Administrators” Group. 13. Move All Clients Computers to "Migration OU”. 14. Add Target Domain Administrator account to source domain “Builtin Administrators”

Group. Migration –

1. Migrate Users & passwords to new domain. 2. Migrate Groups to new domain. 3. Migrate Computers to new domain. 4. Change computers membership to new domain. 5. Run “Security Translation” wizard to migrate users profile. 6. Migrate “Service Account” & servers to new domain. 7. Change servers membership to new domain. 8. Run “Security Translation” wizard to migrate servers profile.

Page 4: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Migration Steps in Details

Preparing for Migration –

Adding DNS forwarders on domain – Logon to Respective DCs and Open DNS Management - This step must be done on both servers.

Page 5: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Go to server’s properties – Click on forwarders – Click on New.

Enter new domain FQDN in “DNS domain” option & click “OK”.

Page 6: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Enter IP Address for new domain & click “Add” – Click “Apply” – “OK”.

New Domain

DNS Server

for new

Domain

Old Domain Controller

Page 7: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Creating 2 way Trust between domains – Logon to any of the Domain – Open “Active Directory Domains and Trusts” in Administrative Tools.

Page 8: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Go to properties of Domain

Page 9: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select Trusts & click on “New Trust”

Page 10: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 11: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Type the name of the domain to be trust

Page 12: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select Two-Way

Page 13: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select “Both this domain and the specified domain”

Page 14: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Enter specified domain Administrator username & password

Page 15: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 16: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 17: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

After successfully creating trust, it will give message that by default SID Filtering is enabled. We have to manually disable SID Filtering after words

Page 18: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Install Password Export Server Service on old server – Creating .pes file for password export server service –

Logon to ADMT Migration server with Administrator Account & create “.pes” file which will be used to create “Password Export Server Service” on old domain controller. Run following command on migration server.

Note – Install ADMT 3.0 prier to run this command

Admt key /opt:create /sd:old /kf:c:\ Old = old domain name

This will create .pes file in c:\ of ADMT server. Copy .pes file to old domain controller

Page 19: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Installing Password Export Server Service on old domain controller –

1. Logon to old domain controller 2. Download and run “pwdmig.msi” file on old server

Page 20: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Click “Browse” & mention “.pes” file path which was copied

Page 21: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 22: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Reboot the server after successful installation.

Page 23: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Work not complete yet. We need to modify following registry entry to “1” after installation. HKEY_LOCALMACHINE\System\CurrentcontrolSet\Control\LSA\AllowPasswordExport

Page 24: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 25: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

By default “Password Export Server Service” set to Manual startup. We need to start the service

Disable SID History –

To allow the users & groups SID to pass back & forth between the domain, we need to disable a security feature called SID filtering on the source domain. From a DC on the old domain, type the following command “Netdom trust old /domain:new /quarantine:No /UserD:Administrator /PasswordD:password”

Old = old domain FQDN New = New domain FQDN Password = Old server Administrator password

Page 26: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

We can verify SID of an object before & after migration using ADSIEDIT tool SID before migration –

Open property of object

Page 27: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

In Attribute Editor, click “Show only attributes that have values

Page 28: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

SID After migration –

Object shows new SID as well as old domain SID (sIDHistory)

SID for New Domain

SID from old domain

Page 29: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Creating OU & Group Policy for migration – Create a new OU for migration on both servers. We created OU named “Migration OU” Move all computers to that OU on source server. We need to disable firewall on all XP clients & add migration account (new domain’s Administrator Account) to Local Administrators group on all source domain computers Note – Create Firewall Disable Group policy on both domains OU No need to create Local Admin Group policy on New Domain Creating Group policy to disable firewall – Logon to old Domain – Open Active Directory Users and Computers – open Migration OU Properties

Page 30: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Create new group policy called “Migration Group Policy” & then Click Edit

Page 31: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Go to Computer Configuration – Administrative Templates – Network – Network Connections – Windows Firewall – Domain Profile And disable Windows “Firewall: Protect all network connections”

Page 32: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Go to Computer Configuration – Administrative Templates – Network – Network Connections – Windows Firewall – Standard Profile And disable Windows “Firewall: Protect all network connections”

Page 33: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Creating Group policy to add target administrator to local Admin account on source computers – Note – Before creating this group policy, create a security group called “migraton” on New domain controller and add new domain Administrator to this group Go to Computer Configuration - Windows Settings – Security Settings – Restricted Groups – right click & click “Add Group”

Page 34: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

By default it will show old domain in locations option, change to new domain. & select “migration” group which was created & click Ok

Click OK

Page 35: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Click Add to add member of this group

In Locations change to new domain & add Administrator then click OK

Page 36: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

After adding members, in “This group is a member of:” option click Add

Page 37: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Do not click “Browse”, manually type Administrators & click OK

Click Apply & OK

Page 38: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Close Group Policy Editor

Page 39: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Add new domain Administrator account to old domain Builtin Administrators Group Note – This is very important task & must be perform before starting migration. Logon to old domain controller – Open “Active Directory Users and Computers” Click on Builtin & open Administrators Group Properties

Page 40: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Click Add

In Locations option, select new domain & select Administrator & click OK

Page 41: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Servers & clients preparation is completed. Now we are ready for migration. Important Note - 1. If Old Domain controller OS is Windows 2000 then sometimes it may give problem to migrate SID. In this case it is recommended to add additional DC of 2003 in old domain forest & transfer FSMO roles to Windows 2003 DC & then do migration 2. If new Domain controller OS is windows 2008 then we must Enable following Group Policy in "Default Domain Controller Policy"

"Allow cryptography algorithms compatible with Windows NT 4.0" Check following Microsoft Article -

http://support.microsoft.com/kb/942564

New Domain

Administrator Account

Page 42: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Migration –

Users Migration – We can migrate multiple users at a time but it is recommended to move 1 user at first time & check. Logon to migration server using administrator account & open “Active Directory Migration Tool”

Page 43: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Right click on ADMT & run “User Account Migration Wizard”

Page 44: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select Source & Target domain & click “Next”

Page 45: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 46: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select User to migrate & click “Next”

In select Target OU select “Migration OU”, which was created on new server.

Page 47: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select “Migrate passwords”. Password migration source DC will be selected automatically which was already configured on old DC. Click “Next”

Page 48: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select Target same as source. It is recommended to disable source accounts so that users can not logon to old domain again It is very important to select “Migrate user SIDs to target domain”

Page 49: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Enter source domain Administrator username & password, and then click “Next”

Page 50: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

“Select Update user rights” & “Fix user’s group memberships” and then click “Next”

Page 51: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 52: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Migration status will be displayed. You can view migration log. Click close.

Page 53: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Groups Migration – Right click on ADMT & run “Group Account Migration Wizard”

Page 54: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select Source & Target domain / domain controller & click “Next”

Page 55: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 56: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 57: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select Target OU & then click “Next”

Page 58: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Enter source domain Administrator username & password, and then click “Next”

Page 59: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 60: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 61: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Computer Migration – Note – Client Computer must be Online while running Computer migration wizard, because at the end of migration wizard, it will change computers domain membership automatically & remotely reboot the computer. If computer is off while running wizard then we have to MANUALLY change computers domain membership. Do not logon to computer after rebooted by ADMT wizard, because we need to run “Security Translation” wizard to automatic users profile migration to new domain. If by mistake client logs to new domain without completing Security Translation wizard then logon to computer using local admin account & delete new domain profile. Again run “Security Translation” wizard & then logon to computer again. Following are the steps for computer & profile migration –

1. Run computer migration wizard & migrate computer 2. At the end of the wizard, change computers domain membership 3. It will reboot computer remotely 4. Wait till computer reboots & then close wizard 5. Do not logon to migrated computer 6. Run Security Translation wizard 7. Logon to computer to new domain. 8. Clients old profile will be appear in new profile. No need to manually copy profile

Page 62: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Detailed Steps – Right click on ADMT & run “Computer Migration Wizard”

Page 63: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 64: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 65: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 66: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Do not select any “Translate objects”. “Translation wizard” should be run after completing computer migration wizard

Page 67: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 68: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 69: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 70: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Run Pre-check before running agent operation (Changing computers domain membership)

Page 71: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 72: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select “Run pre-check and agent operation” & click start

Page 73: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

After successful agent operation, computers will automatic reboot. After computer reboots properly post-check will also show successful. Wait till Post-check task shows successful

Page 74: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Click “Close”

Page 75: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Security Translation Wizard – Right click on ADMT & run “Security Translation Wizard”

Page 76: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 77: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 78: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 79: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select All Objects & click “Next”

Page 80: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 81: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select “Run pre-check” & click “Start”. Wait until pre-check shows “Passed”

Page 82: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select “Run pre-check and agent operation” & click “Start”. Wait until “Agent Operation” shows “Successful”. Then click “Close”

After completing this task, please logon to new domain from client’s computer. You will find clients old domain profile migrated to new domain profile.

Page 83: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Servers Migration – Migration of server account is similar to desktop computers. Only difference is that we have to Migrate “Service Account” using “Service Account Migration Wizard”. Steps to Migrate Servers to new domain –

1. Migrate Server computer account using “Computer Migration Wizard” 2. Migrate service account using “Service Account Migration Wizard” 3. Migrate Service account user using “User Migration Wizard” 4. Run “Security Translation Wizard” to migrate profile

Page 84: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Service Account Migration – Right click on ADMT & run “Service Account Migration Wizard”

Page 85: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 86: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 87: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Page 88: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select “Run pre-check” & click “Start”. Wait until “pre-check” shows passed

Page 89: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Select “Run pre-check and agent operations” & click “Start”. Wait until “Agent Operation” Shows “successful”

Click “Close” after completing operation. Migrate all users, Groups, Computers, servers & service accounts to new domain.

Page 90: Active Directory Domain Migration Using ADMT Tool1

Magnamious Systems Pvt. Ltd

Post Migration tasks – After successful migration do following tasks

1. Shutdown old domain controller & check functionality 2. If entire network working fine then restart old domain controller 3. Change all clients & Servers DNS settings to new DNS server, if not changed 4. Remove trust between old & new domain. 5. Shutdown & remove old domain from organization