Migrate DHCP from server 2012 R2 to Server 2019

Ed Dias 26 Reputation points

I need to migrate DHCP from a server running 2012 R2 to Server 2019. I see there is a new migration tool however I wish the new server to have the same IP address as the old server. Does anyone have the steps or a guide for this?


Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,434 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,525 questions
Windows DHCP
Windows DHCP
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.DHCP: Dynamic Host Configuration Protocol (DHCP). A communications protocol that lets network administrators manage centrally and automate the assignment of Internet Protocol (IP) addresses in an organization's network.
1,021 questions
Windows Server Migration
Windows Server Migration
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Migration: The process of making existing applications and data work on a different computer or operating system.
407 questions
0 comments No comments
{count} votes

Accepted answer
  1. Gloria Gu 3,891 Reputation points

    @Ed Dias Hi,

    Thank you for posting in Q&A!

    I've done tests in my own environment with server 2012R2 and server2019, it can be done by PowerShell command, please follow these steps:

    1.Log in with an administrator account to the Windows Server 2012 R2 system.

    2.Open Powershell and then type in the following command:

    Export-DhcpServer -File C:\DHCPdata.xml -Leases -Force -ComputerName old.network.local –Verbose


    3.Copy the file C:\DHCPdata.xml the Windows Server 2019 system.

    4.Install and configure the DHCP role on Server 2019

    5.Start the DHCP service.

    6.Type in the following command on Powershell to import the DHCP Data.

    Import-DhcpServer -File C:\DHCPdata.xml -BackupPath C:\DHCP\ -Leases -ScopeOverwrite -Force -ComputerName new.network.local –Verbose


    7.Restart the DHCP service.
    Verify your DHCP scope, IP leases, reservations etc and they should match with DHCP Server 2012 R2.


    Hope you have a nice day : )


    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    8 people found this answer helpful.

7 additional answers

Sort by: Most helpful
  1. Dave Patrick 426K Reputation points MVP

  2. Ed Dias 26 Reputation points

    Thanks but your first link is dead.
    Edit: the ending ) isn't included in the link so I added it manually.

  3. Ed Dias 26 Reputation points

    Just reading through that guide. Isn't that for older server versions? Rather than the newer Export-DhcpServer powershell command?

    0 comments No comments

  4. Dave Patrick 426K Reputation points MVP

    Yes, you can certainly also do via PowerShell

    but probably should unauthorize old, do the addressing changes, then authorize new one.

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments