Microsoft was ending support for the Windows server 2003 operating system on July 14, 2015, but still have some customer are using Windows server 2003 and need us to migrate them to windows server 2012 R2 or Windows server 2016.

You can easy to migrate your DHCP server from Windows server 2003 to 2012 R2 server if you follow below step by step procedure.

Installing the Windows Server Migration Tools on Windows 2012 R2 (Destination Server)

  1. Logon to windows server 2012 R2 as domain administrator
  2. Open Server Manager, select Manager, and then click Add roles and features to start the Add roles and features Wizard.
  3. On the Add roles and features Wizard page, select Role-based or feature-based installation, and then click Next.
  4. On the Server Selection page, keep the default server selection and click Next.
  5. On the Server Roles page, keep the default selection and click Next.
  6. On the Features page, select Windows Server Migration Tools and click Next.
  7. Click Install on the Confirmation page.
  8. Click Close to exist from the wizard.


Creating Server Migration Tools package for windows 2003 R2 (Source Server)

  1. Using an account with administrator permissions, log on to the Windows Server 2012 R2 server which Windows Server Migration Tools was installed.
  2. Open Server Manager, select Tools. And then click Windows Server Migration Tools.
  3. In the Command Prompt, change the directory to c:\windows\system32\ServerMigrationTools, using the cd command.
  4. Type the command .\Smigdeploy.exe /package /architecture amd64 /os ws03 /path
    c:\post-install and press Enter.
    This command creates the installation package for a Windows Server 2003 x64 server and places the files in the c:\post-install\SMT_ws03_amd64 folder. If the SMT_ws03_amd64 folder is not already created, the above command creates it automatically.

Note:

  • For Windows Server 2003 x64 source server

SmigDeploy.exe /package /architecture AMD64 /os ws03 /path c:\post-install

  • For Windows Server 2003 x86 source server

SmigDeploy.exe /package /architecture x86 /os ws03 /path c:\post-install

  • For Windows Server 2008 (R2) x64 source server

SmigDeploy.exe /package /architecture AMD64 /os ws08 /path c:\post-install

  • For Windows Server 2008 x86 source server

SmigDeploy.exe /package /architecture x86 /os ws08 /path c:\post-install

  1. Copy the newly created directory to the Windows Server 2003 (2008) machine (Source Server).

Exporting DHCP Servers Setting from a Windows Server 2003 R2 DHCP Server (Source Server)

  1. Click Start, click All Programs, click Administrative Tools and select DHCP.
  2. In the DHCP Server Console, right-click the DHCP Server and select Backup.
  3. Select Backup location and click OK.
  4. Right-click DHCP Server, select All Tasks, and select Stop to stop DHCP services. Close the DHCP window.
  5. Click Start, click All Programs, click Administrative Tools, click Windows Server Migration Tools, select PowerShell version of Windows Server Migration Tools.
  6. In the PowerShell window, type .\Servermigration.psc1 and Enter.
  7. Next, type the command Export-SmigServerSetting –FeatureID DHCP
    –User All –Group and press Enter.
  8. Enter c:\post-install\DHCPExport for the path.
  9. Provide a password to secure the exported data.
  10. Close the PowerShell window.

Copy the directory to the Windows Server 2012 R2 (Destination Server).

Importing DHCP Server Settings to a Windows Server 2012 R2 DHCP Server (Destination Server)

  1. Using an account with Administrator permissions, log on to the Windows Server 2012 R2 server.
  2. Open Server manager and then select Tools, click Windows PowerShell.
  3. In the PowerShell window, type Net stop “DHCP Server”.
  4. Type Add-PSSnapin microsoft.windows.servermanager.migration to use
    the migration tolls command set.
  5. Type the command Import-SmigServerSetting –FeatureID DHCP –User All –Group –Verbose -Force and press Enter.
  6. Enter c:\post-install\DHCPExport for the path.
  7. Provide the password and press Enter.
  8. Once import complete and report successful, type exit and close PowerShell Window.
  9. Type Start-Services
    DHCPServer to start the DHCP server.
  10. Open Server manager and then select Tools, click DHCP.
  11. Review the scope settings, leases and other information.
  12. In the Console Pane, right-click the local server node and select Authorize.
  13. Refresh the window and verify the server is operational.

RollBack

  1. Change the IP Address back from the Target to the Source Server
  2. Enable the DHCP Service
  3. Set Startup Type to Automatic
  4. Disable the DHCP Service on the Target Server

Hope you enjoy this post.

Cary

Twitter:@SifuSun

Advertisements