Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to

Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to: A step-by-step guide to installing, configuring, and updating to Windows Server 2012

Arrow left icon
Profile Icon Santhosh Sivarajan
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4 (9 Ratings)
Paperback Jan 2013 84 pages 1st Edition
eBook
NZ$14.99 NZ$35.99
Paperback
NZ$43.99
Subscription
Free Trial
Arrow left icon
Profile Icon Santhosh Sivarajan
Arrow right icon
Free Trial
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4 (9 Ratings)
Paperback Jan 2013 84 pages 1st Edition
eBook
NZ$14.99 NZ$35.99
Paperback
NZ$43.99
Subscription
Free Trial
eBook
NZ$14.99 NZ$35.99
Paperback
NZ$43.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

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

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

This book is intended to serve as a hands-on reference manual for Windows Server administrators who are performing migrations from their existing Windows Server 2008 / 2008 R2 environment to Windows Server 2012. In this book, we provide you with many "how-to″ deployment, migration, and administration scenarios. We will also walk you through different scenarios of installing, configuring, and migrating Windows Server 2012 in a real-world environment.

There are many ways to upgrade the current environment to a Windows Server 2012 environment. The in-place upgrade and migration are two key approaches. The in-place upgrade refers to the upgrade of your current server to a new state or operating system without reinstalling or reconfiguring the software or hardware components. The migration approach introduces a new server or operating system on a new hardware platform, and moves/migrates all existing resources into the new server. Both of these options have pros and cons. If you are performing an in-place upgrade, you need to make sure all the hardware, software, and applications support the new operating system. Microsoft Windows Server 2012 is only available in 64-bit. Since the in-place upgrade does not provide you with an option to select the components or the data you need to migrate, this process is often called the garbage-in and garbage-out method. The migration scenario involves more processes than just upgrading the operating system. It requires an actual migration process for all existing resources in the environment. It also requires additional hardware which can lead to more operational and maintenance costs during the migration or coexistence period. If a business can afford the cost of the new hardware, the migration approach is a safer and cleaner method than performing an in-place upgrade.

The focus of this book is on the migration approach. It provides a step-by-step instruction on migrating the existing services into a new Windows Server 2012 environment using native tools available on Windows Server 2012. The flow of the book is to provide you the administration and deployment details first, and then the migration details of various services. The goal is to have a complete Windows Server 2012 environment after the migration. This can be achieved by migrating the existing Active Directory domain, network services, file and print servers, and many more onto a Windows Server 2012 server.

The following figure graphically represents the high-level tasks involved in this migration process:

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

All these details and step-by-step instructions are included in the various recipes of this book in the following order:

  • Windows Server 2012 Core and GUI installation and configuration
  • Windows Server 2012 local and remote administration
  • Active Directory and domain controller migration
  • Network Services (DNS and DHCP) migration
  • Data and file server migration
  • Printer and print server migration
  • Hyper-V and virtual server migration
  • Decommissioning old servers and domain controllers

The installation and configuration sections ensure that the new Windows Server 2012 is functional and configured correctly. The migration sections provide you the details of migrating existing services into the previously configured server. The Decommissioning old domain controllers (Must know) recipe provides the details of decommissioning old servers and bringing the current infrastructure into a native Windows Server 2012 environment.

Installing Windows Server 2012 (Must know)

Now it is time to start installing servers in your environment. In this recipe, we will start installing Windows Server 2012 in Server Core and later it will be converted to a Server with a GUI. We will cover the following:

  • Installing Windows Server 2012 with Server Core option
  • Converting from Server Core to Server with a GUI and vice versa
  • Basic configuration tasks

Getting ready

Windows Server 2012 is only available as a 64-bit version. So the hardware needs to support this requirement. The following is the minimum hardware requirement for Windows Server 2012:

  • Processor: 1.4 GHz 64-bit processor
  • RAM: 512 MB
  • Hard disk: 32 GB

You also need to select the correct edition (Data Center, Standard, Essential, or Foundation) of the server based on your business and technical requirements.

Note

The preceding hardware requirement is an absolute minimum requirement to install Windows Server 2012. The actual hardware and software requirements will vary based on the environment and the types of application you are going to support. It is recommended to perform a capacity planning session with various team owners before you finalize the hardware and server edition. Upgrade from the same server edition of Windows Server 2008 and Windows Server 2008 R2 to Windows Server 2012 is supported. Also, the Essentials and Foundation versions of Windows Server 2012 are on a separate install DVD.

How to do it...

  1. Boot the server from the Windows Server 2012 CD.
  2. Like other operating system (OS) installations, in the first screen you will see an option to select Language to Install, Time and Currency Format, and Keyboard of input method. Select the correct options based on your region. Click on Next.
  3. Click on Install Now in the next window to continue the installation.
  4. As shown in the following screenshot, you will see the Server Core Installation and Server with a GUI options. For this installation, I will select Server Core Installation. Click on Next.
    How to do it...
  5. Accept the license agreement. Click on Next.
  6. Since this is a new installation, you need to select the Custom: Install Windows Only (advanced) option. For an upgrade, select the Upgrade: Install Windows and keep files, settings, and applications option. Click on Next.
  7. Select the drive where you want to install the operating system. Click on Next.

    Note

    Use the advanced option to format the drive, change the partition size, load drivers, and so on.

    How to do it...

    Note

    You can use the left arrow button on the top-left corner of the screen to go back to the previous install screen.

  8. Select the drive where you want to install the operating system. Click on Next. The installation process will start at this point. The installation process is categorized into five different stages: Copying Windows Files, Getting files ready for installation, Installing features, Installing updates, and Finishing up.
  9. The server will be rebooted after the initial installation. After the reboot, the server will prompt you to enter a password for the built-in Administrator account. Enter a new password and click on OK to complete the installation.

How it works...

As I mentioned before, the default install option is Server Core. The previously mentioned procedure completes the installation of Windows Server 2012. At this point this server will be a standalone server.

There′s more...

In Windows Server 2012, you can use the Setres (Set Resolution) command to change the default command windows resolution. Now you have completed the installation of a Server Core operating system (OS). Before we start configuring this server, I will explain the process of converting this server into a Server with a GUI option.

Converting Server Core to Server with a GUI (Should know)

You have a few options using PowerShell, Server Manager, Deployment Image Servicing and Management (DISM) tool, and a few others to convert a Server Core into Server with a GUI and vice versa. In this book I will be explaining a procedure using Windows PowerShell. The following recipe explains these details.

Getting ready

The minimum hardware and software requirements for a Server with a GUI is the same as a Server Core, which is described in the previous recipe.

How to do it...

  1. Log on to the Windows Server 2012 core server with administrative credentials.
  2. Start the PowerShell console from the command window by typing the command PowerShell.
  3. From the PowerShell prompt, enter Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell –Restart.

    Note

    You can install multiple features in a single command line by separating these features by a comma.

    How to do it...

How it works...

The Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell cmdlet installs Server-Gui-Mgmt-Infra and Server-Gui-Shell Windows features on the Server Core. The –Restart parameter will force to reboot the server after the installation. After the reboot the server will be converted to a Server with a GUI.

