This is a quick guide for moving DHCP server roles to new DHCP servers
This requires access to elevated Powershell sessions on both the current DHCP server and the new DHCP server.
Export Full DHCP server config (all scopes) including the lease reservations:
Export-DhcpServer -ComputerName "dhcpserver.contoso.com" -File "C:\exportdir\dhcpexport.xml" -Leases
Export specific DHCP server scope(s) and the lease reservations:
Export-DhcpServer -ComputerName "dhcpserver.contoso.com" -File "C:\exportdir\dhcpexport.xml" -ScopeId 10.10.10.0,10.20.20.0 -Leases
Import Full DHCP server config (all scopes) and the lease reservations:
Import-DhcpServer -ComputerName "dhcpserver.contoso.com" -File "C:\exports\dhcpexport.xml" -BackupPath "C:\dhcpbackup\" -Leases
Need to overwite the existing scope with the imported scope? Add to the end:
-ScopeOverwrite
Import specific DHCP server scope(s) and the lease reservations:
Import-DhcpServer -ComputerName dhcpserver.contoso.com -File "C:\exports\dhcpexport.xml" -BackupPath "C:\dhcpbackup\" -ScopeId 10.10.10.0,10.20.20.0 -Leases
Need to overwite the existing scope with the imported scope? Add to the end:
-ScopeOverwrite
On the new DHCP server, you must Authorize it in AD
Launch DHCP and in the top of the tree, right-click DHCP and select Manage authorized servers
Select the new server and click Authorize – this will allow DHCP to start issuing DHCP leases
Next you can select the old DHCP server and click Unauthorize
Ensure the DHCP Server is now running on the new server
Head to the old server and stop the DHCP server
Wait 60 seconds, double check DHCP is still running on the new server without errors, and all leases / reservations are in place, then disable DHCP Server on the old server.
