Deployment

Migrate DHCP from WS 2012 to WS 2012 R2

If you work as a consultant and charge by the hour, this is not something that will make you very rich…

Step-By-Step

Start an elevated PowerShell prompt

  • Execute the following command to save configuration and leases to a file
  • Export-DhcpServer -File C:\DHCPMigdata\DHCPdata.xml -Leases -Force -ComputerName old.network.local –Verbose
  • Execute the following to import that configuration in the new server
  • Import-DhcpServer -File C:\DHCPMigdata\DHCPdata.xml -BackupPath C:\DHCPMigdata\ -Leases -ScopeOverwrite -Force -ComputerName new.network.local –Verbose

Done

/mike

4 replies »

  1. Mike what if I have fail-over already configured on this server? Would I need to disable fail-over and export, then reconfigure fail-over on the new Server?

Leave a reply to Mikael Nystrom Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.