There′s more...

In the preceding procedure, we were using Windows Update as the source instead of a Windows Imaging File (WIM). Alternately, you can mount the WIM file locally to install additional features without accessing the Windows Update Service by using the –Source parameter in the previous cmdlet.

Converting Server with a GUI to Server Core (Should know)

This recipe explains the procedure to convert the Server with a GUI into Server Core using a PowerShell cmdlet.

Getting ready

The minimum hardware and software requirements for a Server with a GUI is the same as a Server Core which is described in the previous recipe.

How to do it...

  1. Log on to the Windows Server 2012 server with administrative credentials.
  2. Start the PowerShell console from the command window by typing the command PowerShell.
  3. From the PowerShell prompt, enter the Uninstall-WindowsFeature Server-Gui-Mgmt-Infra –restart cmdlet.
  4. Restart the server.

How it works...

The preceding process uninstalls the Server-Gui-Mgmt-Infra feature and the associated components from the server. If you are not sure which components will be affected by this cmdlet, you can use the –whatif parameter with the previous command.

As you can see in the following screenshot, if we use the previous command, it will remove Graphical Management Tools and Infrastructure, Server Graphical Shell, User Interfaces and Infrastructure, and Windows PowerShell ISE.

How it works...

You can specify a –Remove option with the preceding command to remove the installation binaries from the hard drive (disabled with payload removed). If you don′t specify the –Remove option, the installation binaries will remain in the Windows Side-by-Side (WinSxS) folder. It can be used for future use without using an installation media or getting it from Windows Update.

There′s more...

You can verify the installation type by validating the ServerCore, ServerCoreExtended, Server-Gui-Mgmt, and Server-Gui-Shell registry values in the HKEY_LOCAL_MACHINES\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Server\ServerLevels registry hives. These registry keys will be added based on the features installed on the server.

A Windows Server with a GUI will have ServerCore, ServerCoreExtended, Server-Gui-Mgmt, and Server-Gui-Shell registry keys as shown in the following screenshot. The Server Core will only contain the ServerCore registry key.

There′s more...

You can also use Server Manager from a local or remote machine to add or remove a feature on a server. The Deployment Image Servicing and Management (DISM) command Enable-WindowsOptionalFeature –online -Featurename ServerCore-FullServer, Server-Gui-Shell, Server-Gui-Mgmt can also be used to install additional features on a server.

Configuring Windows Server 2012 (Must know)

After the initial server installation, you need to configure the server with correct IP address, name, and so on before you start deploying new roles onto this server. Most of these components can be configured using Control Panel or Server Manager, which can be directly opened from the Start window of the server. As an Administrator, you need to get familiarized with the new Start window and Server Manager, so I would recommend you to configure these tasks using these options.

Getting ready

The following are some of the recommended administrative tasks which you can include in your server configuration checklist:

  • Configure a static IP address, disable used network card, and so on
  • Rename the default computer name
  • Change/validate the time zone
  • Activate the operating system
  • Install updates and patches
  • Install an antivirus software
  • Enable RDP/remote administration options
  • Join the computer to the domain

Note

Some of these tasks can be automated through domain/Group Policy Objects or some other deployment mechanism.

The configuration options for the Server Core are the same as in Windows Server 2008 and Windows Sever 2008 R2.

How to do it...

  1. Log on to Windows Server 2012 Server with a GUI with administrative credentials.
  2. From the Start screen select Control Panel. As you can see in the following screenshot, most of these components can be configured using Control Panel.
    How to do it...

    Note

    Joining a Windows Server 2012 to your existing domain doesn′t require an Active Directory Schema upgrade. However, you need to upgrade the schema if you are planning to add Windows Server 2012 as a domain controller. You will see these details in the Active Directory migration (Must know) recipe of this book.

  3. The computer name and IP Address can be changed from Server Manager as shown in the following screenshot:
    1. From Server Manager, select Local Server in the left node.
    2. Change the Name, Workgroup, and so on from this window.
    How to do it...
  4. When you select the Computer name or Workgroup options from the Server Manager dashboard, it will bring up the old-fashioned System Properties window, where you can change the server properties.
  5. To configure Windows Server 2012 Server Core, enter the sconfig (Server Configuration) command from the command prompt.
  6. This will bring up the Server Configuration wizard as shown in the following screenshot. From this window, you can change Name, Workgroup, and so on.
    How to do it...

How it works...

The Server Manager in Windows Server 2012 Server with a GUI and sconfig (Server Configuration Wizard) in Windows Server 2012 Server Core, allows you to modify the default server name, IP address, and so on to customize the system based on your requirement.

There′s more...

Most of these configurations can also be completed using PowerShell. Since the primary scope of this book is about migrating from Windows Server 2008/R2 to Windows Server 2012, we won′t be including the detailed server configuration steps in this book.

I believe now we have a fully functional Windows Server 2012 in the existing Active Directory domain. The next recipe will cover some of the basic administration tasks before we explain the migration procedure in the later recipes of this book.

Installing administration tools (Must know)

In this recipe, we will explain the new features and options available in Windows Server 2012 to manage and administer remote or local servers. This recipe also covers some of the deployment tasks that are relevant for migrating Windows Server 2008/R2 to Windows Server 2012.

Getting ready

Like other operating systems, Remote Server Administration Tools (RSAT) is available in Windows Server 2012 also. This tool pack includes administration tools, PowerShell cmdlets, and other utilities to manage and administer local and remote servers. This is a feature in Windows Server 2012. It can be added by using the Add Roles and Features wizard from Server Manager.

In this recipe, I will explain a procedure to deploy Remote Server Administration Tools.

How to do it...

  1. Open Server Manager.
  2. From the Manage tab in the top-right section of the screen, select Add Roles and Features.
    How to do it...
  3. Click on Next in the Add Roles and Features Wizard window.
  4. In the Select Installation Type window, select Role-based or Feature-based installation. Click on Next.
  5. In the Select destination server window, select the Select a server from the server pool option and select the server names where you want to deploy the administrative tools. Click on Next.
  6. Click on Next on the Select server roles window.
  7. In the Select features window, select Remote Server Administration Tools. It will prompt you to add the required components such as IIS and so on. Click on Next.
    How to do it...
  8. In the Confirm Installation window, select the Restart the destination server Automatically if required option. Click on Install.
  9. You will see progress in the Installation Progress window. The window can be closed but the installation will continue in the background. You can get the status update in the notification section in the Server Manager window. You can also export the configuration into an XML file by selecting the Export Configuration Setting hyperlink in the bottom of the page.
  10. Click on Close when the installation finishes.

Note

The Remote Server Administration Tools (RSAT) can also be added using PowerShell cmdlet Add-WindowsFeature.

How it works...

In the background, Server Manager uses standard Windows Management Instrumentation (WMI), PowerShell, and the Distributed Component Object Model (DCOM) to add or remote roles and features to local or remote servers.

There′s more...

Most of these administrative tools will be added to the Start screen of the Windows Server 2012. Other tools can be opened by typing the command in the Start screen itself or you will see some of these administrative tools in the Tools menu in the Server Manager window as shown in the following screenshot:

