Migrate DHCP server role from 2008 to 2012r2 with Powershell
Step-by-step instructions to migrate the DHCP server role from a windows 2008 server to a 2012R2 server with Powerhsell.
First install the migration tools on the target and the source server.
1 2 3 4 |
Install-WindowsFeature Migration –ComputerName <computer_name> #to create a package of the same version for the old computer: c:\windows\syste32\servermigrationtools\SmigDeploy.exe /package /architecture amd64 /os WS08R2 /path <deployment folder path> |
Import the servermigration tools on the source server (2008r2 in this case). Make sure the Migration tools are not alredy installed on the computer.
1 |
.\smigdeploy |
Next, export the settings on the source server
1 2 3 4 |
new-item c:\export -itemtype directory Stop-Service DHCPserver Export-SmigServerSetting -featureID DHCP -User All -Group -path <storepath> -Verbose |
Next, copy the svrmig.mig file to the target server.
On the target server execute the following commands
1 |
Import-SmigServerSetting -featureid DHCP -User All -Group -Force -path <storepath> -Verbose |
Reboot the target server
Autorise the DHCP server in the AD
Discard the source DHCP server.