Wish I had known this earlier. If you want to migrate DHCP servers and have got the two servers setup, run the following on the source server:
1 |
netsh dhcp server v4 export c:\dhcpdb all |
And the following on the destination server (the first command is to just connect to the C: drive of the source):
1 2 |
pushd \\sourceDC\c$ netsh dhcp server v4 import \path\to\dhcpdb all |
Amazing!
This only does IPv4 scopes, so replace v4 with v6 for IPv6. And this exports all scopes, so replace “all” with the scopes you want if you want a selected few.