One of my customers asked me to dismiss an old Windows 2003 R2 server which is running the DHCP service for a bunch of workstations and to replace it with a new Windows 2012 server we installed last December.

Seen the fact that this DHCP service is configured with many options and a lot of reservations, and that I am totally lazy about recreating all these settings manually, I found a way to dump its configuration to a text file and to import it back to Windows 2012.

Let's start exporting the DHCP database from the server that is running Microsoft Windows Server 2003 with the command: 

netsh dhcp server export C:\dhcp_config.dat all

This generates the binary file C:\dhcp_config.dat. After this operation has completed, stop the DHCP service:

net stop "dhcp server"

--> Please see the rest on the blog: