Recently a customer asked me to move DHCP from their old server to their new 2012 servers so they could use DHCP failover.
Using backup & restore doesn’t work from the GUI (although I’ve never seen that work so it wasn’t a surprise) so it was time to hit powershell.

On the new Server 2012 box the commands to run are:
Export-DhcpServer –ComputerName oldserver.domain.tld -Leases -File C:exportdhcpexp.xml -verbose

Import-DhcpServer –ComputerName newserver.domain.tld -Leases –File C:exportdhcpexp.xml -BackupPath C:dhcpbackup -Verbose

Remember to change oldserver.domain.tld & newserver.domain.tld to your server names & not to have a scope with the same range already partly setup on the new server

Connect on

Simon Treadaway

This blog is maintained by Simon Treadaway.Simon is a Senior Infrastructure Architect working in London, UK.
Connect on
Migrating DHCP from Server 2008 to Server 2012

Leave a Reply

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