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
Latest posts by Simon Treadaway (see all)
- Add replicas on Exchange 2010 Public Folders - 25/08/2016
- Remove all aliases for a domain in Office 365 - 24/08/2016
- Installing Exchange 2010 SP3 Rollups on Server 2012 - 12/07/2016