How to Migrate DHCP from Windows Server 2008 to 2012/2016

How to Migrate DHCP from Windows Server 2008 to 2012/2016

A few weeks ago at work, I was tasked with the project of decommissioning one of our older Windows Server 2008 machines and upgrading it to Windows 2012. I was initially a little worried, seeing as this server ran a lot of key roles, such as DHCP, DNS, was a Domain Controller, and also acted as a print server as well as a few other services. As I was migrating the DHCP role, I wondered if there was a simple way of exporting all of the settings, such as DHCP scope and reserved IP addresses. Turns out there was, and it went off without a hitch!

Here’s how I did it:

  • Log on to the old/existing DHCP server.
  • Open a command prompt as Administrator.
  • On the Action menu (from within the DHCP management console), click “Backup”.
  • Type netsh dhcp server export C:\Users\\Desktop\dhcp.txt all, and then press ENTER.
  • Install the DHCP role on the new (2012/2016) DHCP server using Server Manager.
  • Copy the exported DHCP text file to the desktop of the new DHCP server.
  • Verify that the DHCP service is installed and started on the new DHCP server.
  • Open a command prompt as Administrator (on the new server)
  • Type netsh dhcp server import C:\Users\\Desktop\dhcp.txt all, and then press ENTER
  • Open DHCP management console on the new server.
  • In the console tree, right-click DHCP.
  • Select “Authorize”.

If your old DHCP server is in the same network/subnet as the new DHCP server, you’ll notice that the old DHCP server has been de-authorized automatically. This is to prevent two DHCP servers from handing out conflicting addresses.

Check to make sure that your new DHCP has all of the same settings, options, scopes, and reservations set as the current one. If done correctly, everything should have been brought over. I was pretty impressed as to how well this worked and just how seamless it truly was.

4 Replies to “How to Migrate DHCP from Windows Server 2008 to 2012/2016”

  1. Thanks a bunch for this! At the end of a long day migrating away from an old SBS 2008 server, I discovered that it was performing DHCP amongst its other roles. Your well laid out instructions greatly improved my demeanor and saved me time as well!

Leave a Reply

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