Book Image

Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to

By : Santhosh Sivarajan
Book Image

Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to

By: Santhosh Sivarajan

Overview of this book

Migrating to a new server involves a lot of decision making and planning. Windows Server 2012 comes with exciting new features and ease of use. This book will help you migrate to your new server in no time. "Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to" provides you with many practical and real world scenarios in a step-by-step guide. It is designed to lead you through the entire process of migration.Beginning with an introduction to Windows Server 2012, the author then takes you through the installation and configuration of the server, before continuing on to migrate the existing services to Windows Server and how to decommission old servers. The ‚Äúhow-to‚Äù migration scenarios described are based on the author's own field experiences, guaranteeing real-world solutions. The scenarios include Active Directory, enabling a Remote Desktop, Print Server, and Hyper-V migration details. From the planning to  theimplementation phase, "Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to" is your comprehensive guide for completing migration solutions.
Table of Contents (7 chapters)

Dynamic Host Configuration Protocol (DHCP) migration (Must know)


In this recipe I will explain a procedure for migrating DHCP scope and lease information using the Windows Server Migration Tools. Migrating infrastructure services such as DHCP, DNS, WINS, and so on will have some impact on network operations. So make sure to schedule a maintenance window and place proper change control before you perform these activities.

If the DHCP role is not installed on the target server, the Windows Server Migration Tools will install it during the migration process. However, in this scenario, we will be manually installing the DHCP role and authorizing the DHCP server in Active Directory.

The following diagram explains the high level steps involved in this migration:

How to do it...

  1. Log on to Windows Server 2012.

  2. Open Server Manager. From the Server Manager option, install the DHCP Server role. Refer to the Add and remove roles and features (Must know) recipe for roles and feature installation details.

  3. From the DHCP Admin console, authorize the new DHCP server in Active Directory.

  4. Log on to the source DHCP server. Copy the migration tool package from \\HOU-MGR-01\MigTools to C:\MigTools.

  5. Stop the DHCP Server service.

  6. Open Command Prompt with elevated permission and navigate to the C:\MigTools folder. Run the SmigDeploy.exe command. This will register the migration tool on the source server and open a PowerShell window as shown in the following screenshot:

    Note

    The PowerShell and .NET Framework are prerequisites for this tool.

    After you register the SmigDeploy.exe tool, Windows Server Migration Tools will be added to the Administration Tools menu on the local server. You can uninstall this tool by running the SmigDeploy.exe /Unregister command.

  7. The next step is to export the current DHCP configuration from the source server. From the PowerShell window type Export-SmigServerSetting –FeatureID DHCP –Path C:\DHCPExport\ cmdlet. It will prompt you for a password for the export file. Hit Enter to continue with the export process. The export file will be in the C:\DHCPExport folder.

  8. Copy this export file (C:\DHCPExport\svrmig.mig) over to the target Windows Server 2012 DHCP server.

  9. The next step is to import this file onto the new DHCP server. Log on to the target Windows Server 2012 server and open Windows Server Migration Tools from the Start window as an administrator. If this role is not locally installed on the server, you can copy the installation package from the \\HOU-MGR-01\MigTools folder and run the SmigDeploy.exe tool.

  10. From the PowerShell window, run the Import-SmigServerSetting –FeatureID DHCP –Path D:\DHCPExport cmdlet and hit Enter. You need to provide only the folder name.

    As I mentioned before, if the DHCP feature was not installed, the migration tool will install this feature as shown in the following screenshot:

  11. Since we already installed the DHCP feature, it will start the import process. You need to provide the same password as configured in the export process.

  12. The new server needs to be restarted after the import process has completed.

How it works…

The preceding process migrates DHCP information onto the new Windows Server 2012 server. At this point the new DHCP server will have all the DHCP scope and lease information.

There′s more...

You can verify the scope and lease information from the DHCP admin console. The IP helper address on the router has to be changed with the new DHCP server′s IP address if it is configured with the old DHCP server′s IP address. Once you verified these configurations, the old DHCP server can be decommissioned. Windows Server 2012 provides high-availability and failover capability for DHCP. You may want to take advantage of this new feature right away.

The DHCP scope and lease information can also be migrated using Netsh Export and Netsh Import commands.