There′s more...

The Remote Server Administration Tools is available for Windows 8 operating systems as a standalone executable application. This can be downloaded from the Microsoft website. It is available for both 32-bit and 64-bit systems.

Note

Remote management is enabled by default on all Windows Server 2012 servers. You can change this configuration from server properties hyperlink.

Working with Server Manager properties (Should know)

In Windows Server 2012, understanding the Server Manager dashboard and its capabilities are essential for an administrator to efficiently manage the servers. The Server Manager starts automatically on a Windows Server 2012 server when the user has local administrator permission. You can change this default behavior by modifying the properties. These details are explained in the following recipe.

If the Server Manager does not open automatically, you can manually open it from the taskbar by clicking on the Server Manager icon as shown in the following screenshot:

Working with Server Manager properties (Should know)

By default, the Server Manager polls the information every 10 minutes. However, you can change this configuration from the Server Manager Properties window as explained in the following recipe.

How to do it...

  1. Open Server Manager.
  2. From the Manage tab on the top–right section of the screen, select Server Manager Properties.
  3. In the Server Manager Properties window, you can change the refresh period in minutes.
  4. You will also see an option to disable the Server Manager startup option during the system restart.
    How to do it...

    Note

    You can manually refresh the status by using the refresh button on the Dashboard.

    How to do it...

How it works...

The Server Manager Properties window allows you to change the default time interval. The allowed values are from 1 to 14400 minutes. If you want to get a real-time alert, you can decrease the value.

There′s more...

You can manage Windows Server 2008 and Windows Server 2008 R2 from the Windows Server 2012 management console. However, the functionality will be limited. The Windows .NET Framework 4 and Management Framework 3 should be installed on the server running the Windows Server 2008 or Windows Server 2008 R2 operating system in order to get the update from these servers onto the new Server Manager.

Adding servers to Server Manager (Should know)

In Windows Server 2012, you have an option to manually add servers to the Server Manager. The following recipe explains this procedure.

How to do it...

  1. Open Server Manager.
  2. From the Manage tab on the top-right section of the screen, select Add Server.
  3. You can add servers from the Active Directory, DNS, or Import tab as shown in the following screenshot:
    How to do it...
  4. Select the appropriate servers using the right arrow button and click on OK. You will see these new servers in the Server Manager dashboard.

    Note

    At a later stage, unwanted servers can be removed from the list by right-clicking and selecting the Remove Server option from the Server Manager dashboard.

    How to do it...

How it works...

The Server Manager uses XML-based configuration files to maintain the list of the servers. These configurations and custom settings are stored in the %appdata%\Microsoft\Windows\ServerManager\ServerList.xml and %appdata%\Microsoft\Windows Client\1.0\user.config files. These settings can be exported to other servers by copying these files to other servers.

Creating server group (Should know)

With the new server group concept, you can now manage and administer local and remote servers based on roles, features, or custom categories. Server group supports Windows Server 2012, Windows Server 2008/R2, and Windows Server 2003 operating systems (OS). The following recipe explains these procedures.

How to do it...

  1. Open Server Manager.
  2. From the Manage tab on the top right, select Create Server Group.
  3. Enter a name for the group in the Server Group Name box.
  4. You can add servers from the Active Directory, DNS, or Import tab.
  5. Select the appropriate servers using the right-hand side arrow button and click on OK. You will see this new group in the Server Manager dashboard.
  6. More servers can be added to an existing server group by selecting the Edit Server Group option from the Server Manager dashboard.
    How to do it...

How it works...

The server group is a logical classification based on the properties of a server. When you add or remove groups, the XML configuration files will get updated to maintain the local list.

Enabling remote desktop (Should know)

The Remote Desktop Protocol (RDP) is a common method used in server administration. In Windows Server 2012, the new Server Manager is capable of remotely managing multiple servers. However, in certain instances, the administrators have to remotely login to these servers using a remote desktop connection. This procedure is explained in the following recipe:

How to do it...

  1. From the Start window, right-click My Computer and select Properties.
  2. This will bring up the old-fashioned System Properties page.
    How to do it...
  3. Select Remote Settings from the left-hand side page.
  4. From the Remote tab, you can modify the remote desktop configuration.

Note

You can directly open the System Properties window from the command prompt by typing the Systempropertiesremote.exe command.

Shadowing a remote administration session is not supported in Windows Server 2012.

How it works...

The preceding procedure modifies the remote desktop properties and enables the remote access capabilities on the server.

Add and remove roles and features (Must know)

Additional roles and features can be deployed onto local or remote machines using the same procedure described in the Installing Administration Tools (Must know) recipe of this book. In this recipe we will explain a procedure to remove roles and features using Server Manager.

How to do it...

  1. Open Server Manager.
  2. From the Manage tab, select the Remove Roles and Features option.
    How to do it...
  3. Click on Next on the Remove Roles and Features Wizard window.
  4. In the Select Destination Server window, select the Select a server from the server pool option and select the appropriate server name and click on Next.
  5. Click on Next in the Select server roles window.
  6. Select the appropriate server roles. In this example I am planning to remove graphical tools. So in the Remote Features window, uncheck Graphical Management Tools and Infrastructure and Server Graphical Shell. Uninstalling Graphical Management Tools and Infrastructure will automatically uninstall Server Graphical Shell and Windows PowerShell ISE. Click on Next. Server Manager will automatically detect the dependent software and uninstall them if necessary.
  7. On the Confirm Removal selection, select Restart the destination Server automatically if required checkbox and accept the warning message. Click on Remove.

How it works...

The preceding procedure adds or removes roles and features from a local or remote server. You can deploy multiple roles and features to multiple servers using this procedure.

There′s more...

In the previous 10 recipes, I have explained the Windows Server 2012 installation, configuration, and administration details. With this knowledge, it is now time for you to prepare and migrate your existing environment using Windows Server 2012. In the next few recipes, I will be explaining the details of migrating all services from the current operating system into Windows Server 2012.

Active Directory migration (Must know)

We will start with the Active Directory migration. At this point, we have the proven migration plan and tested all procedures in the lab.

Getting ready

The following prerequisites have to be met before we can introduce the first Windows Server 2012 Domain Controller into the existing Active Directory domain:

  • In order to add a Windows Server 2012 Domain Controller, the Forest Functional Level (FFL) must be Windows Server 2003.
  • ADPREP is part of the domain controller process and the schema will get upgraded during this process. So the account must have the Schema and Enterprise admins privileges to install the first Windows Server 2012 Domain Controller.
  • If there is a firewall between the new server and the existing domain controllers, make sure all the RPC high ports are open between these servers. The domain controller installation and replication can be controlled by a static or a range of RPC ports by modifying the registry on the domain controllers.
  • The new Windows 2012 server′s primary DNS IP address must be the IP address of an existing domain controller.
  • The new server must be able to access the existing Active Directory domain and controllers by NetBIOS and Fully Qualified Domain Name (FQDN).
  • If the new domain controller will be in a new site or in a new subnet, make sure to update the Active Directory Sites and Services with this information.

