Migrating DHCP Server to another server

Being a Windows System Administrator, you have to deal with migrating DHCP role to another Server due to various reasons (Hardware/Software end of life, DHCP Server having issue, merging roles, etc.) This can be a simple task, depending on the complexity of your DHCP configuration. You may be able to manually recreate the scopes on the new server if you only have 1 or 2 scopes, but if you have numerous scopes with many reservations, you can better use the export and import configuration feature.

Exporting Configuration

  1. Open the DHCP console, on the old server.
  2. right-click on the SERVER, and choose Backup.
  3. Choose your destination folder, and click ok. 
  4. Verify the file was created in the backup destination you chose.

Using Command Line

Export-DhcpServer -ComputerName “servername.domainname.com” -Leases -File “C:\DHCP\OldDHCPConf.xml” –Verbose

Install DHCP Role on new Server

  1. On your new server, open Server Manager,
  2. Choose Add Roles and Features.
  3. Under the Server Roles page, select DHCP server, and install.
  4. A reboot should not be required to install the DHCP role.

Import Configuration

From your old server, copy the DHCP backup file to a folder on your new server.

  1. In the DHCP console on the new server
  2. Restore the DHCP scope from the file copied.
  3. Right-click on the server name and select Authorize.  (You can Un-authorize old DHCP at this point)

Using Command Line

Import-DhcpServer -Leases –File “C:\OldDHCPConf.xml” -BackupPath “C:\DHCP\Backup” –Verbose

Removing Old Server

Verify that new Server is able to allocate IP Addresses by “ipconfig /renew” on client PC or rebooting workstation. You can also notice new leases in the DHCP console on new Server. You can remove DHCP role from old server after verification.

  1. In server manager, select Manage in the top right corner.
  2. Choose Remove Roles and Features.
  3. Uncheck the DHCP role, and it will be removed from the server. Again, no reboot is required.

Leave A Comment

Your email address will not be published. Required fields are marked *