Backup or Migrate DHCP on Windows Server
Updated Jun 2, 2026 · 12 views
- Open Powershell (administrator)
- Copy this command and paste it into powershell and press Enter
Export-DhcpServer -ComputerName “servername.domain.com” -Leases -File “C:\Scripts\DHCPConf.xml” –Verbose
- Copy the file located in the path above to the new server (C:\Scripts)
- Open Powershell (administrator)
- Copy this command and paste it into powershell and press Enter
Import-DhcpServer -Leases –File “C:\Scripts\DHCPConf.xml” -BackupPath “C:\Scripts\DHCPBackup” –Verbose