How to migrate a domain controller to new server
Migrating a domain controller to a new server involves several steps to ensure a smooth transition with minimal downtime and no data loss. Here's a step-by-step guide to help you migrate a domain controller to a new server:
Preparation
- Plan the migration: Identify the reasons for the migration, assess the impact on your organization, and plan the migration timeline.
- Choose the new server: Select a new server with the same or better specifications than the old one. Ensure it has the necessary hardware and software requirements.
- Backup the old server: Backup the old domain controller's system state, including the SYSVOL share, to ensure data integrity.
- Prepare the new server: Install the necessary operating system, DNS, and DHCP services on the new server.
Step 1: Demote the old domain controller
- Open the Command Prompt: Run the Command Prompt as an administrator on the old domain controller.
- Demote the domain controller: Run the following command to demote the domain controller:
dcpromo /uninstall /forceremoval
This will remove the domain controller role from the old server.
Step 2: Promote the new domain controller
- Open the Command Prompt: Run the Command Prompt as an administrator on the new server.
- Promote the new domain controller: Run the following command to promote the new server as a domain controller:
dcpromo /adv /domain /new /dc /install
This will install the domain controller role on the new server and configure it as a domain controller.
Step 3: Transfer the FSMO roles
-
Transfer the PDC Emulator role: Run the following command on the new domain controller to transfer the PDC Emulator role:
netdom query fsmo
This will display the current FSMO role holders. Then, run the following command to transfer the PDC Emulator role:
netdom query fsmo /transfer /pdc
-
Transfer the RID Master role: Run the following command on the new domain controller to transfer the RID Master role:
netdom query fsmo
This will display the current FSMO role holders. Then, run the following command to transfer the RID Master role:
netdom query fsmo /transfer /rid
Step 4: Update DNS and DHCP
-
Update DNS: Update the DNS records to point to the new domain controller's IP address.
-
Update DHCP: Update the DHCP server to point to the new domain controller's IP address.
Step 5: Verify the migration
- Verify domain controller status: Run the following command to verify the domain controller status:
dcdiag /v
This will display the domain controller's status and any errors.
- Verify DNS and DHCP: Verify that DNS and DHCP are functioning correctly and pointing to the new domain controller.
Step 6: Decommission the old domain controller
- Remove the old domain controller from the domain: Run the following command on the new domain controller to remove the old domain controller from the domain:
netdom remove <old_domain_controller_name> /force
- Physically decommission the old domain controller: Physically decommission the old domain controller, ensuring it is no longer accessible or connected to the network.
Post-migration tasks
- Update group policy: Update group policy to reflect the new domain controller's IP address and other necessary changes.
- Verify application compatibility: Verify that all applications and services are compatible with the new domain controller.
- Monitor the new domain controller: Monitor the new domain controller's performance and functionality to ensure a smooth transition.
Remember to test the migration thoroughly before decommissioning the old domain controller to ensure a successful transition.