Migrate DHCP server from 2012 Standard to 2019

Jim 271 Reputation points
2023-05-07T17:51:18.9+00:00

I have another thread regarding his migration here. It was thought I should ask this in a separate thread.

Basically I will need to migrate the DHCP server portion of the old 2012 standard server (DC/File/Print) to the new, 2019 server.

Would this just be a matter of making the 2019 server a failover DHCP server? Then once the 2012 server is removed from the domain how do I make the 2019 server the "primary"?

Keep in mind I already have on failover DHCP server on the domain.

Thanks.

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
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ahmed Mohammed Salah Al-Deen 0 Reputation points
    2023-05-07T23:37:59.7633333+00:00

    Hey Jim

    1. First thing is ofc a backup in case of a failed transition.
    2. You will need to delete the failover relationship between the Source DHCP and its failover partner.
    3. Stop the DHCP service (down time).
    4. PowerShell export from source.
      1. Export-DhcpServer -File C:\DHCPdata.xml -Leases -Force -ComputerName old.network.local -Verbose
    5. Remove authorization from old DHCP.
    6. Install the DHCP on the new server.
    7. PowerShell import to destination.
      1. Import-DhcpServer -File C:\DHCPdata.xml -BackupPath C:\DHCP\ -Leases -ScopeOverwrite -Force -ComputerName new.network.local –Verbose
    8. Authorize the new DHCP.
    9. Restart the service on the new server.

    Check and make sure its working fine.

    There are details you should keep in mind.

    • The failover partner will lose all scopes and they will only remain on the dhcp server you used to delete the failover relationship.
    • PowerShell export and import commands does not export or import leases by default, and you will also need few more parameters.

    you will need to stop DHCP services so there will be lil down time.

    Here are the links if you would like to check the source for extra reading which I recommend.

    PowerShell DHCP commands - Learn.microsoft.com

    Migrate DHCP server - Learn.microsoft.com

    Migrate an existing DHCP failover deployment - Learn.microsoft.com

    If the answer satisfies your question, Kindly mark it as "Accepted Answer".