In Windows Server 2012, domain controllers can be remotely deployed by using the Server Manager. The following recipe provides the step-by-step instructions on how to deploy a domain controller in an existing Active Directory environment.

How to do it...

  1. Install and configure a Windows Server 2012. Refer to the recipes Installing Windows Server 2012 (Must know) and Configuring Windows Server 2012 (Must know) for more details.
  2. Join the new Windows Server 2012 to the existing Active Directory domain. Refer to the recipe Configuring Windows Server 2012 (Must know) for more details.
  3. Open Server Manager. Navigate to the All Servers group in the left-hand side pane.
  4. From the Server Name box, right-click on the appropriate server and select the Add Roles and Features option. You can also select Add Roles and Features from the Manage menu in the command bar. If the correct server is not listed here, you can manually add it from the Manage tab on the top right-hand side and select Add Server.
    How to do it...
  5. Click on Next on the Welcome window.
  6. In the Select Installation Type window, select Role based or Feature based installation. Click on Next.
  7. In the Select destination server window, select Select a server from the server pool option and the correct server from the Server Pool box. Click on Next.
    How to do it...
  8. On the Select server roles window, select Active Directory Domain Services. You will see a pop-up window to confirm the installation of Group Policy Management Tool. It is not required to install the administrative tools on a domain controller. However, this tool is required for the Group Policy Object management and administration. Click on Next.
    How to do it...
  9. Click on Next in the Select features window.
  10. Click on Next on the Active Directory Domain Services window.
  11. In the Confirm Installation Selections window, select the Restart the destination server automatically if required option. In the pop-up window click on Yes to confirm the restart option and click on Install. This will begin the installation process.
  12. You will see the progress on the installation window itself. This window can be closed without interrupting the installation process. You can get the status update from the notification section in the command bar as shown in the following screenshot:
    How to do it...
  13. The Post-deployment Configuration option needs to be completed after the Active Directory Domain Services role installation. This process will promote the new server as a domain controller.
  14. From the notification window, select Promote this server to a domain controller hyperlink.
  15. From the Deployment Configuration window, you should be able to:
    • Install a new forest
    • Install a new child domain
    • Add an additional domain controller for an existing domain
    • Specify alternative credentials for the domain controller promotion, and so on
  16. Since our goal is to install an additional domain controller to an existing domain, select the Add a domain controller to an existing domain option. Click on Next.
    How to do it...
  17. In the Domain Controller Options window, you will see the following options:
    • Domain Name System (DNS) server
    • Global Catalog (GC)
    • Read only Domain controller (RODC)
    • Site name:
    • Type the Directory Service Restore Mode (DSRM) password
    How to do it...
  18. Select Domain Name System (DNS) server and Global Catalog (GC) checkboxes and provide the Directory Services Restore Mode (DSRM) password. Click on Next.
  19. Click on Next on the DNS Options window.
  20. In the Additional Options window you will see the following options:
    • Install from media
    • Replicate from
  21. Accept the default options unless you have technical reasons to modify these. Click on Next.
    How to do it...
  22. In the Paths window, you can specify the AD Database, Log, and SYSVOL locations. Select the appropriate locations and then click on Next.

    Note

    Review the Microsoft Infrastructure Planning and Design (IPD) guides for best practices recommendations. For performance improvements, it is recommended to place database, log, and so on in separate drives.

  23. Click on Next on the Preparation Options window. During this process the Active Directory Schema and Domain Preparation will happen in the background.
  24. You should be able to review the selected option on the next screen. You can export these settings and configurations to a PowerShell script by clicking on the View Script option in the bottom-right corner of the screen. This script can be used for future domain controller deployments.
    How to do it...
  25. Click on Next to continue with the installation.
  26. The prerequisite checking process will happen in the background. You will see the result in the Prerequisites Check window. This is a new enhancement in Windows Server 2012. Review the result and click on Install.
    How to do it...
  27. The progress of the domain controller promotion will display on the Installation window.
  28. The following warning message will be displayed on the destination server before it restarts the server:
    How to do it...

Note

You can review the %systemroot%\debug\dcpromo.log and %SystemRoot%\debug\netsetup.log log files to get more information about DCPROMO and domain join-related issues.

How it works...

The preceding process adds an additional domain controller in the exiting Active Directory forest. At this time the current Active Directory environment has both Windows Server 2008/R2 and Windows Server 2012 domain controllers. This is technically called a mixed mode environment. The Server Manager will be updated with the new roles and features on this server as shown in the following screenshot:

How it works...

There′s more...

If you are planning to perform an in-place upgrade of a domain controller (the first Windows Server 2012 Domain Controller), the Active Directory Schema and Domain Preparation (ADPREP) commands need to be run manually. The ADPrep.exe tool is available in the D:\Support\Adprep\ folder in the Windows Server 2012 installation media. Keep in mind that the ADPREP tool is only available in a 64-bit version. After the schema upgrade, the schema version can be manually verified by using the following dsquery command:

dsquery * cn=schema,cn=configuration,dc=domain,dc=com -scope base -attr objectVersion
There′s more...

The objectVersion value is 56 for the Windows Server 2012 schema.

Note

You can also identify objectVersion based on the LDIF filename. The latest Sch56.ldf filename indicates that schema version as 56. Their files are available in the D:\Support\Adprep\ folder.

The Group Policy Preparation (/gprep) is not a requirement while adding Windows Server 2012 Domain Controllers to the existing domain. However, in order to use the Result Set of Policy (RSoP) in planning mode, the /gprep process needs to be completed by using the adprep/gpprep command. The Read Only Domain Controller Preparation (adprep /rodocprep) process needs to be completed before you can add the Read Only Domain Controllers (RODC).

Note

You can review the ADPREP log file (%windir%\System32\Debug\Adprep\Logs) to get more information about ADPREP-related issues.

The health of the domain controller and domain can be verified by using native tools such as DCDiag. Microsoft has a new tool called ADRELSTATUS (Active Directory Replication Status Tool) to verify and monitor Active Directory replication. As a best practice it is recommended to have multiple domain controllers for the same domain. You can use the same procedure to add more domain controllers. It is also recommended to install Remote Server Administration Tools on a Windows 8 machine to administer Active Directory instead of directly logging on to a domain controller.

FSMO role transfer/migration (Must know)

Transferring or migrating a Flexible Single Master Operations (FSMO) role is not a requirement at this point. However, some of the new features in Windows Server 2012 such as cloning of virtual domain controllers, and so on, won′t be available until the PDC emulator (PDCe) role is transferred to a Windows Server 2012 Domain Controller. To take advantage of improvements in RID Master, this role must be running on Windows Server 2012 Domain Controller. The placement and optimization of FMSO roles is beyond the scope of this book. For this scenario, we will be moving all FMSO roles (Schema, Domain Naming Master, PDCe, Infrastructure Master, and RID) to a new Windows Server 2012 Domain Controller.

How to do it...

