Chapter 2. Deploying Windows Server 2012 R2

Getting a quick start

Product licensing

Preparing for a Windows Server 2012 R2 installation

Installing Windows Server 2012 R2

Performing additional administration tasks during installations

Troubleshooting installation

Postinstallation tasks

Microsoft Windows Server 2012 R2 supports only 64-bit architecture. You can install the operating system only on computers with 64-bit processors. You are likely to find yourself installing Windows Server 2012 R2 in various circumstances—a new installation for a new system, an upgrade of an existing Microsoft Windows installation, or perhaps even a new installation into a multiboot environment. You might need to install just a few systems, or you might need to deploy hundreds—or even thousands—in a diverse network environment.

In this chapter, I discuss the things you should know to help you prepare for and perform installations. The way you deploy Windows servers will depend on your objectives and requirements. Windows Server 2012 R2 supports both interactive and automated setup processes, providing flexibility in how you install and configure the operating system. You can even fully automate the installation of a basic or fully configured operating system on a brand-new computer to ease the administrative burden in large deployments, and an automation tool such as System Center Configuration Manager 2012 R2 can help you do that.

Getting a quick start

To install Windows Server 2012 R2, you can boot from the Windows distribution media, run Setup from within your current Windows operating system, perform a command-line installation, or use one of several automated installation options.

In performing the installation, there are two basic approaches to setting up Windows Server 2012 R2: interactively or as an automated process. An interactive installation is what many people regard as the regular Windows installation—the kind in which you walk through the setup process and enter a lot of information. It can be performed from distribution media (by booting from the distribution media or running Windows Setup from a command line). The default Windows setup process when booting from the retail Windows Server 2012 R2 DVD is interactive, prompting you for configuration information throughout the process.

There are several types of automated setup, which actually have administrator-configurable amounts of user interaction. The most basic form of unattended setup you can perform is an unattended installation using only answer files. To take unattended setup a step further, you can use your unattended answer files with Windows Deployment Services (WDS). In either case, the answer file contains all or part of the configuration information usually prompted for during a standard installation process. You can author unattended answer files by using Windows System Image Manager (SIM).

Windows Deployment Services supports installation of desktop and server systems by using Windows Imaging (WIM) and Virtual Hard Disk (VHD) images. VHD images can be formatted using either fixed .vhd files or dynamically expanding .vhdx files. For full automation, you can use System Center Configuration Manager 2012 R2.

The standard Setup program for Windows Server 2012 R2 is Setup.exe. You can run Setup.exe from within the Windows operating system to upgrade the existing operating system or to install Windows Server 2012 R2 to a different partition. The command-line switches on the Windows Setup programs offer you additional options for configuring the installation process. The general installation parameters include the following:

  • Setup /addbootmgrlast. The /addbootmgrlast option adds the Windows Boot Manager as the last entry in the Unified Extensible Firmware Interface (UEFI) firmware boot order. This option is supported only on computers with UEFI running Windows Preinstallation Environment (PE) 4.0 or later.

  • Setup /m:folder_name. The /m:folder_name option sets an alternate location for files to be used by Setup during the installation process—during setup, the alternate location is searched first, and files in the default location are used only if the installation files are not found in the specified alternate location.

  • Setup /noreboot. The /noreboot parameter prevents the rebooting of the system upon completion of the file copy phase. This option is used to allow other commands or operations to be performed after the files have been copied, but it’s used prior to further Setup phases.

  • Setup /tempdrive:drivepath. The /tempdrive:drivepath parameter designates the hard disk drive location where the temporary installation files will be placed.

  • Setup /unattend:answer_file_path. The /unattend:answer_file_path parameter, when used with an answer file, instructs Setup to do an unattended new installation (a fresh installation as opposed to an upgrade) based on the values specified in the answer file. The answer file can contain all or part of the configuration information for which the installation process normally prompts the user.

Product licensing

As discussed in Chapter 1 in the Getting to know Windows Server 2012 R2 section, there are four main editions of Windows Server 2012 R2: Foundation, Essentials, Standard, and Datacenter. Although the Windows Server Foundation and Windows Server Essentials editions are for small businesses, the Windows Server Standard and Windows Server Datacenter editions are for any organization that needs a full-featured server.

Licensing for Windows Server 2012 R2 has two aspects: server licenses and client access licenses (CALs). Each installation of Windows Server 2012 R2 on a computer requires appropriate server licensing.

Each server license can be assigned to only a single physical server, and licensing requirements are based on the number of physical processors installed and the number of virtual instances the server runs. All the physical processors on a server must be licensed with the same version and edition of Windows Server 2012 R2.

Windows Server Foundation can be used only with a server that has a single physical processor and allows up to 15 users without a need for separate CALs. Windows Server Essentials can be used on servers with up to two physical processors and allows up to 25 users without a need for separate CALs.

Each Windows Server Standard or Windows Server Datacenter license covers up to two physical processors. Although each Windows Server Standard license covers up to two virtual instances, a Windows Server Datacenter license covers an unlimited number of virtual instances. Thus, a server with four physical processors would require either two Windows Server Standard licenses or two Windows Server Datacenter licenses.

In addition to ensuring that you have the required licenses for Windows Server 2012 R2, you must decide on the client access licensing scheme you will use before installing Windows Server 2012 R2. With Windows Server Standard and Windows Server Datacenter, your choices are as follows:

  • Per server. One CAL is required for each concurrent connection to the server. This usually means one CAL for every connection to that server.

  • Per device or per user. A CAL is purchased for each user or device connecting to the server; this usually corresponds to one CAL for every user or computer that will access the server.

Your licensing program determines how you handle both the product key and product activation. Table 2-1 describes how each type of licensing affects installation. Open License and related programs are designed for organizations with five or more desktop PCs. Select License and related programs are designed for organizations with 250 or more desktop PCs.

Table 2-1. Overview of Windows Server 2012 R2 product keys and activation

Product License

Product Key

Product Activation

Retail Product License

Unique product key needed

Windows Product Activation (WPA)

Open License and related programs

Reusable product key

No WPA

Select License and related programs

On volume license media

No WPA

Enterprise Agreement License

On volume license media

No WPA

Preparing for a Windows Server 2012 R2 installation

Installing a server operating system requires some assessment and preparation before you actually do the work. You’ll want to review the server hardware and installation details, check the latest technical notes, verify backups, and have more than a few discussions with other information technology (IT) staff and managers.

Most editions of Windows Server 2012 R2 share baseline requirements, such as a minimum 1.4-gigahertz (GHz), 64-bit CPU; 512 megabytes (MBs) of random access memory (RAM); and 32 gigabytes (GBs) of hard disk drive space.

Understanding installation options

Before you start an installation, you need to consider whether you want to manage the computer’s drives and partitions during the setup process. If you want to use the advanced drive setup options that Setup provides for creating and formatting partitions, you need to boot the computer by using the distribution media. If you don’t boot by using the distribution media, these options won’t be available, and you’ll be able to manage disk partitions only at a command prompt by using the DiskPart utility.

You have two installation options: a clean installation or an upgrade. When you install Windows Server 2012 R2, the Setup program automatically makes recovery options available on the server as an advanced boot option. In addition to a command line for troubleshooting and options for changing the startup behavior, you can use System Image Recovery to perform a full recovery of the computer by using a system image created previously. If other troubleshooting techniques fail to restore the computer and you have a system image for recovery, you can use this feature to restore the computer from the backup image.

If you have existing servers running the Windows operating system, you must decide which servers, if any, you will upgrade. The major differences between a clean installation and an upgrade are the following:

  • Upgrade. With an upgrade, the Windows Server 2012 R2 Setup program transitions the older operating system to the new operating system by using a phased approach. Here, the new operating system is installed side by side with the old operating system, which allows rollbacks if necessary. Setup parses the old operating system for executable files, settings, registry entries, and data files and converts as appropriate. This data parsing ensures that the operating system state, applications, user data, drivers, and operating system binary files are migrated. Prior to deleting the old operating system, files not listed in upgrade manifests and other unrecognized files are moved to temporary storage (%SystemRoot%$Windows.~Q). Finally, Setup migrates the parsed data and settings into a clean installation of the new operating system.

  • Clean installation. In contrast, a clean installation does not retain any user or system settings or knowledge of any installed applications, and you must configure all aspects of the hardware and software. You should use a clean installation when the operating system cannot be upgraded, the system must boot to multiple operating systems, a standardized configuration is required, or (obviously) when no operating system is currently installed.

