Migrate DHCP from server 2012 R2 to Server 2019

Ed Dias 26 Reputation points
2020-11-30T11:51:32.803+00:00

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?

Thanks.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,799 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,600 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,040 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.
434 questions
0 comments No comments
{count} votes

Accepted answer
  1. Gloria Gu 3,896 Reputation points
    2020-12-01T07:11:42.57+00:00

    @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

    43870-15.png

    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

    43789-16.png

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

    43883-17.png

    Hope you have a nice day : )
    Gloria

    ============================================

    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.
    https://learn.microsoft.com/en-us/answers/articles/67444/email-notifications.html

    8 people found this answer helpful.

7 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-11-30T12:57:37.61+00:00

  2. Ed Dias 26 Reputation points
    2020-11-30T13:12:21.257+00:00

    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
    2020-11-30T13:15:18.97+00:00

    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. Anonymous
    2020-11-30T13:25:13.523+00:00

    Yes, you can certainly also do via PowerShell
    https://learn.microsoft.com/en-us/powershell/module/dhcpserver/export-dhcpserver?view=win10-ps
    https://learn.microsoft.com/en-us/powershell/module/dhcpserver/import-dhcpserver?view=win10-ps

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.