Using PowerShell:

  1. Log on to Windows Server 2012 and open the PowerShell window.
  2. In the PowerShell window enter the following cmdlet:
    Move-ADDirectoryServerOperationMasterRole -Identity "DCName″ -OperationMasterRole SchemaMaster,DomainNamingMaster,PDCEmulator,RIDMaster,InfrastructureMaster
    
  3. To confirm the FSMO transfer, press Y.
    How to do it...

Using MMC:

  1. Log on to the Windows Server 2012 Server or Windows 8 machine and open the Active Directory User and Computers (ADUC) MMC.
  2. Right-click on the domain name and select Operations Masters….
  3. In the Operations Masters tab, click on the Change button to transfer the FMSO role to the new Windows Server 2012 Domain Controller. Repeat these steps for transferring the PDC emulator and Infrastructure Master roles.
    How to do it...

The forest-specific role—Domain Naming Master—can be transferred using Active Directory Domains and Trust MMC.

  1. Log on to the Windows Server 2012 or Windows 8 machine and open the Active Directory Domains and Trust console.
  2. Right-click on the Active Directory Domains and Trust node and select Operations Master….
  3. In the Operations Master tab click on the Change button to transfer the Domain Naming Master FMSO role.

The forest-specific role—Schema Master FMSO—can be transferred using the Active Directory Schema MMC. You may need to register schmmgmt.dll using the regsvr32 schmmgmt.dll command in order to view the Active Directory Schema MMC.

  1. Log on to the Windows Server 2012 or Windows 8 machine and open the Active Directory Schema console.
  2. Right-click on the Active Directory Schema node and select Operations Master….
  3. In the Operations Masters tab, click on the Change button to transfer the Schema Master FMSO role.
How to do it...

How it works...

The Move-ADDirectoryServerOperationMasterRole PowerShell cmdlet is part of the Active Directory PowerShell module. Instead of using FSMO roles, you could use numeric values. For example, 0 for PDC emulator, 1 for RID Master, 2 for Infrastructure Master, 3 for Schema Master, and 4 for Domain Naming Maser.

There′s more...

Alternatively, the NTDSUTIL tool can be used to transfer the FSMO roles. The domain-specific roles—RID, PDC, and Infrastructure Master—can be transferred using the Active Directory User and Computer (ADUC) tool.

The FSMO roles can be verified using the Netdom Query FSMO command as shown in the following screenshot:

There′s more...

The following PowerShell cmdlet can also be used to verify the FMSO roles:

Get-ADDomain domain.com | Format-List PDCEmulator,RIDMaster,InfrastructureMaster
Get-ADForest domain.com | Format-List SchemaMaster,DomainNamingMaster

Note

The Get-ADDomain PowerShell cmdlet is part of Active Directory PowerShell module.

Windows Server Migration Tools (Must know)

Some of the migrations can be accomplished by using native and built-in tools. So far we were using the built-in tools to migrate these services. Microsoft has included the latest version of the Windows Server Migration Tools in Windows Server 2012. We will be using this tool in the rest of the migrations. These are PowerShell cmdlets and are part of the Windows Server Migration Tools PowerShell module. In Windows Server 2008 and Windows Server 2008 R2, the source and target server have to be in the same subnet to migrate data using this tool. However, the new version of the Server Migration tool supports cross-subnet migrations. The TCP and UDP ports 7000, 7001, and 7002 must be open between source and target servers to support this scenario.

Getting ready

The following key PowerShell cmdlets will be used for this migration effort:

  • Export-SmigServerSetting: Export role, feature, and so on from the source server to a target server
  • Import-SmigServerSetting: Import role, feature, and so on from an export file
  • Send-SmigServerData: Send/migrate data and its associated permissions, properties, and so on from the source server
  • Receive-SmigServerData: Receive/copy data and its associated permissions, properties, and so on to the target server

It is time to install Windows Server Migration Tools on the Windows Server 2012. It is a best practice to use the latest version of the tool even if the older versions are available on the source servers.

How to do it...

  1. Log on to a Windows Server 2012.
  2. Open Server Manager. From Server Manager, install the Windows Server Migration Tools feature. Refer to the Add and remove roles and features (Must know) recipe for role and feature installation details.
    How to do it...
  3. From the Start screen, right-click on Command Prompt and select the Run as administrator option.
    How to do it...
  4. Change the directory to C:\Windows\System32\ServerMigraitonTool. Run the SmigDeploy.exe /Package /Architecture amd64 /os WS08 /Path /C:\MigTools\ command. This will create a migration tool package for 64-bit servers in the C:\MigTools folder.

    Note

    You can change the /architecture value to create an application package for 32-bit servers.

    How to do it...

Note

The SmigDeploy.exe tool creates a migration tool installation package. This package can be directly copied over to the source Windows Server 2008 and Windows Server 2008 R2 servers. Copy the C:\MigTools folder to a network share. We will be using this migration package for the rest of the migrations.

How it works...

Copy the C:\MigTools folder to a network share. For this scenario, I will be copying the C:\MigTools folder to the \\HOU-MGR-01 server and this will be referenced in the migrations described in this book.

There′s more...

At this point the Windows Server Migration Tools for a 64-bit server is available on a network share. This package can be copied to the source and target servers for the migration. No other configuration is required. The necessary parameters will be configured based on the role or feature that we will migrate.

If you have a 32-bit server, you can generate a 32-bit installation package by modifying the /Architecture parameter in the preceding command.

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:

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

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.
    How to do it...
  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:
    How to do it...

    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.
    How to do it...
  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.
    How to do it...
  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:

    How to do it...
  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.
    How to do it...
  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.

DNS migration (Should know)

If the DNS zone is Active Directory Integrated (ADI), the zone information will be replicated as part of the Active Directory replication. The scope of the replication is based on the Replication configuration in the zone itself as shown in the following screenshot:

DNS migration (Should know)

If the zone is Active Directory Integrated and the proper replication scope is configured, you don′t need to perform any other migration for the DNS zone. Both forward lookup and reverse lookup zones will replicate to the new Windows Server 2012 Domain Controller during the Active Directory replication.

However, if you have a primary or secondary zone on a standalone server or a member server, you need to perform a migration. There are many ways to achieve this. One option is to perform the migration using a secondary to primary conversion method. Then decommission the old DNS server. Before the DNS zone can be replicated, you need to make sure that the zone transfer is allowed to the new Windows Server 2012 server. These settings can be changed from the Zone Transfers tab as shown in the following screenshot:

DNS migration (Should know)

To migrate a DNS zone using the secondary to primary method, refer to the following recipe.

How to do it...

  1. Create a secondary zone on the new Windows Server 2012 server.
    1. Open the DNS Management console.
    2. Right-click on the Forward Lookup Zone node. Click on New Zone.
    3. Click on Next on the Welcome window.
    4. Select Secondary Zone as the Zone Type. Click on Next.
    5. Enter the zone name. Click on Next.
    6. On the Master DNS Servers window, enter the IP address of the primary DNS server.
    7. Click on Finish.
  2. Convert the secondary zone to primary zone.
    1. Verify that the zone information has been completely transferred over to the new server.
    2. Right-click on the zone and go to Properties.
    3. From the General Tab, click on Change. Select the zone type as Primary. Click on OK.
  3. Verify the Start of Authority (SOA) tab and make sure that the primary server is updated with your new Windows Server 2012 name.
    How to do it...
  4. Verify the Name Servers tab for name servers.
  5. Repeat the same procedure for other DNS zones and decommission the old DNS server.