Before performing an upgrade, you should make sure the server’s installed software and hardware support Windows Server 2012 R2. You can download tools for testing compatibility and documentation at the Windows Server Catalog website (http://www.windowsservercatalog.com/).

Windows Server 2008 R2 and Windows Server 2012 can be upgraded to Windows Server 2012 R2. In general, servers can be upgraded to a similar or higher edition of the product.

You cannot perform an upgrade installation of Windows Server 2012 R2 on a computer with a 32-bit operating system, even if the computer has 64-bit processors. You cannot upgrade Windows Server 2003 to Windows Server 2012 R2. In either case, you need to migrate the services the computer is providing to other servers and then perform a clean installation. The Windows Server Migration tools might be able to help you migrate your server. These tools are available on computers running Windows Server 2012 R2.

Determining which installation type to use

Windows Server 2012 R2 supports three installation types:

  • Full Server. Full Server installations, also referred to as Server With A GUI installations, have the Graphical Management Tools And Infrastructure and Server Graphical Shell features (which are part of the User Interfaces And Infrastructure feature) and the Windows on Windows 64 (WOW64) Support framework installed.

  • Minimal Server Interface. Minimal Server Interface installations, also referred to as Server With Minimal Interface installations, are Full Server installations with the Server Graphical Shell removed. Although this option is not available when installing Windows Server 2012 R2, you can convert to a Minimal Server Interface later.

  • Server Core. Server Core installations have a limited user interface and do not include any of the User Interfaces And Infrastructure features or the WOW64 Support framework. This is the default installation option.

Important

When performing an upgrade, you also must ensure that the language and build type for the current installation and the new installation are the same. You cannot upgrade from one language to another or from one build type to another. In addition, you cannot switch from one installation mode to another as part of the upgrade. Thus, you cannot select an installation type of Server With A GUI on a server that currently is using Server Core mode or vice versa.

Although all three installation types use the same licensing rules and can be managed remotely using any available and permitted remote-administration technique, Full Server, Minimal Server Interface, and Server Core installations are completely different when it comes to local console administration. With a Full Server installation, you’re provided with a user interface that includes a full desktop environment for local console management of the server. With a Minimal Server Interface installation, you have only Microsoft Management Consoles, Server Manager, and a subset of Control Panel available for management tasks. Missing from both a Minimal Server Interface installation and a Server Core installation are File Explorer, taskbar, notification area, Internet Explorer, built-in help system, themes, desktop apps, and Windows Media Player.

Unlike earlier releases of Windows Server, you can change the installation type of any server running Windows Server 2012 R2. This is possible because a key difference among the installation types relates to whether the installation has the following User Interfaces And Infrastructure features:

  • Graphical Management Tools And Infrastructure

  • Desktop Experience

  • Server Graphical Shell

Server Core installations have none of these features. Minimal Server Interface installations have only the Graphical Management Tools And Infrastructure feature, and Full Server installations have both the Graphical Management Tools And Infrastructure feature and the Server Graphical Shell feature.

Full Server installations also might have Desktop Experience, which provides Windows desktop functionality on the server. Windows features added include Windows Media Player, desktop themes, Video for Windows (AVI support), Disk Cleanup, Sync Center, Sound Recorder, Character Map, and Snipping Tool. These features enable you to use a server like a desktop computer, but they also can reduce the server’s overall performance.

When you know that Windows automatically installs or uninstalls dependent features, server roles, and management tools to match the installation type, you can convert from one installation type to another just by adding or removing the appropriate User Interfaces And Infrastructure features. For more information on converting the installation type, see the Postinstallation tasks section later in this chapter.

Using Windows Update

Windows Update is a convenient way of ensuring that the most recently updated driver and system files are always used during server installation. Windows Update connects to a distribution server containing updated files used during Windows installation. The files in Windows Update include setup information files, dynamic libraries used during setup, file assemblies, device drivers, and system files.

Note

During setup of the operating system, the Windows Update process does not provide new installation files; rather, it supplies only updated files that replace existing files used during setup. Windows Update might, however, provide device drivers that are not replacements for device drivers existing on the distribution media (in-box device drivers) but are new device drivers supplying additional support for devices or system hardware.

The Windows Update files can be obtained by using two methods:

  • Windows Update files can be obtained directly from the Windows Update site during setup, ensuring that the absolute latest setup files are used during the installation.

  • Windows Update files can be downloaded to a server on your local network and then shared to provide clients with access to a consistent local copy of the files.

Getting Windows Update files from the update site online is recommended for consumers and small businesses that do not have a full-time Windows administrator. Otherwise, your organization probably should centralize the functionality locally by using Windows Server Update Services (WSUS) in a client/server configuration. WSUS is available as an optional download for Windows Server 2012 R2. Hosting Windows Update files on a local network provides you with additional security and the advantage of ensuring that important operating system updates are applied to all systems within your network environment.

Preinstallation tasks

You will want to assess the specifics of an installation and identify any tasks that must be done prior to installation. The following is a partial list—a general set of pointers to the installation-related tasks that must be performed:

  • Check for firmware updates.

  • Check requirements for the operating system version.

  • Review the release notes on the operating system media.

  • Determine whether to upgrade or perform a clean installation.

  • Check your system hardware compatibility.

  • Configure how the target computer boots.

  • Determine the installation type: interactive or automated.

  • Determine the license mode.

  • Choose the installation partition.

  • Determine the network connectivity and settings.

  • Identify domain or workgroup membership account information.

  • Disconnect the uninterruptible power supply (UPS).

  • Disable virus scanning.

Note

When performing a clean installation on old hardware, check to see whether an operating system exists. If one does exist, check the event or system logs for hardware errors, consider using multiboot, uncompress the drives, and resolve any partition upgrade issues.

You must also assess your installation requirements and plan the configuration of the drives and partitions on the target computers. If you must create a new partition, modify the system partition, or format the system partition before installation, you can use configuration tools such as the DiskPart, Format, and Convert commands to manage partitions (prior to beginning the automated installation).

Installing Windows Server 2012 R2

For many situations in which you’re about to install Windows Server 2012 R2 onto a new computer system—a bare-metal or a clean installation to a computer you can sit in front of—booting from the Windows Server 2012 R2 distribution media is certainly the simplest approach. You need only configure the server to boot from the DVD-ROM by setting the boot device order in the firmware and provide information when prompted. The exception to this is when you must specify command-line switches or run the command line from within Setup. Alternatively, if you work in an environment that maintains standing images of operating systems in use, you can do an interactive installation from a deployment share on the network.

The way you install a server depends somewhat on its firmware interface. As discussed in detail in Chapter 3 computers can be either Basic Input Output System (BIOS)–based or Extensible Firmware Interface (EFI)–based. Although BIOS-based computers normally use the master boot record (MBR) disk type for boot and system volumes, EFI-based computers normally use the GUID partition table (GPT) disk type for boot and system volumes. These two disk types are very different.

Note

Computers based on x64 use UEFI wrapped around BIOS or EFI. Having UEFI as the firmware architecture is a requirement for hardware to be certified for Windows Server 2012 R2.

Installation on BIOS-based systems

When you are working with Windows Server 2012 R2 on BIOS-based systems, you should be aware of the special types of drive sections the operating system uses:

  • Active. The active partition or volume is the drive section for system cache and startup. Some devices with removable storage might be listed as having an active partition.

  • Boot. The boot partition or volume contains the operating system and its support files. The system and boot partition or volume can be the same.

  • Crash Dump. This is the partition to which the computer attempts to write dump files in the event of a system crash. By default, dump files are written to the %SystemRoot% folder, but they can be located on any partition or volume you choose.

  • Page File. This is a partition containing a paging file the operating system uses. Because a computer can page memory to multiple disks, according to the way you configure virtual memory, a computer can have multiple page-file partitions or volumes.

  • System. The system partition or volume contains the hardware-specific files needed to load the operating system. As part of software configuration, the system partition or volume can’t be part of a striped or spanned volume.

Note

Partitions and volumes are essentially the same thing. The term used varies at times, however, because you create partitions on basic disks, and you create volumes on dynamic disks. Keep in mind, however, that a primary partition on a basic disk is a volume, and a logical drive in an extended partition is also a volume. On a BIOS-based computer, you can mark a partition as active using the Disk Management console or from the DiskPart utility.

Yes, the definitions of boot partition and system partition are the opposite of what you’d expect. The boot partition, in fact, does contain the Windows directory—that’s just the way it is.

Although these volumes or partitions can be the same, they are required nonetheless. When you install Windows Server 2012 R2, the Setup program assesses all available hard disk drive resources. Typically, Windows Server 2012 R2 puts the boot and system volumes on the same drive and partition and marks this partition as the active partition. The advantage of this configuration is that you don’t need multiple drives for the operating system and can use an additional drive as a mirror of the operating system partitions.

Installation on EFI-based systems

A globally unique identifier (GUID) partition table (GPT)–based disk has two required partitions and one or more optional (original equipment manufacturer [OEM] or data) partitions (up to 128 total):

  • EFI system partition (ESP)

  • Microsoft Reserved (MSR) partition

  • At least one data partition

Although EFI-based computers can have both GPT and MBR disks, the computer must have at least one GPT disk for booting.

Planning partitions

Now that you know how Windows Server 2012 R2 uses disks on both BIOS-based and EFI-based computers, consider carefully how you want to partition the hard disk drives. The boot and system files require about 10 GBs of space. To allow for flexibility, you should create a partition for the operating system with at least 40 GBs. This allows for the addition of service packs and other system files later. Don’t forget that you should also have enough disk space for the page file and crash dump; I recommend reserving additional disk space equivalent to twice the installed RAM for this purpose.

Although a server could have a single hard disk with a single partition, it sometimes is better to have multiple partitions, even if the computer has only one drive. By using multiple partitions, you can separate operating system files from application data, which might be a recommended best practice for the application. Although this permits the use of services that require installation on nonsystem partitions, it could make migrating to a future operating system more difficult.

For systems with multiple disks, this is a good time to think about whether you want to use a redundant array of independent disks (RAID) to add fault tolerance for the operating system. RAID can be performed at the hardware level or at the operating system level. You will find that the hardware-based RAID provides the best performance and is the easiest solution.

Increasingly, enterprises are using storage arrays. If your servers are allocated storage from storage arrays, keep in mind that each logical unit number, or LUN, assigned is a virtual disk and that the virtual disk likely is spread across multiple physical disks (also called spindles). Here, hardware-based RAID is configured within the storage array, and you might not need additional software-based RAID. That said, several software-based RAID options are available, and administrators often will want to implement one of these options as an additional safeguard, including:

  • Traditional software RAID. This is the software-based RAID technology built into the operating system and available in earlier releases of Windows.

  • Storage Spaces. This is a resilient storage solution available for Windows 8.1 and Windows Server 2012 R2 that uses virtual disk technology. Storage Spaces are preferred over traditional software RAID.

RAID options are discussed in Chapter 12 and include the following:

  • Disk striping (RAID 0)

  • Disk mirroring or duplexing (RAID 1)

  • Disk striping with parity (RAID 5)

Software-based RAID is implemented by using dynamic disks. For a bare-metal installation, the disks on the computer should be formatted as basic disks, and then after installation, you could upgrade to dynamic disks so that you can implement software-based RAID. On existing installations, the computer might already have dynamic disks, which could be the case if a computer is currently using Microsoft Windows Server and you are performing a new installation of Windows Server 2012 R2. Keep in mind, however, that dynamic disks are deprecated for all usages except mirrored boot volumes. If you want to mirror the volume that hosts the operating system, you might want to use dynamic disks because this is one of the best approaches.

Important

Deprecated means that dynamic disks might not be supported in future releases of Windows, so you might not want to use dynamic disks on new Windows deployments. It doesn’t mean that you can’t use dynamic disks. Dynamic disks continue to be available in Windows 8.1 and Windows Server 2012 R2.

For resilience, virtual disks that you create as part of a server’s Storage Spaces can also use mirroring or parity. As part of software configuration, you cannot use RAID 0 with system or boot volumes. More typically, operating system files are mirrored, and application data is striped with parity. If you plan to mirror the operating system, you will need two disks. If you plan to create a RAID 5 volume for your data, you’ll need at least three disks.

Naming computers

It is surprising how few organizations take the time to plan the names they’ll use for their computers. Sure, it is fun to have servers named Lefty, Curly, Moe, Ducky, Ruddy, and Aardvark, but just what do the names say about the role and location of those servers? You guessed it—nothing, which can make it difficult for users and even other administrators to find resources they need. Not to mention the management nightmare that happens when your six cutely named servers grow to number 50 or 500.

Rather than using names that are cute or arbitrary, decide on a naming scheme that is meaningful to both administrators and users—and this doesn’t mean naming servers after the seven dwarfs or the J. R. R. Tolkien characters in Lord of the Rings. Okay, it might be cool—way cool—to have servers named Bilbo, Gandalf, Frodo, and Gollum. However, pretty soon, you’d have Galadriel, Boromir, Theoden, Eowyn, and all the rest of the cast. At that point, you’d better be ready to field lots of questions, such as, “How do you spell Aeyowin, anyway?” or “What’s Thedding, and where is it again?”

To help users and ease the administrative burden, you might decide to use a naming scheme that helps identify what the computer does and where it is located. For example, you could name the first server in the Engineering department EngServer01 and the first server in the Technical Services department TechServer01. These names identify the computers as servers and specify the departments in which they are located. You might also have servers named CorpMail01 and CorpIntranet01, which identify the corporate mail and intranet servers, respectively.

Although naming conventions can be helpful, don’t go overboard. The names EngServer01, TechServer01, CorpMail01, and CorpIntranet01 help identify computers by role and location, but they aren’t overly complex. Keeping things simple should help ensure that the computer names are easy to remember and easy to work with. Stay away from overly complex names, such as SeattleSrvBldg48DC17 or SvrSeaB48F15-05, if at all possible. Overly complex names are unnecessary in most instances and probably contain information that most users don’t need. For example, users won’t care that a server is in building 48 or that it is on floor 15. In fact, that information might be too specific and could actually help someone who wants to break into or sabotage the corporate network. Instead of putting exact mapping information in the computer name, keep a spreadsheet that maps computer locations for administrative use and include only general information about the location or department in the computer name.

While we’re talking about security, keep in mind that some organizations use server names with arbitrary character strings on purpose. They want to make the network infrastructure difficult to discover and navigate for anyone trying to gain unauthorized access. Thus, they might use computer names like Srv4Wg8th3kb12a or Tkl82jeb4j2e9pz. Here, the organization is using random 15-character strings as computer names, giving up ease of use and reference with the goal of enhancing overall security.

Finally, keep in mind that computer names must be unique in the domain and must be 64 characters or fewer in length. The first 15 characters of the computer name are used as the pre–Windows 2000 computer name for Network Basic Input/Output System (NetBIOS) communications and also must be unique in the domain. Further, for Domain Name System (DNS) compatibility, the name should consist of only alphanumeric characters (A–Z, a–z, and 0–9) and the hyphen.

Network and domain membership options

During installation, you must decide on several important network and domain membership options, such as the following:

  • Which protocols the server will use

  • Whether the server will be a member of the domain

  • What networking components will be installed

Protocols

The primary networking protocols that Windows Server 2012 R2 installs by default are Transmission Control Protocol/Internet Protocol version 4 (TCP/IPv4) and Transmission Control Protocol/Internet Protocol version 6 (TCP/IPv6). Throughout this book, I’ll refer to TCP/IPv4 and TCP/IPv6 collectively as TCP/IP. To install TCP/IP correctly, you must decide whether you want to use static IP addressing or dynamic IP addressing. For static IP addressing, you need the following information:

  • IP address

  • Subnet mask/subnet prefix length

  • Default gateway

  • Preferred DNS server

For dynamic IP addressing, the IP information is assigned automatically by an available Dynamic Host Configuration Protocol (DHCP) server. If no DHCP server is available, the server will autoconfigure itself. Autoconfigured addressing is typically nonroutable, so you must correct this issue after installation.

Domain membership

Just about every server you install will be a member of a domain rather than a member of a workgroup (with some exceptions, of course). You can join a computer to a domain after installation. If you want to do that, you should have a computer account created in the domain (or create one while joining the domain by using an account with Administrator or Account Operator rights). A computer account is similar to a user account in that it resides in the accounts database held in Active Directory Domain Services (AD DS) and is maintained by domain controllers.

If a server is a member of a domain, users with domain memberships or permissions can access the server and its resources—based on, of course, their individual rights and permissions—without having to have a separate logon. This means that users can log on once to the domain and work with resources that they have permissions to access, and they won’t be prompted to log on separately for each server they work with. In contrast, if a server is a member of a workgroup, users must log on each time they want to work with a server and its resources.

Networking components

During installation, you have the opportunity to install networking components. The common networking components for servers are selected automatically. They include the following:

  • Client for Microsoft Networks. Allows the computer to access resources on Windows-based networks

  • File and Printer Sharing for Microsoft Networks. Allows other Windows-based computers to access resources on the computer (required for remote logon)

  • Internet Protocol version 4 (TCP/IPv4). Allows the computer to communicate over the network by using TCP/IPv4

  • Internet Protocol version 6 (TCP/IPv6). Allows the computer to communicate over the network by using TCP/IPv6

  • QoS Packet Scheduler. Helps the computer manage the flow of network traffic and prioritize services

  • Link-Layer Topology Discovery Mapper I/O Driver. Allows the computer to discover and locate other computers, devices, and networking components on the network

  • Link-Layer Topology Discovery Responder. Allows the computer to be discovered and located on the network by other computers

You can install additional clients, services, and protocols too, including Microsoft LLDP Protocol Driver and Reliable Multicast Protocol. However, try to keep additional component installation to a minimum. Install the components that you know must be installed. Don’t install components you think you might need because they might use system resources that would otherwise be available for other services to use.

Performing a clean installation

To perform a clean installation of Windows Server 2012 R2, complete the following steps:

  1. Start the Setup program using one of the following techniques:

    • For a new installation, turn on the computer with the Windows Server 2012 R2 distribution media in the computer’s disc drive and then press any key when prompted to start Setup from your media. If you are not prompted to boot from the disc drive, you might need to select advanced boot options and then boot from media rather than hard disk, or you might need to change the computer’s firmware settings to allow booting from media.

    • For a clean installation over an existing installation, you can boot from the distribution media, or you can start the computer and log on using an account with administrator privileges. When you insert the Windows Server 2012 R2 distribution media into the computer’s disc drive, Setup should start automatically. If Setup doesn’t start automatically, use File Explorer to access the distribution media and then double-tap or double-click Setup.exe.

    Note

    When you try to install Windows Server 2012 R2 using a DVD, you might find that your computer doesn’t recognize the installation media. If the media is damaged, you’ll need to obtain replacement media. Otherwise, make sure that the DVD drive is configured as a startup device and that you are inserting the media into the appropriate DVD drive.

  2. If you started the computer by using the distribution media, choose your language, time, currency formats, and keyboard layout when prompted. Only one keyboard layout is available during installation. If your keyboard language and the language edition of Windows Server 2012 R2 you are installing are different, you might see unexpected characters as you type. Be sure that you select the correct keyboard language to avoid this. When you are ready to continue with the installation, tap or click Next.

  3. On the next Setup page, select Install Now to start the installation.

  4. If you are starting the installation from an existing operating system and are connected to a network or the Internet, choose whether to get updates during the installation. Tap or click either Go Online To Get The Latest Updates For Setup or Do Not Get The Latest Updates For Setup.

  5. With volume and enterprise licensed editions of Windows Server 2012 R2, you might not need to provide a product key during installation of the operating system. With retail editions, however, you’ll be prompted to enter a product key and then tap or click Next to continue. Keep the following in mind:

    • When entering the product key, be sure to enter a key for the server edition you want to install. You don’t need to worry about using the correct letter case or entering dashes. Setup enters all letters you type in uppercase. When a dash is needed, Setup enters the dash automatically.

    • On the Type Your Product Key For Activation page, the Next button is available for tapping or clicking only when the Product Key box is empty or when you’ve entered all 25 of the required characters. If you want to enter a product key, you must type the full product key before the Next button is available for tapping or clicking. If you don’t want to enter a product key at this time, leave the Product Key box blank and then tap or click Next.

    • The Activate Windows When I’m Online check box is selected by default to activate the operating system automatically the next time you connect to the Internet. Windows Server 2012 R2 must be activated within the first 30 days after installation. If you don’t activate Windows Server 2012 R2 in the allotted time, you see an error stating that “Your activation period has expired” or that you have a “non-genuine version of Windows Server 2012 R2 installed.” Windows Server 2012 R2 will then run in a reduced functionality mode. You need to activate and validate Windows Server 2012 R2 as necessary to resume full functionality mode.

  6. If you enter an invalid product key, Setup will continue to display the Type Your Product Key For Activation page. To let you know there’s a problem with the product key, Setup displays the following warning in the lower portion of the page: “Your product key cannot be validated. Review your product key and make sure you have entered it correctly.” Before you can continue, you need to change the product key so that it exactly matches the product key sticker. If you don’t see the discrepancy causing the problem, you might want to delete the previously entered product key and then retype the product key. After you reenter the product key, tap or click Next to continue. As long as you enter a valid product key, you’ll continue to the next page. Otherwise, you have to repeat this step.

  7. If you did not enter a product key, you’ll then see the warning prompt, asking whether you want to enter a product key at this time. If you tap or click Yes, you’ll return to the Type Your Product Key For Activation page. If you tap or click No, you’ll be allowed to continue with the installation without entering a product key.

  8. You need to choose whether to perform a Server With A GUI installation or a Server Core installation. If you selected to continue without entering a product key, you’ll next need to select the edition of Windows Server 2012 R2 to install, too. Although Setup will allow you to choose any edition, it is important to choose the edition that you purchased. If you choose the wrong edition, you will need to purchase that edition or reinstall the correct edition.

    Note

    If you enter a product key, and the server edition you want to install is not listed, tap or click the back arrow and enter the correct product key for that server edition. Keep in mind that you can continue without entering a product key, and this will allow you to choose any available edition. However, if you choose the wrong edition, you will need to purchase that edition, reinstall the correct edition, or upgrade to the correct edition.

  9. The license terms for Windows Server 2012 R2 have changed from previous releases of Windows. When prompted, review the license terms. Select the I Accept The License Terms check box and then tap or click Next.

  10. On the Which Type Of Installation Do You Want? page, you need to select the type of installation you want Setup to perform. Because you are performing a clean installation to replace an existing installation completely or configure a new computer, select Custom (Advanced) as the installation type. If you started Setup from the boot prompt rather than from within Windows itself, the upgrade option is disabled. To upgrade rather than perform a clean install, you need to restart the computer and boot the currently installed operating system. After you log on, you then need to start the installation.

  11. On the Where Do You Want To Install Windows? page, you need to select the disk or disk and partition on which you want to install the operating system. Windows Server 2012 R2 requires between 10 and 40 GBs of disk space for installation. Keep the following in mind:

    • When a computer has a single hard disk with a single partition encompassing the whole disk, the whole disk partition is selected by default, and you can tap or click Next to choose this as the install location. With a disk that is completely unallocated, you need to create the necessary partition for installing the operating system as discussed in “Creating, deleting, and extending disk partitions during installation” later in this chapter.

    • When a computer has multiple disks or a single disk with multiple partitions, you need either to select an existing partition to use for installing the operating system or to create one. You can create and manage partitions as discussed in “Creating, deleting, and extending disk partitions during installation” later in this chapter.

    • You might see a warning message stating, “This computer’s hardware may not support booting to this disk.” This can occur if the disk has not been initialized for use or if the firmware of the computer does not support starting the operating system from the selected disk. To resolve this problem, create one or more partitions on all the hard disks that are not initialized.

    • You cannot select or format a hard-disk partition that uses FAT or FAT32 or has other incompatible settings. To work around this issue, you might want to convert the partition to NTFS. Because the inability to select a disk or partition could also be due to a problem with the drivers for the hard disk, you might need to install the device drivers required by a hard disk.

    • When working with this page, you can access a command prompt to perform any necessary preinstallation tasks, to remove a disk partition forcibly that is locked, or to load device drivers to support hard disks that aren’t listed as available but should be available. To learn more, see “Performing additional administration tasks during installations” later in this chapter.

  12. If the partition you selected contains a previous Windows installation, Setup provides a prompt stating that existing user and application settings will be moved to a folder named Windows.old and that you must copy these settings to the new installation to use them. Tap or click OK.

  13. Tap or click Next. Setup starts the installation of the operating system. During this procedure, Setup copies the full disk image of Windows Server 2012 R2 to the location you selected and then expands it. Afterward, Setup installs features based on the computer’s configuration and detected hardware. This process requires several automatic restarts. When Setup finishes the installation, the operating system will be loaded and you’ll see the logon screen. After you enter and confirm a password for the Administrator account, you can log on.

  14. Perform initial configuration tasks by using Server Manager, such as setting the computer name and administrator password.

Performing an upgrade installation

Although Windows Server 2012 R2 provides an upgrade option during installation, an upgrade with Windows Server 2012 R2 might not be your best option. Why? Not every Windows role, role service, feature, or application can be upgraded. When you start an upgrade, Setup performs compatibility checks to verify that all the components and applications installed on the computer can be upgraded. Identified issues are shown in a compatibility report.

The compatibility report will notify you about identified problems and might include guidance on what you need to do before upgrading the server. If incompatible components and applications are installed, you should stop the upgrade and take any required, corrective actions before continuing with the upgrade. Keep in mind that Setup might not identify every compatibility issue, so there might still be unidentified issues that need to be resolved. In addition, keep in mind that any files that an application cannot locate after the upgrade process might have been moved to the temporary storage directory (%SystemDrive%$WINDOWS.~Q). Because of the challenges presented with upgrading a server, it often is more efficient to migrate services and applications a server is hosting to other servers and then perform a clean installation.

The steps you perform for an upgrade installation of Windows Server 2012 R2 are nearly identical to those you follow for a clean installation. The key difference is that in step 10, you need to select the installation type as Upgrade. If you started Setup from the boot prompt rather than from within Windows itself, the upgrade option is disabled. To upgrade rather than perform a clean install, you need to restart the computer and boot the currently installed operating system. After you log on, you then need to start the installation.

Because you are upgrading the operating system, you do not need to choose an installation location. During this process, Setup copies the full disk image of Windows Server 2012 R2 to the system disk. Afterward, Setup installs features based on the computer’s configuration and detected hardware. When Setup finishes the installation, the operating system will be loaded, and you can complete the installation.

When Setup finishes the installation, you’ll see the logon screen. After you log on, you can perform initial configuration tasks.

Activation sequence

After you install Windows Server 2012 R2, you should configure TCP/IP networking. If the type of licensing you are using requires product activation after installation, you have 10 days to complete online activation. If you don’t, the evaluation period begins and runs for 180 days. During the evaluation period, a notification is displayed on the desktop, telling you the number of days remaining in the evaluation period (except in Windows Server 2012 R2 Essentials). You can also run slmgr.vbs /dlv from an elevated command prompt to see the time remaining.

You have several activation options, including activating over the Internet, by telephone, and by various automated activation techniques.

Activate Windows over the Internet

Although volume-licensed versions of Windows Server 2012 R2 might not require activation or product keys, retail versions of Windows Server 2012 R2 require both activation and product keys. You can determine whether Windows Server 2012 R2 has been activated in Control Panel. To do this, perform the following steps:

  1. In Control Panel, tap or click System And Security and then tap or click System.

  2. On the System page, read the Windows Activation entry. This entry specifies whether you have activated the operating system.

  3. If Windows Server 2012 R2 has not been activated and you are connected to the Internet, select View Details In Windows Activation and then tap or click Activate.

The computer then checks its Internet connection and attempts to activate the operating system. If this process fails, you need to resolve any issues that are preventing your computer from connecting to the Internet and then tap or click Activate again.

Activate Windows by telephone

With activation over the telephone, you can go straight to product activation by performing the following steps:

  1. In Control Panel, tap or click System And Security and then tap or click System.

  2. If Windows Server 2012 R2 has not been activated, select View Details In Windows Activation.

  3. In the Windows Activation dialog box, tap or click Show Me Other Ways To Activate and then tap or click Use The Automated Phone System.

  4. Select a geographic or country/region location and then tap or click Next to obtain a telephone number for your area. You will also get an installation ID, which is a very long string of numbers that you will need to enter in the automated customer service phone system.

  5. After you call the phone number and give the installation ID, you will get an activation code, which is another long string of numbers that you have to enter on the Activate Windows page before you can continue with the activation.

  6. Tap or click Next and follow the prompts to complete activation.

Using Managed Activation

You also can perform volume activation by using Key Management Service (KMS) or Active Directory. Both technologies use a client/server architecture and require you to install the Volume Activation Services role on a server running Windows Server 2012 R2 and then use Volume Activation Tools to enable and configure the technology.

With KMS, you use Volume Activation Tools to install Generic Volume License Keys or KMS client product keys, and you must specifically configure computers for KMS activation. However, Active Directory–based activation enables you to activate computers automatically, using only their domain connection. Any computer running Windows 8.1 or Windows Server 2012 R2, whether offsite or onsite, can be activated if the computer can join a domain. Activation is performed automatically when a user joins the computer to the domain.

Performing additional administration tasks during installations

Sometimes, you forget to perform a preinstallation task prior to starting the installation. Rather than restarting the operating system, you can access a command prompt from within Setup or use advanced drive options to perform the necessary administrative tasks.

Accessing a command prompt during installation

When you access a command prompt from within Setup, you access the Windows Preinstallation Environment (Windows PE) that Setup uses to install the operating system. During installation, you can access a command prompt at any time by pressing Shift+F10. As Table 2-2 shows, Windows PE gives you access to many of the same command-line tools that are available in a standard installation of Windows Server 2012 R2.

Table 2-2. Commands available in the Windows PE

Command

Description

Arp

Displays and modifies the IP-to-physical address translation tables the Address Resolution Protocol (ARP) uses.

Assoc

Displays and modifies file-extension associations.

Attrib

Displays and changes file attributes.

Cacls

Displays or modifies access control lists of files.

Call

Calls a script or script label as a procedure.

CD/Chdir

Displays the name of the current directory or changes its name.

Chcp

Displays or sets the active code page number.

Chkdsk

Checks a disk for errors and displays a report.

Chkntfs

Displays the status of volumes. It sets or excludes volumes from automatic system checking when the computer is started.

Choice

Creates a selection list from which users can select a choice in batch scripts.

Cls

Clears the console window.

Cmd

Starts a new instance of the Windows command shell.

Color

Sets the colors of the command-shell window.

Comp

Compares the contents of two files or sets of files.

Compact

Displays or modifies the compression of files or sets of files.

Convert

Converts FAT volumes to NTFS.

Copy

Copies or combines files.

Date

Displays or sets the system date.

Del

Deletes one or more files.

Dir

Displays a list of files and subdirectories within a directory.

Diskcomp

Compares the contents of two floppy disks.

Diskcopy

Copies the contents of one floppy disk to another.

Diskpart

Invokes a text-mode command interpreter so that you can manage disks, partitions, and volumes by using a separate command prompt and commands that are internal to Diskpart.

DISM

Services and manages Windows images.

Doskey

Edits command lines, recalls Windows commands, and creates macros.

Echo

Displays messages or turns command echoing on or off.

Endlocal

Ends localization of environment changes in a batch file.

Erase

See the entry for Del.

Exit

Exits the command interpreter.

Expand

Uncompresses files.

FC

Compares two files and displays the differences between them.

Find/Findstr

Searches for a text string in files.

For

Runs a specified command for each file in a set of files.

Format

Formats a floppy disk or hard drive.

Ftp

Transfers files.

Ftype

Displays or modifies file types used in file-extension associations.

Goto

Directs the Windows command interpreter to a labeled line in a script.

Graftabl

Enables Windows to display extended character sets in graphics mode.

Hostname

Prints the computer’s name.

IF

Performs conditional processing in batch programs.

Ipconfig

Displays TCP/IP configuration.

Label

Creates, changes, or deletes the volume label of a disk.

Md/Mkdir

Creates a directory or subdirectory.

Mode

Configures a system device.

More

Displays output one screen at a time.

Mountvol

Manages the volume mount point.

Move

Moves files from one directory to another directory on the same drive.

Nbtstat

Displays status of NetBIOS.

Net Accounts

Manages user account and password policies.

Net Computer

Adds computers to or removes computers from a domain.

Net Config Server

Displays or modifies the configuration of the Server service.

Net Config Workstation

Displays or modifies the configuration of the Workstation service.

Net Continue

Resumes a paused service.

Net File

Displays or manages open files on a server.

Net Group

Displays or manages global groups.

Net Localgroup

Displays or manages local group accounts.

Net Pause

Suspends a service.

Net Print

Displays or manages print jobs and shared queues.

Net Session

Lists or disconnects sessions.

Net Share

Displays or manages shared printers and directories.

Net Start

Lists or starts network services.

Net Statistics

Displays workstation and server statistics.

Net Stop

Stops services.

Net Time

Displays or synchronizes network time.

Net Use

Displays or manages remote connections.

Net User

Displays or manages local user accounts.

Net View

Displays network resources or computers.

Netsh

Invokes a separate command prompt that enables you to manage the configuration of various network services on local and remote computers.

Netstat

Displays the status of network connections.

Path

Displays or sets a search path for executable files in the current command window.

Pathping

Traces routes and provides packet loss information.

Pause

Suspends processing of a script and waits for keyboard input.

Ping

Determines whether a network connection can be established.

Popd

Changes to the directory Pushd stores.

Print

Prints a text file.

Prompt

Changes the Windows command prompt.

Pushd

Saves the current directory and then changes to a new directory.

Rd/Rmdir

Removes a directory.

Recover

Recovers readable information from a bad or defective disk.

Reg Add

Adds a new subkey or entry to the registry.

Reg Compare

Compares registry subkeys or entries.

Reg Copy

Copies a registry entry to a specified key path on a local or remote system.

Reg Delete

Deletes a subkey or entries from the registry.

Reg Query

Lists the entries under a key and the names of subkeys (if any).

Reg Restore

Writes saved subkeys and entries back to the registry.

Reg Save

Saves a copy of specified subkeys, entries, and values to a file.

Regsvr32

Registers and unregisters dynamic-link libraries (DLLs).

Rem

Adds comments to scripts.

Ren

Renames a file.

Replace

Replaces a file.

Route

Manages network routing tables.

Set

Displays or modifies Windows environment variables. It’s also used to evaluate numeric expressions at the command line.

Setlocal

Begins the localization of environment changes in a batch file.

Sfc

Scans and verifies protected operating system files.

Shift

Shifts the position of replaceable parameters in scripts.

Start

Starts a new command-shell window to run a specified program or command.

Subst

Maps a path to a drive letter.

Time

Displays or sets the system time.

Title

Sets the title for the command-shell window.

Tracert

Displays the path between computers.

Tree

Graphically displays the directory structure of a drive or path.

Type

Displays the contents of a text file.

Ver

Displays the Windows version.

Verify

Tells Windows whether to verify that your files are written correctly to a disk.

Vol

Displays a disk volume label and serial number.

Xcopy

Copies files and directories.

Forcing disk-partition removal during installation

During installation, you might be unable to select the hard disk you want to use. This issue can occur if the hard-disk partition contains an invalid byte-offset value. To resolve this issue, you need to remove the partitions on the hard disk (which destroys all associated data) and then create the necessary partitions by using the advanced options in the Setup program. During installation, on the Where Do You Want To Install Windows? page, you can remove unrecognized hard-disk partitions by following these steps:

  1. Press Shift+F10 to start a command prompt. At the command prompt, type diskpart. This starts the DiskPart utility.

  2. To view a list of disks on the computer, type list disk. Select a disk by typing select disk DiskNumber, where DiskNumber is the number of the disk you want to work with.

  3. To remove the partitions on the selected disk permanently, type clean. When the cleaning process finishes, type create partition primary size=N, where N is the size of the space you want to allocate to the partition in megabytes.

  4. When the create-partition process finishes, tap or click the back arrow button in the Install Windows dialog box. This returns you to the previous window.

  5. On the Which Type Of Installation Do You Want? page, tap or click Custom (Advanced) to start a custom install.

  6. On the Where Do You Want To Install Windows? page, tap or click the disk you previously cleaned to select it as the install partition. You can then continue with the installation as discussed previously.

Loading mass storage drivers during installation

During installation, on the Where Do You Want To Install Windows? page, you can use the Load Drivers option to load the device drivers for a hard disk drive. Typically, you use this option when a disk drive you want to use for installing the operating system isn’t available for selection because the device drivers aren’t available.

To load the device drivers and make the hard disk available for use during installation, follow these steps:

  1. During installation, on the Where Do You Want To Install Windows? page, tap or click Load Driver.

  2. When prompted, insert the installation media or USB flash drive, and then tap or click OK. Setup will then search the computer’s removable media drives for the device drivers.

  3. If Setup finds multiple device drivers, select the driver to install and then tap or click Next.

    1. If Setup doesn’t find the device driver, tap or click Browse to use the Browse For Folder dialog box to select the device driver to load, tap or click OK, and then tap or click Next.

You can use the Rescan button to have Setup rescan the computer’s removable media drives for the device drivers. If you are unable to install a device driver successfully, tap or click the back arrow button in the upper-left corner of the Install Windows dialog box to go back to the previous page.

Creating, deleting, and extending disk partitions during installation

When you are performing a clean installation and have started the computer from the distribution media, the Where Do You Want To Install Windows? page has additional options. You can display these options by tapping or clicking Drive Options (Advanced). These additional options are used as follows:

  • New. Creates a partition. You must then format the partition.

  • Format. Formats a new partition so that you can use it for installing the operating system.

  • Delete. Deletes a partition that is no longer wanted.

  • Extend. Extends a partition to increase its size.

Creating a partition is the key task you need to perform, but you can also delete and extend partitions as necessary. You generally don’t need to format partitions because Setup will handle this for you. If the advanced options aren’t available, you can still work with the computer’s disks by following these steps:

  1. Press Shift+F10 to open a command prompt. At the command prompt, type diskpart. This starts the DiskPart utility.

  2. To view a list of disks on the computer, type list disk.

  3. Select a disk by typing select disk DiskNumber, where DiskNumber is the number of the disk you want to work with.

  4. List the existing partitions on the disk by typing list partition. You can now do the following:

    • Create a partition. Use available space to create a partition by typing create partition primary size=N, where N is the size of the space to allocate in megabytes.

    • Delete a partition. Select the partition to delete by typing select partition followed by the partition number and then delete it by typing delete partition.

    • Extend a partition. Select the partition to extend by typing select partition, followed by the partition number, and then extend it by typing extend size=N, where N is the size of the additional space to allocate in megabytes.

  5. When you are finished working with disks, tap or click the back arrow button in the Install Windows dialog box. This will return you to the previous window.

  6. On the Which Type Of Installation Do You Want? page, tap or click Custom (Advanced) to start a custom install.

  7. On the Where Do You Want To Install Windows? page, tap or click the disk you previously cleaned to select it as the install partition. You can then continue with the installation as discussed previously.

Troubleshooting installation

Most of the time, installation completes normally and the Windows operating system starts without any problems. Some of the time, however, installation won’t complete or, after installation, the server won’t start up, and you must troubleshoot to figure out what’s happening. The good news is that installation problems are usually the result of something simple. The bad news is that simple problems are sometimes the hardest to find.

Note

For more information about troubleshooting and recovery, see Chapter 21, “Backup and recovery,” in Windows Server 2012 R2 Inside Out: Services, Security, and Infrastructure (Microsoft Press, 2014). Beyond that, you’ll also find troubleshooters in the Help And Support console and in the Microsoft Knowledge Base, which is available online at http://support.microsoft.com/. Both are good resources for troubleshooting.

Start with the potential points of failure

Setup can fail for a variety of reasons, but more often than not it’s because of incompatible hardware components or the failure of the system to meet the minimum requirements for a Windows Server 2012 R2 installation. With this in mind, start troubleshooting by looking at the potential points of failure and how these failure points can be resolved.

Setup refuses to install or start

If a hardware component is incompatible with Windows Server 2012 R2, this could cause the failure of the installation or a failure to start up after installation. Make sure that Windows Server 2012 R2 is detecting the system hardware and that the hardware is in the Windows Server Catalog or on the Hardware Compatibility List (HCL). As discussed previously, you can perform a compatibility check prior to installing Windows Server 2012 R2.

After you start the installation, however, it’s too late. At this point, you have several choices. You can reboot to a working operating system and then restart the installation from the command prompt, using Setup and one of the following debugging options:

  • /1394debug:<channel>. Enables kernel debugging over a FireWire (IEEE 1394) port on a specific channel

  • /debug:<port>. Enables kernel debugging over a COM1 or COM2 port

  • /usbdebug:<target>. Enables kernel debugging over a USB port to a specific target device

These options put Setup in debug mode, which can help you identify what is going wrong. If Setup determines you have hardware conflicts, you can try to configure the hardware and server firmware to eliminate the conflicts. Troubleshooting firmware involves booting the server to the firmware and then completing the following steps:

  • Examine the boot order of disk devices. You might want to configure the system so that it boots first from DVD-ROM. Watch out, though; after installation, don’t keep booting to DVD-ROM thinking you are booting to the operating system—hey, we all get tired and sometimes we just have to stop and think for a moment. If the installation problem is that you keep going back to the installation screen after installing the operating system, you are probably inadvertently booting from DVD-ROM—and you’re probably way too tired by now to realize it.

  • Check Plug and Play device configuration and interrupt reservations. If a system has older components or components that aren’t Plug and Play compatible, you might have a device conflict for a hard-coded interrupt. For example, a non–Plug and Play sound card could be hard-coded to use interrupt 13, which is already in use by a Plug and Play device. To work around this, you must configure interrupt 13 under your Plug and Play BIOS settings to be reserved for a non–Plug and Play device. This ensures that Plug and Play does not attempt to use that interrupt and resolves the issue in most cases.

Note

The only sure way to avoid problems with non–Plug and Play devices is to avoid using them altogether.

Rather than spending time—which could run into several hours—trying to troubleshoot a hardware conflict, you might consider removing the hardware component if it’s nonessential—and you might be surprised at what I consider nonessential at this stage. By nonessential, I mean most anything that isn’t needed to start up and give you a display for logon. You probably don’t need a network card, a sound card, a multimedia controller card, a video coder/decoder (codec), or a removable media drive. If these items are incompatible, you might resolve the problem just by removing them. You can always try to install the components again after installation is complete.

Setup reports a media or DVD-ROM error

When you install directly from the Windows Server 2012 R2 DVD-ROM or perform a network install from a distribution share, you might encounter a media error that causes Setup to fail. With an actual DVD-ROM, you might need to clean the DVD-ROM so that it can be read or use a different DVD drive. If a computer’s sole DVD-ROM drive is the problem, you must replace the drive or install from a distribution share. If you are working with a distribution share, the share might not have all the necessary files, or you might encounter problems connecting to the share. Try using an actual DVD-ROM.

Setup reports insufficient system resources

Windows Server 2012 R2 requires a minimum of 512 MBs of RAM and about 32 GBs of disk space. If the system doesn’t have enough memory, Setup won’t start. If Setup starts and detects that there isn’t enough space, it might not continue, or you might need to create a new partition or delete an existing partition to get enough free space to install the operating system.

Continue past lockups and freezes

If you can get past the potential points of failure, you still might find that the installation locks up or freezes. In this case, you might get a stop error; then again, you might not.

Most stop errors have cryptic error codes rather than clear messages telling you what’s wrong. If you get a stop error, write down the error number or code and then refer to the Microsoft Knowledge Base (available online at http://support.microsoft.com/) for help troubleshooting the problem. To break out of the stop, you most likely will have to press Ctrl+Alt+Delete (sometimes several times) to get the server to restart. If this doesn’t break out of the stop, press and hold the power button on the server until it reboots. Alternatively, disconnect the system power, wait a few seconds, and then connect it again.

The Windows operating system should start up and go directly back to Setup. In some cases, you will see a boot menu. If so, choose Windows Setup to allow the Setup program to attempt to continue the installation. Setup could freeze again. If it does, stay with it and repeat this process—sometimes it takes several tries to get completely through the installation process.

RAM and CPUs can also be the source of problems. Issues to watch out for include the following:

  • Incompatible RAM. Not all RAM is compatible, and you can’t mix and match RAM of different speeds and types. Ensure that all RAM modules are the same type and speed. Further, in some cases, RAM modules from different manufacturers can perform differently (read incompatibly). In such a case, try changing the RAM so that all modules are from the same manufacturer.

  • Malfunctioning RAM. Static discharges can ruin RAM faster than anything else can. If you didn’t ground yourself and use a static discharge wire before working with the RAM modules, you could have inadvertently fried the RAM so that the modules don’t work at all or are malfunctioning. RAM could have also arrived in this condition from the manufacturer or distributor. There are several troubleshooting techniques for determining this. You could update firmware to add a wait state to the RAM so that if the RAM is partially faulty, the system will still boot (but you still must replace the RAM eventually). You can also try removing some RAM modules or changing their order.

  • Incompatible processors. Not all processors are created equal, and I’m not just talking about their speed in megahertz (which you generally want to be the same for all processors on a server). Some processors might have a cache or configuration that is incompatible with the server hardware or other processors. Check the processor speed and type to ensure that they are compatible with the server. In some cases, you might need to change hardware jumpers, depending on the speed and type of your processors.

  • Misconfigured processors. Adding processors to a server isn’t a simple matter of inserting them. Often, you must change jumpers on the hardware, remove several terminators (one for a power subcomponent and one for the processor—and save them because, trust me, you might find that you need them), and then insert the new components. Check the hardware jumpers (even if you think there aren’t any), and ensure that the processors and the power subcomponents you added are seated properly. If you can’t get the installation to continue or the server to start up, you might need to remove the components you added. Watch out, though; you probably don’t want to continue the installation until the processor issue is resolved—single-processor systems have a different threading and default configuration than multiprocessor systems, meaning this situation might not be a simple matter of adding the processor after installation and making it all work properly.

  • System processor cache problems. Sometimes, there can be an issue with the system processor cache and its compatibility with Windows Server 2012 R2. Consult the server documentation to determine the correct configuration settings and how the cache can be disabled. If you suspect a problem with this, boot to firmware and temporarily disable the system processor cache, following the server documentation. After the installation is complete, you should be able to enable the cache to avoid a performance hit. Be sure to check both the hardware vendor support site and the Microsoft Knowledge Base to see whether any known issues with your server’s processor cache exist.

Most of the time, the installation or setup problem is caused by a compatibility issue with the Windows operating system, and that problem can be fixed by making changes to firmware settings. Sometimes, however, the problem is the firmware, and you’ll find that you must upgrade the firmware to resolve the problem.

Check with the hardware vendor to see whether a firmware upgrade is available. If so, install it as the hardware vendor directs. If a new firmware version isn’t available, you might be able to disable the incompatible option prior to setup. If this doesn’t work, the option you changed wasn’t the source of the problem, and you should reenable it before continuing.

Note

Reenabling the option might be necessary because some hardware-specific firmware settings cannot be changed after the installation. Thus, the only way to enable the option would be to reinstall the operating system.

Finally, hard-disk-drive settings could also cause lockups or freezes, particularly if you are using Integrated Device Electronics (IDE) drives. When using IDE drives and controllers, you want to ensure that the system recognizes both the drives and the controllers and that both are enabled and configured properly in firmware. You might have to check jumper settings on the drives and the cables that connect the drives. As discussed previously, check for conflicts among the drives, controllers, and other system components. You might need to remove unnecessary components, such as the sound card, temporarily to see whether this resolves a conflict. If a DVD drive is on the same channel as the disk drives, try moving it to the secondary channel and configuring it as a master device. You can also try lowering the data transfer rate for the IDE drives.

Postinstallation tasks

After you’ve installed a server and logged on, you might be ready to call it a day. Don’t do this yet because you should first perform a few final postinstallation procedures. The Tools menu in Server Manager gives you quick access to tools for administration. Using Server Manager as your starting point, you can do the following:

  • Check devices. Select Device Manager on the Tools menu and then use Device Manager, as discussed in Chapter 7 under “Viewing device and driver details,” to look for undetected or malfunctioning hardware components. If you find problems, you might need to download and install updated drivers for the computer—you can download them from another system and then transfer the files to the new server by using a USB key or by burning the files to a CD/DVD-ROM. If you removed any system hardware prior to installation, you might want to add it back in and then check again for conflicts and issues that must be corrected. You aren’t finished with Device Manager until every piece of hardware is working properly.

  • Check the TCP/IP configuration. When you select the Local Server node in Server Manager, you’ll see the server’s basic configuration settings. Tap or click the links for the Ethernet settings to open the Network Connections dialog box. Ensure that the TCP/IP configuration is correct and that any additional settings are applied as necessary for the network. Test TCP/IP networking from the command line by using Ping or Tracert and in the Windows operating system by trying to browse the network.

  • Check event logs. When you select the Dashboard node, you’ll see an entry for Local Server. If there are errors or critical events, you can tap or click Events to review them. You also can use the Events panel under Local Server and the Event Viewer to check the Windows event logs. Any startup warnings or errors will be written to the logs. See Chapter 10 for details.

  • Check disk partitioning. Select Computer Management on the Tools menu and then use the Computer Management console to check and finalize the disk partitions. Often, you must create the server’s application partition or configure software RAID. See Chapter 12 for details.

  • Optimize system configuration. Follow the techniques discussed in Chapter 4 for tuning the operating system. For example, you might need to change the display settings, virtual memory pagefile usage, or the Server service configuration. You might also need to add local group and user accounts to the server in accordance with standard IT procedures.

  • Update the server. Use Windows Update or Windows Server Update Services to ensure that the operating system is up to date and has the most recent updates for stability and security. When Windows Update is configured properly, you can tap or click the Windows Update link on the Local Server node and then tap or click Check For Updates to get updates for the server.

  • Reboot for good measure. After you configure the server and optimize its settings, perform a final reboot to ensure that (1) the server starts, (2) all the server services start, and (3) no other errors occur. You should reboot even if the changes you made don’t require it—it’s better to find out about problems now than at 3 A.M. on a Sunday morning.

  • Prepare backup and recovery. You’re almost done. Don’t forget about creating an automated recovery disk for the server. You might also want to perform a full backup.

These postinstallation procedures are not only important; they’re also essential to ensuring that the server performs as well as can be expected. After these procedures are completed, you should have a server that is nearly ready for its role in a production environment. Don’t make the server available to users just yet. To finish the job, you need to install and configure any necessary roles, role services, features, and applications. For certain, configuring these components requires quite a bit of extra work beyond installing the operating system. The installation of these additional components and applications could require one or more reboots or might require several periods during which users are blocked from accessing the server or are requested not to connect to it. Remember, from the users’ perspective, it’s usually better not to have a resource than to be given one and then have it taken away (even temporarily). Finalize the server and then deploy it, and you’ll have happier users.

As discussed earlier in the chapter, you can convert the installation type. To convert a Full Server installation to a Minimal Server Interface installation, you remove the Server Graphical Shell. Although you can use the Remove Roles And Features Wizard to do this, you also can do it at a Windows PowerShell prompt by typing the following command:

uninstall-windowsfeature server-gui-shell -restart

This command instructs Windows Server to uninstall the Server Graphical Shell and restart the server to finalize the removal. If Desktop Experience also is installed, this feature will be removed also.

To convert a Minimal Server Interface installation to a Server With A GUI installation, you add the Server Graphical Shell. You can use the Add Roles And Features Wizard to do this, or you can type the following command at a Windows PowerShell prompt:

install-windowsfeature server-gui-shell -restart

This command instructs Windows Server to install the Server Graphical Shell and restart the server to finalize the installation. If you also want to install the Desktop Experience, you can use this command instead:

install-windowsfeature server-gui-shell, desktop-experience -restart

To convert a Full Server or Minimal Server Interface installation to a Server Core installation, you remove the user interfaces for Graphical Management Tools And Infrastructure. If you remove the WOW64 Support framework, you also convert the server to a Server Core installation. Although you can use the Remove Roles And Features Wizard to remove the user interfaces, you also can do this at a Windows PowerShell prompt by typing the following command:

uninstall-windowsfeature server-gui-mgmt-infra -restart

This command instructs Windows Server to uninstall the user interfaces for Graphical Management Tools And Infrastructure and restart the server to finalize the removal. Here, a removal of Server-GUI-Shell is implied because this feature depends on the Server-GUI-Mgmt-Infra feature. Because other GUI-dependent roles, role services, and features might be uninstalled along with the user interfaces, run the command with the –Whatif parameter first to get details on what exactly will be uninstalled.

If you installed the server with the user interfaces and converted it to a Server Core installation, you can revert to a Full Server installation with the following command:

install-windowsfeature server-gui-mgmt-infra, server-gui-shell -restart

This command installs the Server-GUI-Shell and Server-GUI-Mgmt-Infra features. As long as the binaries for this feature and any dependent features haven’t been removed, the command should succeed. If the binaries were removed, however, or Server Core was the original installation type, you need to specify a source for the required binaries. If you don’t do this, the required feature will be downloaded from Windows Update, which could take a long time for some features.

You use the –Source parameter to restore required binaries from a WIM mount point. For example, if your enterprise has a mounted Windows image for the edition of Windows Server 2012 R2 you are working with available at the network path \ImServer18WinS12EE, you could specify the source as follows:

install-windowsfeature server-gui-mgmt-infra, server-gui-shell
-source \imserver18wins12ee

Although many large enterprises might have standard images that can be mounted using network paths, you can also mount the Windows Server 2012 R2 distribution media and then use the WindowsWinSXS folder from the installation image as your source. To do this, follow these steps:

  1. Insert the installation disc into the server’s disc drive and then create a folder to mount the installation image by typing the following command: mkdir c:mountdir.

  2. Locate the index number of the image you want to use by typing the following command at an elevated prompt: dism /get-wiminfo /wimfile:e:sourcesinstall.wim, where e: is the drive designator of the server’s disc drive.

  3. Mount the installation image by typing the following command at an elevated prompt: dism /mount-wim /wimfile:e:sourcesinstall.wim /index:2 /mountdir:c:mountdir /readonly, where e: is the drive designator of the server’s disc drive, 2 is the index of the image to use, and c:mountdir is the mount directory. Mounting the image might take several minutes.

  4. Use Install-WindowsFeature at a Windows PowerShell prompt with the source specified as c:mountdirwindowswinsxs, as shown in this example:

    install-windowsfeature server-gui-mgmt-infra, server-gui-shell
    -source c:mountdirwindowswinsxs
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset