Migrate DHCP Reservations with Powershell

Migrate DHCP Reservations with Powershell

In order to Migrate DHCP Reservations with Powershell, you just need one simple line of code. It works also with different OS, for instance I managed to migrate the DHCP Reservations I had on a Microsoft Windows 2008 R2 server over to a Windows Server 2012 R2.

I suggest to run the command from the OS where you’re migrating to, which in theory is going to be the newer version.

Get-DhcpServerv4Reservation -computername SRV01 -ScopeId "10.220.0.0" | Add-DhcpServerv4Reservation -ComputerName NEWSRV02 -ScopeId "10.220.0.0"

The above command will first get (Get-DhcpServerv4Reservation) the current reservations on SRV01 for the Scope ID 10.220.0.0, then, it’ll add each reservation (Add-DhcpServerv4Reservation) to the server called NEWSRV02 for the Scope ID 10.220.0.0.
Migrating DHCP reservations with powershell will make migrations a bit less painful 🙂 .

IT Droplets

IT Droplets