How it works…

The preceding method creates a secondary DNS zone on Windows Server 2012 and converts them to a primary DNS zone after the zone replication. After the DNS zone conversion, Windows Server 2008/R2 and Windows Server 2012 servers will have the Primary DNS zone.

There′s more...

The other option is to use the dnscmd command. The following commands can be used to export and import zone information between two DNS servers:

Export - dnscmd /zoneexport <ZoneName> <ExportFileName>
Import - dnscmd /zoneadd /Primary /File < ExportFileName>

The dnscmd command is still available on Windows Server 2012. However, this command may be discontinued in the future versions of the product or release. So it is recommended to use the PowerShell cmdlet for the future use. The DnsServer PowerShell module has many cmdlets which can support DNS migration scenarios.

Unless you have valid business and technical requirements, it is a best practice to use the Active Directory Integrated zone. Also, you may want to look at the DNS Security Extensions (DNSSEC) in Windows Server 2012 and how it can be beneficial to your environment.

Data and file server migration (Must know)

File server or data migration can be achieved by migrating the data from the existing server using tools such as Microsoft Robocopy and Microsoft File Server Migration Tool (FSMT), or directly presenting the storage Logical Unit Number (LUNs) onto a new server. In this scenario, I will be explaining the data migration procedure using Windows Server Migration Tools. Send-SmigServerData and Receive-SmigServerData are the two PowerShell cmdlets that we will use for this migration.

The Send-SmigServerData cmdlet, as it sounds, is responsible for sending (migrating) data from the source server. This tool can migrate folders, files, permission, share, and so on. However, it doesn′t support migrating any Encrypted File Systems (EFS). Unlike other cmdlets in the Windows Server Migration Tools, the Send-SmigServerData cmdlet does not store the data in a staging area or an export file. It will directly copy over to the target server. So the required ports (7000, 7001, and 7002) must be open between the source and target servers. The Receive-SmigServerData cmdlet has to be running on the target server to be able to receive the migrated data. The Send-SmigServerData and Receive-SmigServerData cmdlets have to be running on the source and target servers at the same time. The default time out value is five minutes, but this value can be changed by modifying the registry.

For this migration, we need to run the Send-SmigServerData cmdlet on the source server and Receive-SmigServerData cmdlet on the target server. The following diagram graphically represents the high-level tasks:

Data and file server migration (Must know)

The following recipe explains the data migration procedure.

How to do it...

  1. Log on to the source file server and copy the previously created Windows Server Migration Tools package from the \\HOU-MGR-01\MigTools folder to C:\MigTools folder on the local server.
  2. Open Command Prompt with elevated privilege and navigate to C:\MigTools.
  3. From the C:\MigTools folder, give the SmigDeploy.exe command. This will register the Windows Server Migration Tools on the server and open a PowerShell window as shown in the following screenshot:
    How to do it...
  4. If you close the PowerShell window by mistake, you can re-open it from the Windows Server Migration Tools menu in Administrative Tools.
  5. At this time you need to make sure that the users are not connected to the file server or are not accessing the data from this server. If you have any backup or any other software running on this server, make sure to disable them during the migration process.
  6. Run the following cmdlet from the PowerShell window to initiate the migration process:
    Send-SmigServerData -ComputerName server12-demo1 -SourcePath ″D:\Hou-Fil-Data-01″ -DestinationPath ″C:\Data\″ -Recurse -Include All –Force
    
    How to do it...

    In the preceding command, –ComputerName is the target file server, -SourcePath is the location of the source data, and you also need to specify the destination location on the target server by using the –DestinationPath parameter. You have the following three options that can be used with the –Include parameter:

    • All: This migrates data and share
    • Data: This copies only the files and folders and their associated permission
    • Share: This copies only the share properties and permission

    The –Force parameter overwrites the existing files on the target server if the source files are current.

    It will prompt you for a password. Once it accepts the password you will have five minutes to run the Receive-SmigServerData cmdlet on the target server. As you can see in the following screenshot, the source server is waiting for the destination server request to transfer the data.

    How to do it...
  7. Log on to the target Windows Server 2012 file server. Copy the Windows Server Migration Tools package from \\HOU-MGR-01\Migtools to the C:\MigTools folder.
  8. Open Command Prompt with elevated privilege and navigate to C:\MigTools.
  9. From the C:\MigTools folder, type the SmigDeploy.exe command. This will register the Windows Server Migration Tools on the source server and open a PowerShell window.
  10. From the PowerShell command window, type the Receive-SmigServerData cmdlet. It will prompt you for the same password which you used on the source server.
    How to do it...
  11. Once the password is validated, it will copy the data from the source server.
    How to do it...
  12. A migration summary report will be generated as shown in the following screenshot:
    How to do it...

How it works...

Once you have validated the data between the source and target servers you can decommission the old file server. If drive mapping or shares are enabled through Group Policy Object or Group Policy Preference, the policies will have to be updated with the new server name.

Printer and print server migration (Must know)

For migrating printers from a Windows Server 2008 or Windows Server 2008 R2 server to Windows Server 2012, we will be using the Print Management console. This administration tool is part of the Print and Document Services role in Windows Server 2012. This tool can be used to migrate printers from both x86 and x64 servers. If you are migrating printers from a 32-bit server, make sure to install 64-bit drivers prior to the migration. The print drivers, queues, shares, directory listing, and security settings can be migrated using this migration tool. During the migration you will have an option to list (publish) these printers in Active Directory. So if these printers were listed in Active Directory previously, the migration utility can maintain the same configuration after the migration.

The following diagram graphically represents all the high-level tasks:

Printer and print server migration (Must know)

How to do it...

The following steps will help you migrate printers using the print management console:

  1. Log on to the new Windows Server 2012 server.
  2. Open Server Manager and install the Print and Document Services role. Refer to the Add and remove roles and features (Must know) recipe for role and feature installation details.
    How to do it...
  3. On the Select role services window, select the Print Server service. Click on Next and complete the role installation.
    How to do it...
  4. Open the Print Management console from the Start screen.
  5. Right-click on the Print Management node and select the Migrate Printers… option.
    How to do it...
  6. Select Export printer queues and printer drivers to a file option and click on Next.
    How to do it...
  7. On the Select a print server window, select the source print server in the Server name box. Make sure that the account you are using can access the source server from the target server and has full permission on both servers. Click on Next.
    How to do it...
  8. The discovery process will identify Print Queues, Print Drivers, and Printer Processors. You will see this information in the Review the list of items to be exported window. Review the items and click on Next to continue.
  9. In the Select file location window, select a destination folder. Click on Next. You will see the progress in the next window. You can also open Printer Migration Events in Event Viewer to get more details as shown in the following screenshot:
    How to do it...
  10. Click on Finish to complete the export process.
  11. The next step is to import these printers onto the new Windows Server 2012 print server. Right-click on the Print Management node and select the Migrate Printers… option.

    Note

    You can also start the import process by double-clicking the printer export file (.Printer.Export).

  12. This time, select Import printer queues and printer drivers from a file. Click on Next.
    How to do it...
  13. In the Select the file location window, select the export file. Click on Next.
  14. The printer information can be reviewed in the Review the list of items to be imported window. Click on Next.
  15. In the Select a print server window, select the destination Windows Server 2012 print server. Click on Next.
    How to do it...
  16. In the Select import options window, you have the fields Import mode and List in the directory:
    1. In Import mode we have Keep existing printers and Overwrite existing printers. Since we are migrating into a new print server, our assumption is that we don′t have any printers available on this new server. So we will select the Overwrite existing printers option.
    2. In List in the directory we have List printers that were previously listed, List all printers, and Do not list any printers. For this scenario, we will select the List printers that were previously listed option. This will automatically update the Active Directory with the new print server information.
    3. Click on Next to start the import process.
    How to do it...
  17. Click on Finish to complete the process.

How it works...

At this point all the printers are migrated onto the new printer server. The migration log and Event Viewer will provide more information about the migration process and result. If you don′t see any errors in any of these logs, you can start decommissioning the old print servers. If the printer mappings or automatic deployment of printer are configured through Group Policy Object or Group Policy Preference, these policies should to be updated with the new printer server information.

There′s more...

Instead of using the Print Management console, you could use the Printbrm.exe command line tools to achieve the same result. By default, these tools are located in the C:\Windows\System32\spool\tools folder. The Printbrm.exe -s <\\SourceServer> -b -f <File> command will export the printers from the source server and the Printbrm.exe -s <\\TargetServer> -r -f <File> command will import printers into the target server.

Hyper-V migration (Should know)

As you know, in Windows Server 2008 or Windows Server 2008 R2, an export file was a requirement before it can be imported onto a new Hyper-V server. I am sure you are all familiar with the following error message in Windows Server 2008/R2 if the export file is not available:

Hyper-V migration (Should know)

In Windows Server 2012, Microsoft supports importing virtual machines (VM) into a Hyper-V host without an export (.exp) file. In other words, you can use raw Hyper-V files from the source server. The import and export feature is also available.

Installation and configuration of Windows Server 2012 Hyper-V is beyond the scope of this book. So for this migration scenario, the assumption is that the target Windows Server 2012 Hyper-V servers are in place and running. Before you begin the export and import process, you need to make sure that the local or network share has enough storage space to accommodate these virtual machines. Another common issue related to virtual machine migration is the permission issues. The export/import folder must have full permission for the user and computer account.

The following diagram provides high level task details:

Hyper-V migration (Should know)

We will start the migration process without an export file.

How to do it...

  1. Shutdown the source Hyper-V guest machine.
  2. Log on to the target Windows Server 2012 Hyper-V server and open Hyper-V Manager from the Start screen.
  3. Right-click on the Hyper-V host server node and click on the Import Virtual Machine option.
    How to do it...
  4. In the Before You Begin window click on Next.
  5. In the Locate Folder window, specify the location of the existing virtual machine from the source server. Click on Next.
    How to do it...
  6. On the Select Virtual Machine window, select the correct server name. Click on Next.
  7. You will see the following options on the Choose Import Type window:
    1. Register the virtual machine in-place (use the existing unique ID)
    2. Restore the virtual machine (use the existing unique ID)
    3. Copy the virtual machine (create a new unique ID)
  8. Click on Next.
    How to do it...
  9. In the Choose Folders for Virtual Machine files window, you can change the default location of the Configuration, Snapshot store, and Smart Paging folders. Click on Next.

    Note

    The Smart Paging is part of the dynamic memory feature in Hyper-V 3.0. It provides an efficient memory management option during the server restart process if the minimum memory is less than the startup memory.

  10. In the Choose Folders to Store Virtual Hard Disks window, select the location of the hard disks. Click on Next.
  11. Review the configuration details on the Summary window. Click on Finish. The import process will start and you will see the progress in the Hyper-V manager console.

For some reason, you cannot directly import the Virtual Machines from the source server, the export and import method is also available in Hyper-V 3.0. The following steps explain the procedure of exporting a virtual machine from an existing Hyper-V server:

  1. Log on to the source Hyper-V server. Open Hyper-V Manager console.
  2. Shutdown the Hyper-V guest server.
  3. From the Virtual Machines column, select the virtual server you want to export.
  4. From the Action pane, select Export.
    How to do it...
  5. In the Export path window, enter the location for the export file. Click on Export.
  6. This process will generate an export (.exp) file which can be used to import virtual machines into the target Windows Server 2012 Hyper-V server.
  7. The import process is the same as mentioned previously in this recipe.
  8. Turn on the target guest machine and verify the settings.

How it works...

Depending on the network configuration, you may need to reconfigure the network settings for the new virtual server. Repeat the same procedure for the other virtual machines on the network to complete the migration.

There′s more...

If you are using VMWare, the Microsoft Virtual Machine Converter can be used to convert VMware servers into Hyper-V format. It is a standalone application and can convert the entire virtual machine, which includes the following:

  • Disk
  • Network
  • Configuration
  • Memory
  • Processor details, and so on

Decommissioning old domain controllers (Must know)

Before you can decommission the old domain controllers, you will need to make sure that no other servers or equipment are statically configured to use this server as the DNS server. If so, the DNS IP address needs to be updated with the IP address of the new Windows Server 2012 Domain Controller. The DCPROMO command can be used to remove the existing domain controllers from Active Directory.

How to do it...

  1. Log on to the existing domain controller. From the Run window, type DCPROMO.
  2. Click on Next on the Welcome to the Active Directory Domain Services Installation Wizard page.
  3. If the domain controller is a Global Catalog server, a warning message will appear. Click on OK.
  4. In the Delete the Domain window, click on Next. Do NOT select the Last Domain Controller in the Domain option.
  5. Click on Next on the Remove DNS Delegation window.
  6. It will prompt you for administrative credentials to remove the DNS delegation.
  7. In the Summary window, click on Next to continue the domain controller demotion process.
  8. In the Completing the Active Directory Domain Services Installation Wizard window, click on Finish.

How it works...

After the reboot, this server will be a member server in the Active Directory domain. The Active Directory Domain Services role can be uninstalled from this server at this point. The failed or orphaned domain controllers should be removed from the Active Directory database using the NTDSUtil utility. This process is called metadata cleanup.

Forest and domain functional level (Must know)

You need to understand the role of the forest and domain functional levels before it can be raised. Some of the new features will only be available when the forest or domain functional level is set to a certain state. For example, in Windows Server 2012, the Dynamic Access Control is only available when the domain functional level is set to Windows Server 2012. Also keep in mind that, after you configure the forest or domain function level to a certain value, you will not be able to revert it. There are some exceptions to this rule. If the Recycle Bin is not enabled, you can lower the forest functional level from Windows Server 2012 to Windows Server 2008 R2 or Windows Server 2008.

At this point, we have only Windows Server 2012 Domain Controller in the environment and I am not planning to add any down level domain controllers. So we can raise the domain and forest functional level to Windows Server 2012. The pre-Windows Server 2012 Domain Controllers cannot be added in Windows Server 2012 domain functional mode.

Note

The functional level can be lowered by using the Set-AdForestMode PowerShell cmdlet. For example, the Set-AdForestMode –identity domain.com –forestmode WindowsServer2008R2Forest cmdlets lowers the forest functional level to Windows Server 2008 R2 and the Set-AdForestMode –identity domain.com -domainmode WindowsServer2008R2Domain cmdlet lowers the domain functional level to Windows Server 2008 R2.

How to do it...

The following procedure can be used to raise the domain functional level:

  1. Open Active Directory Domain and Trust from a Windows Server 2012 server or Windows 8 Remote Administration Tools.
  2. Right-click on the domain and select Raise Domain Functional Level… option.
  3. In the Select an available domain functional level window, select Windows Server 2012 and click on Raise.
    How to do it...

The following procedure can be used to raise the forest functional level

  1. Open Active Directory Domain and Trust from a Windows Server 2012 server or Windows 8 Remote Administration Tools.
  2. From the Active Directory Domain and Trust console, right-click on the Active Directory Domain and Trust node and select Raise Forest Functional Level.
  3. In the Select an available forest functional level window, select Windows Server 2012 and then click on Raise.

How it works...

In the background, the Active Directory Domain Trust console changes the msDS-Behavior-Version attribute value. The msDS-Behavior-Version attribute controls which version of operating system can run on a domain controller within the forest and domain. The msDS-Behavior-Version value is 5 for Windows Server 2012.

There′s more...

Here is an example to verify the value of the msDS-Behavior-Version attribute using the dsquery command:

  • To identify forest functional level:
    dsquery * CN=Partitions,CN=Configuration,DC=domain,DC=com -scope base -attr msDS-Behavior-Version
    
  • To identify domain functional level:
    dsquery * DC=domain,DC=com -scope base -attr msDS-Behavior-Version
    
There′s more...
Left arrow icon Right arrow icon

Key benefits

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.
  • Install and configure Windows Server 2012 and upgrade Active Directory
  • Decommission old servers and convert your environment into the Windows Server 2012 native environment
  • Walks you through different migration scenarios based on the author's own experience, providing a step-by-step guide to solving real-world business problems

Description

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.

Who is this book for?

This book is intended for Windows server administrators who are performing migrations from their existing Windows Server 2008 / 2008 R2 environment to Windows Server 2012. The reader must be familiar with Windows Server 2008.

What you will learn

  • Install and configure the Windows Server 2012
  • Learn the administration of Windows Server 2012
  • Master Active Directory Migration, DNS Migration, and DHCP Migration
  • Follow step-by-step instructions on data and file server migration
  • Learn about printer and print server migration
  • Discover how to implement Hyper-V migration
  • Explore Infrastructure services (DNS, DHPC, and so on) and File and Printer server migration scenarios

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 23, 2013
Length: 84 pages
Edition : 1st
Language : English
ISBN-13 : 9781849687447
Vendor :
Microsoft
Concepts :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Jan 23, 2013
Length: 84 pages
Edition : 1st
Language : English
ISBN-13 : 9781849687447
Vendor :
Microsoft
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just NZ$7 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just NZ$7 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total NZ$ 214.97
Windows Server 2012 Automation with PowerShell Cookbook
NZ$89.99
Windows Server 2012 Hyper-V Cookbook
NZ$80.99
Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to
NZ$43.99
Total NZ$ 214.97 Stars icon
Banner background image

Table of Contents

1 Chapters
1. Instant Migration from Windows Server 2008 and 2008 R2 to 2012 How-to Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4
(9 Ratings)
5 star 66.7%
4 star 11.1%
3 star 22.2%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Fabrizio Sep 09, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer: as a (former) Directory Services MVP I know Santhosh and I appreciate his work.Anyway, my positive review is based on actually reading the book, and not on the professional trust I have in the author.Migrating from an Operating System to another one is always a not trivial task.As an IT professional, it is required to upgrade your skills before upgrading your servers.A book like the one Santhosh wrote is good both as a reference and to provide hints that only a senior IT pro, with a lot of first hand expertise on Windows and Directory Services, is able to know.For sure, searching on the Internet you could find a part of the information in the book, and still the logical order in which the author presented the various topics will be important to obtain the best results.All the basic services, and less known aspects like Hyper-V migration, are in the text,with quick and handy recipes to work on your deployment with confidence.It is a really good book, and you will feel the quality that the author has tried to put in the few pages he had at his disposal.
Amazon Verified review Amazon
mweb Feb 20, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Upgrading from Windows Server 2008/R2 to Windows Server 2012 isn't that difficult following the chapters from this great book.You get details about the new view and handling with the GUI changes within Windows Server 2012. Even the main part is manageable with Windows PowerShell (and should be done from my point of view to get firm with it) the author takes action to keep it as simple as possible to use the old style/way to configure/administrate the new Server Operating system wherever possible.Details about Server grouping and the new Server manager which allows the complete Server management from a single console is important and that way described in detail before starting with the main part of upgrading the Operating systems and server roles.Going on with the Add-Remove roles and features you get the information's about the wizard handling to prepare the local or remote servers.Starting AD migration goes in depth on with news about adprep.exe and the wizards to have an easy migration. In detail you get the important information about FSMO roles placement on new OS DC and not leaving them on the old OS DC to have new features/options available.Another great described feature are the migration tools delivered with the Operating system. Easy to handle and a free option also. You'll find DHCP, DNS, File, Print server and Hyper-V server migration and tips about.The last chapters about the decommissioning from old no longer needed DCs and the functional level raising from forest and domain functional levels.
Amazon Verified review Amazon
SummerM Feb 21, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a very well written book. The Author fabulously hand holds users and assists them with installing, configuring and updating to Windows Server 2012. He provides thorough coverage of many of the new features of this exciting new release. It's a great introduction for anyone who wants to get up to speed fast.
Amazon Verified review Amazon
Richard Mueller Feb 28, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
An excellent guide for migrating to Windows Server 2012. Exactly what an administrator needs, with step-by-step instructions and screen shots. Demonstrates the new Server Manager features, wizards, and ADUC. This book has everything needed for a complete migration of all services and roles to the new operating system. Also includes useful command line statements and how to use the new PowerShell cmdlets. This is important information because the process of migrating is much improved from earlier versions.Richard MuellerMicrosoft Directory Services MVP
Amazon Verified review Amazon
Fabrizio Jul 10, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book has always a hands-on approach and is easy to read.The structure based on the "recipes" really works.If you want to jump from one topic to another, because you do not need to carry out all the steps or you want to migrate only a part of the infrastructure to Windows 2012, the structure is useful.The real-world experience of Santhosh is an added value compared to many textbooks and articles available from other sources.A commendation to the language intentionally accessible also to less experienced IT Pro.I would recommend reading this book to anyone wanting to begin a migration to Windows 2012.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.