With Microsoft’s Server 2012 now upon us it’s time to start testing some migration options. First up it’s a simple DHCP migration, this doesn’t look to have changed much so if you’re familiar with the Windows Server Migration tools all should go pretty smoothly.
First off we need to install the Windows Server Migration tools feature on Server 2012:
- Load up Server Manager
- Click Manage (up in the top right corner)
- Select Add Roles and Features
- Select Role-based or feature-base installation and click Next
- Select the appropriate Server and click Next
- Click Next again on Server Roles without selecting anything as we are after a Feature
- Scroll down the Features list and tick the Windows Server Migration Tools, click Install to complete.
With the Migration tools now installed we need to export the appropriate packages for our Source server to use:
- On Server 2012 load a command prompt window (winkey+r then cmd)
- Change directory to where smigdeploy.exe is stored – cd %Windir%\System32\ServerMigrationTools\
- Created the appropriate package based on the source server OS
Server 2008 R2 – SmigDeploy.exe /package /architecture amd64 /os WS08R2 /path <deployment folder path>
Server 2008 x64 – SmigDeploy.exe /package /architecture amd64 /os WS08 /path <deployment folder path>
Server 2003 x64 – SmigDeploy.exe /package /architecture amd64 /os WS03 /path <deployment folder path>
Server 2008 x86 – SmigDeploy.exe /package /architecture X86 /os WS08 /path <deployment folder path>
Server 2003 x86 – SmigDeploy.exe /package /architecture X86 /os WS03 /path <deployment folder path>
- Once the package has exported copy the folder to the Source server (e.g. folder SMT_WS008R2_amd64 for the 2008R2 server)
- Open up a command prompt window on the Source server and browse to the SMT folder that has been copied
- Run Smigdeploy.exe
The above will now have the Migration tools powershell loaded and ready to run on the Source server. From here we can now export the DHCP settings:
- Stop the DHCP service on the Source server (disable if need be via services.msc)
- Run the following – Export-SmigServerSetting -FeatureID “DHCP” -Path “<path to export to>” -Verbose
- This will export a .mig file ready for importing on the Destination server.
- Now we can import on the Destination server, copy the .mig file to somewhere the Destination server has access to.
- Load PowerShell on the Destination server (Server 2012)
- Run the following – Import-SmigServerSetting -FeatureID “DHCP” -Path “<path to import from>” -Verbose
Just a side note, if DHCP is already installed on 2012 stop the service and use the -Force switch to import
- Once successful start up the DHCP Server service and check over to confirm
Some sites used as a reference are below: