Install and configure servers - Exam Ref 70-417 Upgrading Your Skills to Windows Server 2012 R2 (2014)

Exam Ref 70-417 Upgrading Your Skills to Windows Server 2012 R2 (2014)

Chapter 1. Install and configure servers

The Install and Configure Servers content area (or “domain”) originates from the 70-410 exam. Unlike that exam, the 70-417 upgrade exam strongly emphasizes new features in Windows Server 2012 and Windows Server 2012 R2—like Features on Demand, Server Core-GUI convertibility, and Storage Spaces—that relate to the initial configuration of Windows Server or of server hardware. In fact, it’s important to know that as many as 75 percent of the questions on the 70-417 exam in general relate to new features.

The most sensible strategy for this book is therefore to focus on these new features. These topics make up the bulk of the exam, and you have already demonstrated your understanding of the remaining 25 percent by passing the exams for your Windows Server 2008 certification. Even so, make sure that as part of your preparation plan for 70-417, you take the time to review any unchanged features that you don’t feel confident about.

Objectives in this chapter:

Image Objective 1.1: Install servers

Image Objective 1.2: Configure servers

Image Objective 1.3: Configure local storage


Important: Have you read page xii?

It contains valuable information regarding the skills you need to pass the exam.


Objective 1.1: Install servers

“Installing servers” might sound like an easy topic that you don’t need to study for, but this objective is more challenging than you might think. Yes, you should certainly review the hardware requirements for Windows Server 2012 and Windows Server 2012 R2, but you also need to understand a new concept that you’re likely to see on the 70-417 exam: Features on Demand.


This section covers the following topics:

Image Minimum hardware requirements for Windows Server 2012 and Windows Server 2012 R2

Image Features on Demand


Minimum hardware requirements

You already know you won’t see questions on any Microsoft exam that would ask you, for example, “What are the processor requirements for Windows?” But sometimes hardware requirements sneak into exam questions indirectly. For example, you might see a scenario in which a new feature that is available only in Windows Server 2012 is needed and the existing server hardware (based on, for example, an x86 processor) requires an upgrade to support the new operating system. Fortunately, this time around, the hardware requirements are easy to learn: The minimum hardware requirements for Windows Server 2012 and Windows Server 2012 R2 are, in fact, the same as those for Windows Server 2008 R2. Here’s a recap:

Image Processor: 1.4 GHz 64-bit processor

Image RAM: 512 MB (allocate more for the Chinese version)

Image Disk space: 32 GB

Don’t miss the obvious here: Windows Server 2012 and Windows Server 2012 R2 require a 64-bit processor, unlike Windows Server 2008 (but like Windows Server 2008 R2). This fact could easily form the basis for a test question. If a question states you need to upgrade to Windows Server 2012 on an existing server, make sure the server has a 64-bit processor. If not, you need to replace the hardware. If the hardware is compatible, you can perform an in-place upgrade (as opposed to a fresh installation) from Windows Server 2008 SP2.

Features on Demand

A copy of the binary files for all features and roles that are installed during Windows Setup is stored in a directory called the side-by-side store, located in Windows\WinSxS. Keeping a copy of the feature files available on disk in this way allows you to add a role or enable a feature after Windows Server installation without needing to access Windows Server media. The side-by-side store first appeared in Windows Server 2008 and Windows Server 2008 R2, and in those previous versions of Windows Server, the features files remained on disk for the life of the operating system. The disadvantage of this approach was that these files took up space on the disk even if you never wanted to install its associated feature or role. In addition, you weren’t able to reduce the size of the installation image, as you might want to do when creating custom installation media for your organization.

Beginning with Windows Server 2012, you can minimize the footprint of your installation by deleting the files for features you’re not using from the side-by-side store. This ability to delete feature files is called Features on Demand. To later reinstall a role or feature for which files have been deleted, you need to have access to the source files.

To completely remove all files for a role or feature from disk, use the Uninstall-WindowsFeature cmdlet of Windows PowerShell and specify the name of the feature using the -Remove parameter. For example, to delete the DHCP server binaries from server storage, run the following Windows PowerShell command:

Uninstall-WindowsFeature DHCP –Remove

To remove from disk all the features files that are not currently installed on the local server, run the following Windows PowerShell command:

Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $FALSE } | Uninstall-
WindowsFeature –Remove

Note that if you want to remove the feature files for a single role or feature, you can perform that same function at an elevated command prompt by using the Dism utility with the /Remove option:

Dism /Online /Disable-Feature /FeatureName:DHCPServer /Remove

(The Dism utility is covered in more detail later in this chapter.)


Note

Roles and features in Windows PowerShell are referred to by their command names specific to Windows PowerShell, not by their common display names. The 70-417 exam covers Windows PowerShell more thoroughly than its counterpart exams did in Windows Server 2008 and Windows Server 2008 R2, so it’s a good idea to familiarize yourself with many of these Windows PowerShell command names. You can do this by typing Get-WindowsFeature at a Windows PowerShell prompt and reviewing the output.


Figure 1-1 shows the result after this procedure when you run the Get-WindowsFeature cmdlet. The DHCP Server install state is described as Removed.

Image

FIGURE 1-1 Removing feature files

You can reinstall these feature files at any point. To install a role or feature for which the binaries have been deleted, you can use the Install-WindowsFeature cmdlet in Windows PowerShell with the –Source parameter to specify any of the following:

Image A local path to the \sources\sxs directory on the product DVD.

For example, to install the DHCP feature after its feature files have been removed from disk and to specify the product DVD (on the D: drive) as a source of those feature files, type the following at a Windows PowerShell prompt:

Install-WindowsFeature DHCP -Source D:\sources\sxs

Image A path to a local WIM file, for example, on the product DVD.

The path for a WIM file should be in the following format: WIM:[drive letter]:\sources\install.wim:[image index], for example, WIM:e:\sources\install.wim:4.)

Image A UNC path to a network share that contains the WinSxS folder for the appropriate version of Windows Server 2012 or Windows Server 2012 R2.

Image A UNC path to a WIM file on a network share, using the “WIM:” prefix before the path.

If you do not specify a –Source option, Windows will attempt to access the files by performing the following tasks in order:

1. Searching in a location that has been specified by users of the Add Roles And Features Wizard or Deployment Image Servicing and Management (DISM) installation commands.

2. Evaluating the configuration of the following Group Policy setting: Computer Configuration\Policies\Administrative Templates\System\Specify Settings For Optional Component Installation And Component Repair.

3. Searching Windows Update. (This can be a lengthy process for some features.)

Alternatively, you can reinstall the feature using Server Manager. When you get to the final page of the Add Roles And Features Wizard, choose the option to specify an alternate source path, as shown in Figure 1-2. Then, provide a path to source files when prompted.

Image

FIGURE 1-2 Reinstalling feature files that have been removed

The source path or file share must grant Read permissions either to the Everyone group (not recommended for security reasons) or to the computer account of the destination server; granting user account access is not sufficient.


Image Exam Tip

Remember how to reinstall features whose feature files have been removed from disk.



More Info

For more information on Features on Demand, visit http://technet.microsoft.com/en-us/library/jj127275.aspx.


Objective summary

Image The minimum hardware requirements for Windows Server 2012 and Windows Server 2012 R2 are the same as those for Windows Server 2008 R2: a 1.4 GHz 64-bit processor, 512 MB of RAM, and 32 GB of storage.

Image The Uninstall-WindowsFeature cmdlet uninstalls and removes specified roles, role services, and features from a computer that is running Windows Server 2012 or Windows Server 2012 R2, or an offline VHD that has Windows Server 2012 or Windows Server 2012 R2 installed on it.

Image You can reduce the storage footprint of your Windows Server 2012 or Windows Server 2012 R2 installation by removing from disk the files for unused roles or features. To remove feature files, use the following Windows PowerShell command:

Uninstall-WindowsFeature feature name -Remove

Image To reinstall a feature for which files have been removed from the local disk, use the following Windows PowerShell command:

Install-WindowsFeature feature name [–Source path to the \source\sxs directory on
the product DVD, to a WIM file, or to a share containing an WinSxS folder from an
appropriate installation of Windows Server 2012 or Windows Server 2012 R2
]

Objective review

Answer the following questions to test your knowledge of the information in this objective. You can find the answers to these questions and explanations of why each answer choice is correct or incorrect in the “Answers” section at the end of the chapter.

1. You work for a large company named Contoso.com. A server in the finance department named Server1 is running Windows Server 2008. The server includes a 2.0 GHz 32-bit CPU and 4 GB of RAM.

Management has issued the requirement that every server should be reduced to a minimal footprint, and the files of all uninstalled features should be completely removed from server storage. What should you do? (Choose all that apply.)

A. Keep the existing server and install Windows Server 2012 R2.

B. Replace the existing server and install Windows Server 2012 R2.

C. Run the following command at an elevated Windows PowerShell prompt:

Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $FALSE } |
Uninstall-WindowsFeature –Remove

D. Run the following command at an elevated Windows PowerShell prompt:

Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $TRUE } |
Uninstall-WindowsFeature

2. You want to reduce the amount of space taken up by Windows Server 2012 R2 for a Server Message Block (SMB) file server named Server1. Server1 is a member of the Contoso.com domain but doesn’t perform any function beyond that of an SMB file server. Which of the following commands, entered at a Windows PowerShell prompt, are acceptable methods to reduce the size of the Windows Server 2012 R2 installation on Server1? (Choose all that apply.)

A. Uninstall-WindowsFeature Web-Server -Remove

B. Dism /online /disable-feature /featurename:iis-webserverrole /remove

C. Uninstall-WindowsFeature FS-FileServer -Remove

D. Dism /online /disable-feature /featurename:File-Services /remove

3. Web1 is a web server on your network connected to the Internet. You have used the Uninstall-WindowsFeature cmdlet in Windows PowerShell to remove from disk the feature files for Active Directory Domain Services on Web1. Which of the following commands provides a valid method to reinstall these feature files, if you insert the product media into the D: drive? (Choose all that apply.)

A. Install-WindowsFeature –Source WIM:D:\sources\install.wim:1

B. Install-WindowsFeature –Source D:\sources\install.wim:1

C. Install-WindowsFeature –Source WIM:D:\sources\install.wim

D. Install-WindowsFeature –Source D:\sources\sxs

Objective 1.2: Configure servers

Within this objective, there are three major feature changes that were introduced in Windows Server 2012 and one major feature introduced in Windows Server 2012 R2.

First among the improvements introduced in Windows Server 2012 is the process of adding or removing server roles and features: You can now perform these functions either locally or remotely, and through either the GUI or by using Windows PowerShell. The second new feature is the ability to switch between a Server Core installation of Windows Server 2012 and an installation of Windows Server 2012 that includes a graphical user interface. Third, Windows Server 2012 introduced network interface card (NIC) teaming, a fault resiliency feature that you are likely to configure soon after installation.

The new configuration option introduced in Windows Server 2012 R2 is Windows PowerShell Desired State Configuration (DSC), which is a new code framework for ensuring servers are properly configured.


This section covers the following topics:

Image Installing roles and features

Image Configuring online and offline images with the DISM.exe utility

Image Converting between Server Core and full graphical user interface (GUI)

Image Minimal Server Interface

Image NIC teaming


Installing roles and features

You already know you can use Server Manager to add or remove roles or features locally. As we now have seen in the last objective, you can also now use the new Install-WindowsFeature and Uninstall-WindowsFeature cmdlets to achieve these same tasks in Windows PowerShell.


Image Exam Tip

Add-WindowsFeature is an alias of the Install-WindowsFeature cmdlet and Remove-WindowsFeature is an alias of the Uninstall-WindowsFeature cmdlet. You can see all of these versions on the 70-417 exam.


Even more interestingly, you can now use either Windows PowerShell or Server Manager to perform these tasks remotely.

Deploying features and roles on remote servers through Windows PowerShell

Beginning in Windows Server 2012, you can deploy roles and features on remote servers. This feature represents an important new functionality that is likely to be tested on the 70-417 exam.


Note

For the following procedures, it is assumed that the remote computer is configured to allow remote management (this is the default configuration) and that both the source and destination computers are located in the same Active Directory Domain Services domain.



More Info

For information on how to manage remote servers from Server Manager in a workgroup environment, see “Add Servers to Server Manager” at http://technet.microsoft.com/en-us/library/hh831453.


To install roles and features on a remote server by using Windows PowerShell:

1. Type Get-WindowsFeature and then press Enter to view a list of available and installed roles and features on the local server. If the local computer is not a server, run Get-WindowsFeature -ComputerName <computer_name>, where computer_name represents the name of a remote computer that is running Windows Server 2012 or Windows Server 2012 R2. The results of the cmdlet contain the command names of roles and features that you add to your cmdlet in step 4.

Note that the output of Get-WindowsFeature is long and unwieldy if you are looking just to see which features are already installed. To see only the features on the local machine that are already installed, type the following at a Windows PowerShell prompt:

Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $TRUE }

Again, you can target a remote server with the –ComputerName <computer_name> parameter. For example, to see the list of installed features on a remote server named DC1, type the following:

Get-WindowsFeature –ComputerName DC1 | Where-Object -FilterScript { $_.Installed
-Eq $TRUE }

2. Type Get-Help Install-WindowsFeature and then press Enter to view the syntax and accepted parameters for the Install-WindowsFeature cmdlet.

3. Type the following and then press Enter, where feature_name represents the command name of a role or feature that you want to install (obtained in step 1) and computer_name represents a remote computer on which you want to install roles and features. Separate multiple values forfeature_name by using commas. The -Restart parameter automatically restarts the destination server if required by the role or feature installation.

Install-WindowsFeature –Name <feature_name> -ComputerName <computer_name> -Restart

Figure 1-3 shows an example of using this cmdlet to install a feature (NFS-Client) on a remote server (WS12R2-B).

Image

FIGURE 1-3 Installing a feature on a remote server

Deploying features and roles on remote servers with Server Manager

If you prefer to use Server Manager to deploy roles and features to a remote server, you first need to add the remote server to the Server Manager server pool.

To add a remote server in Server Manager, follow these steps:

1. From the Manage menu, select Add Servers, as shown in Figure 1-4.

Image

FIGURE 1-4 Adding a remote server to manage in Server Manager

2. Do one of the following:

Image On the Active Directory tab, select servers that are in the current domain. Press Ctrl while selecting multiple servers. Click the right-arrow button to move selected servers to the Selected list.

Image On the DNS tab, type the first few characters of a computer name or IP address and then press Enter or click Search. Select servers that you want to add and then click the right-arrow button.

Image On the Import tab, browse for a text file that contains the DNS names or IP addresses of computers that you want to add, one name or IP address per line.

3. When you are finished adding servers, click OK.

The new server will appear in Server Manager when you select All Servers in the navigation pane, as shown in Figure 1-5.

Image

FIGURE 1-5 The remote server WS12-B has been added in Server Manager

After you have added the remote server to the server pool, you can deploy features to it as you would to the local server.

To install roles and features on a remote server by using Server Manager:

1. From the Manage menu of Server Manager, select Add Roles And Features.

2. On the Before You Begin page, click Next.

3. On the Select Installation Type page, select Role-Based Or Feature-Based Installation to install all parts of roles or features on a single server, or Remote Desktop Services Installation to install either a virtual machine–based desktop infrastructure or a session-based desktop infrastructure for Remote Desktop Services. The Remote Desktop Services Installation option distributes logical parts of the Remote Desktop Services role across different servers as needed by administrators. Click Next.

4. On the Select Destination Server page, select a server from the server pool. After you have selected the destination server, click Next.

5. Select roles, select role services for the role if applicable, and then click Next to select features.

6. On the Confirm Installation Selections page, review your role, feature, and server selections. If you are ready to install, click Install.

You can also export your selections to an XML-based configuration file that you can use for unattended feature installations with Windows PowerShell. To export the configuration you specified in this Add Roles And Features Wizard session, click Export Configuration Settings, as shown in Figure 1-6, and then save the XML file to a convenient location.

Image

FIGURE 1-6 Exporting an XML configuration file for use with Windows PowerShell


Image Exam Tip

You can use the Add Roles And Features Wizard to create server configuration files that can later be used to perform unattended feature installations with Windows PowerShell.


7. After you click Install, the Installation Progress page displays installation progress, results, and messages such as warnings, failures, or postinstallation configuration steps that are required for the roles or features that you installed. In Windows Server 2012 and Windows Server 2012 R2, you can close the Add Roles And Features Wizard while installation is still in progress, and view installation results or other messages in the Notifications area at the top of the Server Manager console. Click the Notifications flag icon to see more details about installations or other tasks that you are performing in Server Manager.

Windows PowerShell Desired State Configuration (DSC)

DSC is an installable feature and server configuration framework that is new to Windows Server 2012 R2. The primary advantage of this new feature is that it lets you ensure that software components of selected servers are present and properly configured.

DSC works through Windows PowerShell. To install the feature, you can use the Add Roles And Features Wizard to add the component of the Windows PowerShell feature named “Windows PowerShell Desired State Configuration.” To add the feature from an elevated Windows PowerShell prompt, type Install-WindowsFeature DSC-Service.

What’s new and different about DSC is that it’s a declarative management system. This means that, instead of performing particular tasks on one or more target servers, you declare through DSC a desired end-state for those target servers. If the servers already meet the desired configuration, no errors are generated. If the servers do not meet the desired configuration, they individually and automatically make the changes needed to bring themselves into compliance with the desired end-state.

You can use DSC to manage target servers running only Windows Server 2012 R2 by default. However, if you install Windows Management Framework 4.0 on servers running Windows Server 2008 R2 and Windows Server 2012, you can manage these servers through DSC as well.

There are three steps to using DSC after you install it on the management and target servers:

1. Define the desired configuration by creating a new Configuration function in the Windows PowerShell ISE tool. You give this function a name of your choice and use it to invoke DSC resources such as WindowsFeature, File, Group, or Service. You use the syntax of each DSC resource to define the specific components you want to ensure are configured properly on the target server or servers.

2. Enact the configuration by calling (typing) your new function at a Windows PowerShell prompt. This step turns your desired configuration into a Managed Object Format (MOF) file that is usable with the Start-DscConfiguration cmdlet. (Start-DscConfiguration is the cmdlet you use to apply configurations to servers through DSC.) The MOF file is created beneath the current directory in a new subdirectory with the name of your new function.

3. Run the following Windows PowerShell command:

Start-DscConfiguration -Wait -Verbose -Path .\FunctionName

where FunctionName is the name of your Configuration function. Note that the –Wait and –Verbose parameters are merely recommended and not required. Also note that if the target server is remote, you first need need to copy the MOF file to the remote server before you can run Start-DscConfiguration.

The following is an example Configuration function named EnsureIIS. Its purpose is to ensure that the IIS role is installed on the server named Web1. Read the code along with the comments to get an idea of the basic syntax you might need to understand for the 70-417 exam.

Configuration EnsureIIS
{
# First you have to specify one ore more servers with the keyword "Node."
# A node is a server on which the configuration will take place.
Node "Web1"
{
# After specifying the node, you have to specify one or more DSC resources.
# WindowsFeature is one of the many built-in DSC resources.
# Each DSC resource has specific syntax for configuring components.
WindowsFeature IIS
{
Ensure = "Present" # You would set this to "Absent" to uninstall the role.
Name = "Web-Server"
}
}
}

After you run this code, you would type EnsureIIS at the same prompt. This step creates an MOF file in a new directory named EnsureIIS beneath your current directory.

Finally, you would run the following command at the same prompt (or another prompt pointed at the same location in the file structure):

Start-DscConfiguration -Wait -Verbose -Path .\EnsureIIS

This final step would install IIS if it were not already installed.

What do you need to know about DSC for the 70-417 exam? First of all, you need to understand the scenarios in which DSC is useful. The key concept here is that DSC provides declarative management. This means that with DSC you can enforce a desired configuration on remote servers without generating an error if one or more of those target servers is already in compliance. So, if you see a question scenario that calls for a way to manage servers by specificying a target state for those servers, you should suspect that DSC is at least part of the answer.

Next, you should also remember that DSC includes resources for supporting the following configuration components:

Image Enabling or disabling server roles and features

Image Managing registry settings

Image Managing files and folders

Image Starting, stopping, and managing processes and services

Image Managing local user and group accounts

Image Deploying new software packages

Image Managing environment variables

Image Running Windows PowerShell scripts

Third, you should understand the basic steps required to configure a server through DSC. For example, you might be presented with a scenario in which you have already created a Configuration function called MyConfig, and you will be asked which step to take next. (Answer: Type MyConfig. Don’t use Start-DscConfiguration yet).

Finally, it is possible that you will need to understand some very simple DSC code, especially the basic syntax for DSC resources. Remember above all that the line Ensure = “Present” in a resource block of code ensures that a feature is installed and Ensure = “Absent” ensures that a feature is not installed.

DSC Resources

Aside from the WindowsFeature DSC resource in the code example above, you should also learn to understand basic syntax for the File, Group, and Service resources. The following is an example of using the File DSC resource, which could appear as a resource block in a Configuration function beneath “Node”:

File DirectoryCopy
{
Ensure = "Present" # You can also set Ensure to "Absent."
Type = "Directory" # Default is "File"
Recurse = $true # Ensure presence of subdirectories, too.
SourcePath = "C:\Users\Public\Documents\DSCDemo\DemoSource"
DestinationPath = "C:\Users\Public\Documents\DSCDemo\DemoDestination"
}

The following is an example of the Group resource:

Group GroupExample
{
# This will remove TestGroup, if present.
# To create a new group, set Ensure to "Present."
Ensure = "Absent"
Name = "TestGroup"
}

And the following is an example of the Service resource:

Service ServiceExample
{
Name = "TermService"
StartupType = "Manual"
}


More Info

You can view the syntax for all the built-in DSC resources at http://technet.microsoft.com/en-us/library/dn249921.aspx.


Parametrized Functions

You can write your Configuration function to accept parameters, which lets you apply your configuration to any server. For example, before the line beginning with “Node” in the function EnsureIIS, you could include the following line:

param ($MyTargetNodeName)

Then instead of specifying a particular server (“Web1”) in the line beginning with “Node”, you would include this line:

Node $MyTargetNodeName

When you called the function in step 2, you would specify the target computer this way:

EnsureIIS –MyTargetNodeName Web1

The advantage of this code is that it would also let you target another server, such as Web2. So, using a parameter, you could quickly generate an MOF file to configure any server in the way specified in the Configuration function.

Configuring features in a sequence with the REQUIRES keyword

Sometimes you have to configure features on a server in a particular order. For example, you have to install IIS before you can configure its default website to stop. In this case, you need to use the Requires keyword in a resource block. The following is an example of a website resource defined in a code block that uses the Requires keyword in just such a way:

# Stop the default web site.
Website DefaultSite
{
Ensure = "Present"
Name = "Default Web Site"
State = "Stopped"
PhysicalPath = "C:\inetpub\wwwroot"
Requires = "[WindowsFeature]IIS"
}


Image Exam Tip

Don’t be too intimidated by DSC. The most important thing to remember about it for the exam is what it is used for. It’s quite possible that if you see a question about DSC on the exam, the question will test only your understanding of the purpose of the feature. That said, to be well-prepared for the exam and to gain a deeper understanding of the feature, you really need to try it out in a test environment. You will find that it isn’t as hard to understand as it looks.


Windows PowerShell Web Access (PSWA)

Windows PowerShell Web Access (PSWA) is a feature that first appeared in Windows Server 2012. PSWA allows administrators to connect to a Windows PowerShell prompt on a remote server through a web site hosted on that remote server. For security, users are blocked from accessing the PSWA site unless they are specifically given access to it through authorization rules. These authorization rules also specify the computers from which authorized users are allowed access to PSWA.

To configure PSWA, you first need to install the feature, which is a component of the Windows PowerShell feature. (Installing the PSWA component automatically installs Internet Information Services [IIS] if it isn’t already installed.) Then, you need to take the following steps:

1. At a Windows PowerShell prompt, type the command Install-PswaWebApplication. PSWA is a web application whose name on the exam may be referred to as the “Windows PowerShell Web Access gateway.” Running the Install-PswaWebApplication cmdlet will install and configure the PSWA gateway on Default Web Site in IIS. The URL for the gateway is https://servername/pswa, where servername represents the name of the server.

2. Bind a valid SSL certificate to port 443 on the Default Web Site in IIS. (For testing purposes, you can avoid this step if you use the –UseTestCertificate parameter with the Install-PswaWebApplication cmdlet. The –UseTestCertificate parameter generates a self-signed SSL certificate and binds it to Default Web Site.)

3. At a Windows PowerShell prompt, use the Add-PswaAuthorizationRule cmdlet to configure authorization rules for specific users and computers. Use the –UserName parameter to specify authorized users, the –ComputerName parameter to specify authorized computers from which connections are allowed, and the –ConfigurationName parameter specifies the Windows PowerShell session configuration file on the local server for which these authorization rules apply.

Here is an example authorization rule, which authorizes Contoso\JohnM and Contoso\NancyB to connect from Srv2.contoso.com when the default Windows PowerShell session configuration file is active on the local server:

Add-PswaAuthorizationRule –UserName Contoso\JohnM, Contoso\NancyB –ComputerName
Srv2.contoso.com -ConfigurationName Microsoft.PowerShell


Image Exam Tip

Expect to see a question about how to configure PSWA on the exam. Remember especially the significance of the Install-WebApplication and Add-PswaAuthorizationRule cmdlets.



More Info

For more information on configuring PSWA, see “Install and Use Windows PowerShell Web Access” at http://technet.microsoft.com/en-us/library/hh831611.aspx.


Deployment Image Servicing and Management

If you received your MCSA certification for Windows Server 2008 before the release of R2, you might have missed hearing about the Deployment Image Servicing and Management (DISM) utility. DISM is an image configuration tool that first appeared in Windows 7 and Windows Server 2008 R2, and its functionality was expanded in the first release of Windows Server 2012. DISM replaced several deployment tools that were used in Windows Server 2008 and Windows Vista, including PEimg, Intlcfg, ImageX, and Package Manager.

In Windows 8 and Windows Server 2012 and later, DISM helps you service Windows Imaging (WIM), VHD, and the new VHDX file types.

You can use DISM with .wim files to do the following:

Image Capture and apply Windows images

Image Append and delete images in a .wim file

Image Split .wim files into several smaller files

You can use DISM with .wim, .vhd, or .vhdx files to do the following:

Image Add, remove, and enumerate packages

Image Add, remove, and enumerate drivers

Image Enable or disable Windows features

Image Upgrade a Windows image to a different edition

Image Prepare a Windows PE image

An important thing to know about DISM is that you can use it to service online images as well as offline images. Servicing the online image is essentially the same as configuring the local running installation of Windows.


Note

Beginning in Windows 8 and Windows Server 2012, Windows PowerShell includes a new module for DISM. You can review the cmdlets in this module by typing the command Get-Command -Module Dism at a Windows PowerShell prompt. For more information about this module, visit http://technet.microsoft.com/en-us/library/hh852126.


Add features to and remove features from an offline image with DISM

Before you can service an offline image, you need to mount the image in the file structure, specifying the image by index or name. In Windows Server 2012 and Windows Server 2012 R2, you can first find the image names and indexes within an image file by using DISM with the /Get-ImageInfo switch. For example, to see the listed images within an image file named Install.wim that is stored in C:\images, type the following:

Dism /Get-ImageInfo /ImageFile:C:\images\install.wim

The output of this command is shown in Figure 1-7.

Image

FIGURE 1-7 Obtaining image information from an image file

Once you know the name or index of the desired image, you can mount it in a specified directory. For example, use the following command to mount the image with index 2 in the C:\images\offline directory:

Dism /Mount-Image /ImageFile:C:\images\install.wim /index:2 /MountDir:C:\images\offline

At this point, you can use the /Get-Features switch if needed to determine the command name of the relevant features or to determine which features are enabled on the image and which are not:

Dism /Image:C:\images\offline /Get-Features

Finally, you can use DISM to point to the mounted image and enable a desired feature. You can use the /All argument to enable all of the parent features in the same command. For example, to enable the Remote-Desktop-Services role and all parent features, type the following:

Dism /Image:C:\images\offline /Enable-Feature /FeatureName:Remote-Desktop-Services /All

If you want to remove or disable a feature from an offline image, use the /Disable-Feature switch. For example:

Dism /Image:C:\images\offline /Disable-Feature /FeatureName:Remote-Desktop-Services


Image Exam Tip

You can use Dism and the /Add-Package option to apply to an image an update in the form of a .cab or .msu package. Use the /IgnoreCheck option if you don’t want to verify the applicability of each package before installing. Use the /PreventPending option to skip the installation of the package if a system restart is required.



More Info

For more information on DISM in Windows Server 2012, visit http://technet.microsoft.com/en-us/library/hh825236.aspx.


Converting a server with a GUI to or from Server Core

As in Windows Server 2008 and Windows Server 2008 R2, Windows Setup in Windows Server 2012 and Windows Server 2012 R2 allows you to choose either of two installation types: Server Core Installation or Server With A GUI (also called a full installation), as shown in Figure 1-8. One of the more interesting features first introduced in Windows Server 2012 is the ability to convert a full installation to a Server Core Installation and vice-versa.

Image

FIGURE 1-8 Windows Server 2012 and Windows Server 2012 R2 include a Server Core Installation option and a Server With A GUI option

You can switch between a Server Core installation and a full installation in Windows Server 2012 and Windows Server 2012 R2 because the difference between these installation options is now contained in two specific Windows features that can be added or removed. The first feature, Graphical Management Tools and Infrastructure (Server-Gui-Mgmt-Infra), provides a minimal server interface and server management tools such as Server Manager and the Microsoft Management Console (MMC). The second feature, Server Graphical Shell (Server-Gui-Shell), is built on this first feature and provides the rest of the GUI experience, including Windows Explorer. In Figure 1-9, you can see these two features in the Add Roles And Features Wizard, on the Select Features page, beneath User Interfaces And Infrastructure.

Image

FIGURE 1-9 Two features are responsible for the difference between the full installation and Server Core

To convert a full installation to Server Core, simply remove these two features in Server Manager. Note that removing the first feature will automatically remove the second, dependent feature.


Note

As shown in Figure 1-9, Desktop Experience is a third available GUI feature. It builds on the Server Graphical Shell feature and is not installed by default in the Server with a GUI installation of Windows Server 2012 or Windows Server 2012 R2. Desktop Experience makes available Windows 8 and Windows 8.1 client features such as Windows Media Player, desktop themes, and photo management.


You can remove these graphical interface features also in Windows PowerShell or by using the DISM utility at a normal command prompt. If you have deployed a GUI installation of Windows Server 2012 or Windows Server 2012 R2 and want to convert it into a Server Core installation, run the following Windows PowerShell command:

Uninstall-WindowsFeature Server-Gui-Mgmt-Infra –Restart

To perform the same step by using DISM, type the following:

Dism /Online /Disable-Feature /Featurename:ServerCore-FullServer
/Featurename:Server-Gui-Shell /Featurename:Server-Gui-Mgmt

Remember that you need only to specify Server-Gui-Mgmt-Infra for removal in order to remove both this feature and Server-Gui-Shell. Once the graphical management tools and graphical shell have been removed, the server restarts. When you log back on, you are presented with the Server Core user interface.

The process can be reversed by adding both features back. You can do this from a remote server through the Add Roles And Features Wizard in Server Manager. You can also do it locally by running the following Windows PowerShell command:

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart

Note that when you install these two features from Windows PowerShell, you must specify them both.

To use the DISM utility to add the GUI features back, type the following at an elevated prompt:

Dism /Online /Enable-Feature /Featurename:ServerCore-FullServer
/Featurename:Server-Gui-Shell /Featurename:Server-Gui-Mgmt


Note

If you just want to configure basic settings in a Server Core installation of Windows Server 2012 or Windows Server 2012 R2 as opposed to adding or removing entire features, you can use the Sconfig utility. This utility appeared in Windows Server 2008 R2 and allows you to set the domain/workgroup, computer name, Remote Desktop, network settings, date and time, Windows activation, Windows Update, and other similar settings.


Minimal Server Interface

The server with a GUI option is made up of two cumulative features built on top of Server Core in Windows Server 2012 and Windows Server 2012 R2. You have the option of installing only the first of these graphical features: Graphical Management Tools And Infrastructure (Server-Gui-Mgmt-Infra). Doing so results in what is called the Minimal Server Interface, shown in Figure 1-10. This form is not available when you install Windows Server 2012 or Windows Server 2012 R2, but you can configure it through Server Manager or Windows PowerShell. To configure a server with the Minimal Server Interface in Server Manager, begin with a full installation and then simply remove the Server Graphical Shell feature by using the Remove Roles And Features Wizard. In Windows PowerShell, you can either begin with a full installation and remove only the Server-Gui-Shell feature or you can begin with a Server Core installation and add only the Server-Gui-Mgmt-Infra feature.

Image

FIGURE 1-10 The new Minimal Server Interface option makes Server Manager and other administrative tools available without a desktop or Start screen

The relationship between the Minimal Server Interface and the Server With A GUI installation levels is illustrated in Figure 1-11.

Image

FIGURE 1-11 Server-Gui-Shell is the difference between Server With A GUI and Minimal Server Interface

When you configure the Minimal Server Interface, the following elements are removed from the full installation:

Image Desktop

Image Start screen

Image Windows Explorer

Image Windows Internet Explorer

However, the following management tools are available in the Minimal Server Interface:

Image Server Manager

Image Microsoft Management Console (MMC) and snap-ins

Image Subset of Control Panel

The Minimal Server Interface is a good option if you want to reduce the footprint of your installation but prefer not to be restricted to command-line-based management.


Image Exam Tip

Expect to see questions on the 70-417 exam about converting between a Server Core installation, a Server With A GUI installation, and a Minimal Server Interface installation. Be sure to remember the command names of the features Server-Gui-Mgmt-Infra and Server-Gui-Shell, as well as how to remove the GUI by using Server Manager, Windows PowerShell, or the Dism utility.



More Info

For more information about converting between installation options in Windows Server 2012, see “Server Core and Full Server Integration Overview” at http://technet.microsoft.com/en-us/library/hh831758.aspx and “Windows Server Installation Options” athttp://technet.microsoft.com/en-us/library/hh831786.aspx.


NIC teaming

NIC teaming, also known as Load Balancing and Failover (LBFO), is a feature that was introduced in Windows Server 2012 and that enables multiple network adapters on a server to be grouped together into a team. NIC teaming has two purposes:

Image To help ensure the availability of network connectivity if one adapter fails

Image To aggregate network bandwidth across multiple network adapters

Before Windows Server 2012, implementing network adapter teaming on Windows Server required using third-party solutions from independent hardware vendors. However, network adapter teaming is now built into the Windows Server operating system and can therefore work across different NIC hardware types and manufacturers.

Windows NIC teaming supports up to 32 network adapters in a team in three modes:

Image Static Teaming Also called Generic Teaming, the Static Teaming mode is based on IEEE 802.3ad draft v1 and is supported by most server-class Ethernet switches. It requires manual configuration of the switch and the server to identify which links form the team.

Image Switch Independent The Switch Independent mode allows each NIC in a team to connect to different switches.

Image LACP Also called Dynamic Teaming, the LACP mode is based on IEEE 802.1ax and is supported by most enterprise-class switches. It allows teams to be automatically created through the Link Aggregation Control Protocol (LACP). LACP dynamically identifies links between the server and a specific switch. To use this mode, you generally need to enable LACP manually on the port of the switch.

NIC teaming can be enabled from Server Manager or by using Windows PowerShell. In Server Manager, you can begin by right-clicking the server you want to configure and selecting Configure NIC Teaming, as shown in Figure 1-12.

Image

FIGURE 1-12 Configuring NIC teaming in Server Manager

In the NIC Teaming dialog box that opens, select the network adapters you want to team. Then right-click and select Add To New Team, as shown in Figure 1-13.

Image

FIGURE 1-13 Adding network adapters to a new team

In the New Team dialog box, shown in expanded mode in Figure 1-14, you can configure the teaming mode and other settings as you want.

Image

FIGURE 1-14 Configuring team properties

Clicking OK completes the process and, if successful, the new team will be displayed in both the Teams area and the Adapters And Interfaces area of the NIC Teaming dialog box, shown in Figure 1-15.

Image

FIGURE 1-15 A newly configured network team

To configure and manage NIC teaming in Windows PowerShell, use cmdlets such as New-NetLbfoTeam to add a new team or Get-NetLbfoTeam to display the properties of a team. The cmdlets for managing NIC teaming are defined in the Windows PowerShell module named NetLbfo, and as Figure 1-16 shows, you can use the Get-Command cmdlet to display all the cmdlets defined in this module. You could then use the Get-Help cmdlet to learn the syntax for any of the functions displayed. For example, type Get-Help New-NetLbfoTeam to find out more about the New-NetLbfoTeam cmdlet.

Image

FIGURE 1-16 Cmdlets for NIC teaming


Image Exam Tip

Remember that each network adapter team is assigned a single IP address.



More Info

For more information about NIC teaming in Windows Server 2012, see the NIC teaming overview at http://technet.microsoft.com/en-us/library/hh831648.aspx. For more in-depth information, search for the white paper titled “Windows Server 2012 NIC Teaming (LBFO) Deployment and Management” on http://technet.microsoft.com.


Objective summary

Image The Dism.exe utility was introduced in Windows 7 and Windows Server 2008 R2. It allows you to service WIM files, VHD files, VHDX files, and online installations of Windows, including adding and removing features, packages, and drivers.

Image New to Windows Server 2012 and Windows Server 2012 R2 is the ability to deploy roles and features to remote servers.

To perform this task in Windows PowerShell, use the following command:

Install-WindowsFeature –Name <feature_name> -ComputerName <computer_name> -Restart

To perform this task in Server Manager, you first need to add the remote server to the server pool. Then install the role or feature as you would to the local server.

Image Windows PowerShell Desired State Configuration (DSC) is a new framework in Windows Server 2012 R2 that allows you to use Windows PowerShell scripting to ensure that selected servers are configured properly. To use DSC, you create a Configuration function in Windows PowerShell that defines a configuration for specified servers (nodes) and resources. You then call the function to generate an MOF file in a subdirectory. Finally, to ensure that the target server is configured according to your specification, you use the Start-DscConfiguration cmdlet to specify a path to the MOF file.

Image In Windows Server 2012 and Windows Server 2012 R2 you can convert between a Server Core installation and a full (Server With A GUI) installation. To do so, you can begin from a full installation and then type the following command in Windows PowerShell:

Uninstall-WindowsFeature Server-Gui-Mgmt-Infra -restart

If you later want to reinstall the full graphical interface, type the following command in Windows PowerShell:

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart

Image NIC teaming is a feature introduced in Windows Server 2012 that allows you to group two or more NICs together to aggregate bandwidth and help ensure the availability of network connectivity. You can configure NIC teaming by using Server Manager or the New-NetLbfoTeam cmdlet.

Objective review

Answer the following questions to test your knowledge of the information in this objective. You can find the answers to these questions and explanations of why each answer choice is correct or incorrect in the “Answers” section at the end of the chapter.

1. You work in the IT department for Contoso.com, which has approximately 200 employees. Your manager has created a new image named Basic.wim that will be used to deploy Windows Server 2012 R2. She has now asked you to modify the image with an index of 1 within this image file so that the IIS-WebServer feature is disabled. You move the Basic.wim file from network storage to your server, which is running Windows Server 2012 R2. Which of the following actions should you take next?

A. Use DISM with the /Mount-Image option.

B. Use DISM with the /Disable-Feature option.

C. Use the Uninstall-WindowsFeature cmdlet without the –Remove parameter.

D. Use the Uninstall-WindowsFeature cmdlet with the –Remove parameter.

2. You want to install Windows Server 2012 R2 and configure an interface that includes Server Manager but not Windows Explorer. What should you do? (Choose two.)

A. Choose the Server Core installation of Windows Server 2012 R2.

B. Choose the Server With A GUI installation of Windows Server 2012 R2.

C. Remove the Graphical Management Tools and Infrastructure feature.

D. Add the Graphical Management Tools and Infrastructure feature.

3. You have built a new server with network adapters from two different manufacturers. You want to use these two adapters to provide resiliency for the server’s network connectivity, so that in case one adapter fails, the other will continue to operate with the same configuration settings. What should you do?

A. Install the Network Load Balancing feature.

B. Install the Multipath I/O feature.

C. Use the New-NetLbfoTeam cmdlet.

D. Use the Set-NetConnectionProfile cmdlet.

4. You want to ensure that a server named Web1 has Internet Information Services installed. Web1 is currently running Windows Server 2012 R2.

On Web1, you create the following function in Windows PowerShell ISE and then run the code.

Configuration MyConfig
{
Node "Web1"
{
WindowsFeature IIS
{
Ensure = "Present"
Name = "Web-Server"
}
}
}

You want to check the configuration of Web1 as soon as possible. What should you type next at the Windows PowerShell prompt?

A. MyConfig

B. MyConfig Web1

C. Start-DscConfiguration .\MyConfig

D. Start-DscConfiguration .\Web1

Objective 1.3: Configure local storage

For the 70-417 exam, this objective is likely to focus on Storage Spaces, an interesting feature introduced in Windows Server 2012 that adds SAN-like flexibility to your local storage. The topic of Storage Spaces can be broken down into primordial pools, new storage pools, and virtual disks.


This section covers the following topics:

Image Creating and configuring storage pools

Image Provisioning virtual disks

Image Designing storage spaces


Introducing Storage Spaces

Storage Spaces is a feature introduced in Windows Server 2012 that provides for a single server the same storage flexibility provided by a storage area network (SAN)—but by using inexpensive, locally-attached disks. Installed by default, Storage Spaces allows you to create storage pools from which you can provision storage as needed.

Once you’ve created a storage pool using Storage Spaces, you can provision storage from the pool by creating virtual disks, also called logical unit numbers (LUNs). A virtual disk behaves exactly like a physical disk except that it can span multiple physical disks within the storage pool.

Storage Spaces has the following requirements:

Image Windows Server 2012 or Windows Server 2012 R2.

Image One physical drive is required to create a storage pool; a minimum of two physical drives are needed to create a resilient mirror storage space.

Image A minimum of three physical drives is required to create a storage space with resiliency through parity or three-way mirroring.

Image Drives must be unpartitioned and unformatted.

Image Drives must have at least 10 GB capacity.

Image Drives can be attached either internally or externally (individually or in a just-a-bunch-of-disks [JBOD] enclosure). The following bus technologies are supported:

Image SATA (not possible to use in a failover cluster).

Image SCSI (not supported in a failover cluster).

Image Serial Attached SCSI (SAS) arrays that support SCSI Enclosure Services (SES).

Image USB (external drives for local storage only; not possible to use in a failover cluster or recommended for file servers).

Installing Storage Spaces

To install Storage Spaces, use the Add Roles And Features Wizard to add the File Server role service. This role service is found under File and iSCSI Services in the File and Storage Services role. You can also install the File Server role service by using Windows PowerShell as follows:

Install-WindowsFeature -Name FS-FileServer


Note

Storage Services, another role service of the File and Storage Services role, is always installed by default on Windows Server 2012 and Windows Server 2012 R2 and provides general storage management functionality needed by other server roles.


Creating a storage pool

To create a storage pool, Storage Spaces requires a server to have at least one attached physical disk of at least 10 GB without any partitions or volumes. Any physical disks that meet these two criteria are automatically added to what is called the server’s primordial pool. The primordial pool is the complete set of locally available disks from which a storage pool can be created. Figure 1-17 shows in Server Manager the primordial pools available to the server named WS12-A and WS12-B, respectively.

Image

FIGURE 1-17 A primordial pool is composed of all unallocated physical disks larger than 10 GB available to a server


Image Exam Tip

Physical disks that are initialized in Server Manager are automatically configured with the GUID Partition Table (GPT) partition style, not the Master Boot Record (MBR) partition style.


You can use Server Manager or Windows PowerShell to configure your storage pools from a primordial pool. To create a storage pool in Windows PowerShell, use the New-StoragePool cmdlet. To create a new storage pool using Server Manager, first make sure that you have navigated to File And Storage Services\Volumes\Storage Pools. Then select New Storage Pool from the Tasks menu in the Storage Pools area, as shown in Figure 1-18.

Image

FIGURE 1-18 Creating a new storage pool

This step opens the New Storage Pool Wizard. After specifying a server (primordial pool) and name for your new pool, you can select which physical disks you want to include in your pool, as shown in Figure 1-19.

Image

FIGURE 1-19 Selecting which physical disks to add to the storage pool


Image Exam Tip

Remember that if you want the storage pool to support failover clusters, you have to use SAS storage arrays that support SES.


For each disk that you add to the pool, you can choose one of the following allocation types:

Image Automatic This is the default setting. For this allocation type, the capacity on drives is set automatically.

Image Hot Spare Physical disks added as hot spares to a pool act as reserves that are not available for provisioning in the creation of virtual disks. If a failure occurs on a drive in a pool that has an available hot spare, the spare will be brought online to replace the failed drive.


Image Exam Tip

If you want to add a hot spare to your storage pool and plan to create a mirrored drive later, you need at least three physical disks in the storage pool: one for the hot spare and two to support the mirror.


Creating virtual disks

After a storage pool is created, you can use Server Manager to provision new virtual disks from this new available storage. These new virtual disks will appear as unallocated disks in Disk Management, from which you can then create volumes. Note that a virtual disk is the representation of virtualized storage and should not be confused with the VHD that is used in the context of Hyper-V or the iSCSI Target Server.

To create a virtual disk in Windows Powershell, use the New-VirtualDisk cmdlet. To create a virtual disk in Server Manager, complete the following steps:

1. In Server Manager, choose File And Storage Services and then Storage Pools.

2. Locate a storage pool (not a primordial pool) that you want to use to support the new virtual disk.

3. Right-click the storage pool and select New Virtual Disk to start the New Virtual Disk Wizard, as shown in Figure 1-20.

Image

FIGURE 1-20 Creating a new virtual disk in a storage pool

4. On the first pages of the wizard, verify that the correct server and storage pool are selected, and provide a name and description for the new virtual disk.

5. On the Select The Storage Layout page (see Figure 1-21), specify one of the following three data redundancy types for the virtual disk:

Image Simple A simple virtual disk provides data striping across physical disks, but no redundancy. Administrators should not host irreplaceable user data on a simple space. A simple space maximizes capacity and throughput and therefore can be a good candidate for hosting temp files or easily re-created data at a reduced cost.

Image Parity A parity virtual disk is similar to a hardware Redundant Array of Inexpensive Disks RAID5. Data, along with parity information, is striped across multiple physical disks. Parity enables Storage Spaces to continue to service read and write requests even when a drive has failed, and it provides this fault tolerance with efficient use of storage. A minimum of three physical disks is required for parity virtual disks. Note that a parity disk cannot be used in a failover cluster.

Image Mirror A mirror virtual disk maintains either two or three copies of the data it hosts: two data copies for two-way mirror spaces or three data copies for three-way mirrors. All data writes are repeated on all physical disks to ensure that the copies are always current. Mirror spaces are attractive due to their greater data throughput and lower access latency compared to parity disks.

Image

FIGURE 1-21 Selecting a storage layout


Image Exam Tip

Make sure you understand the advantages and disadvantages of simple, parity, and mirror spaces.


6. On the Specify The Provisioning Type page, choose one of the following provisioning types:

Image Thin Thin provisioning is a mechanism that allows storage capacity not to be allocated until datasets require the storage. You specify a maximum size for the virtual disk, and the capacity of the virtual disk grows as needed. Thin provisioning optimizes utilization of available storage, but it adds a few extra I/Os that can cause an occasional latency increase.

Image Fixed Fixed provisioned spaces allocate storage capacity upfront, at the time the space is created.


Image Exam Tip

Expect to see a reference to thin provisioning on the 70-417 exam.


7. On the Specify The Size Of The Virtual Disk page, choose a size for the virtual disk.

8. Confirm all the selections and then click Create.

The new virtual disk appears in both Server Manager and Disk Management. The view in Server Manager is shown in Figure 1-22.

Image

FIGURE 1-22 A new virtual disk created from a storage pool in Server Manager

Objective summary

Image Storage Spaces was introduced in Windows Server 2012 and provides flexible provisioning of local storage to a server.

Image All locally attached, unpartitioned physical disks with a capacity of at least 10 GB are automatically added to a server’s primordial pool. A primordial pool is the complete set of locally available disks from which a storage pool can be created.

Image Storage pools can be created from one or more physical disks. If you want to be able to create a mirrored virtual disk later from a storage pool, you need to add at least two physical disks to that storage pool. If you want to be able to create a virtual disk with parity later from a storage pool, you need to add at least three physical disks to that storage pool. On top of those requirements, you need to add one additional physical disk to a storage pool for each hot spare you want to be available to the storage.

Image Thin provisioning is a new feature in Windows Server 2012 and Windows Server 2012 R2 that allows you to create drives that don’t require all of their storage capacity to be allocated immediately. Thin provisioning optimizes available storage capacity for virtual disks.

Image When you create new virtual disks from a storage pool, they appear in Disk Management as new, unallocated disks.

Objective review

Answer the following questions to test your knowledge of the information in this objective. You can find the answers to these questions and explanations of why each answer choice is correct or incorrect in the “Answers” section at the end of the chapter.

1. You want to create a storage pool that can be used with a failover cluster. Which of the following disk types can you use?

A. Internal SCSI

B. Serial-Attached SCSI

C. Internal SATA

D. iSCSI

2. You want to create a storage pool that maximizes available storage capacity while including built-in fault tolerance and data resiliency. You also want to include a hot spare so that if a physical disk fails, another will be brought online to replace it.

Which configuration should you choose for your storage pool? Assume you want to use the minimum number of physical disks possible.

A. Three physical disks and a mirror layout

B. Three physical disks and a parity layout

C. Four physical disks and a mirror layout

D. Four physical disks and a parity layout

3. You want to increase the size of a server’s primordial pool. Which of the following disks can you use? (Choose all that apply.)

A. A 20 GB external USB drive

B. A 12 GB internal SCSI drive

C. An 8 GB SATA drive

D. A 5 GB Serial-Attached SCSI drive


Image Thought experiment: Installing and configuring servers at Fabrikam

You work as a network administrator in a company named Fabrikam.com. The Fabrikam Finance department requires a new server to support a web application that runs on Windows Server 2012 R2. Your manager asks you to help design and plan for the server. She specifies the following requirements:

Image Operating system installation and configuration

The application requires a GUI to be installed. The server should not be limited to command-line administration only, but it can be managed through remote administration. Within these limitations, the attack surface of the server must be minimized, and performance must be optimized.

Image Network

The network requires a single network connection with fault tolerance, so if one adapter fails, there will be no loss in connectivity, and the IP address will not change.

Image Storage

You have an eight-bay disk array and eight 1 TB SATA disks available to attach to the new server. The disk array will be reserved for data storage. Your manager wants to use as few of these disks as possible while using the Storage Spaces feature to meet the following storage requirements:

Image Virtual Disk 1: Triple mirrored with a capacity of 100 GB

Image Virtual Disk 2: Parity disk with a capacity of 200 GB

Image One hot spare for each storage pool

How do you answer the following design questions from your manager? You can find the answers to these questions in the “Answers” section.

1. How should you reconcile the requirement for a GUI during installation with the need to minimize the attack surface?

2. Is this server an ideal candidate for a Minimal Server Interface configuration? Why or why not?

3. What are two possible solutions to meet the needs for fault-tolerant network connectivity?

4. How many physical disks do you need to reserve for the application at a minimum? What is the minimum number of storage pools you need?


Answers

This section contains the answers to the Objective Reviews and the Thought Experiment.

Objective 1.1: Review

1. Correct answers: B, C

A. Incorrect: You cannot install Windows Server 2012 or Windows Server 2012 R2 on the existing server because those operating systems require a 64-bit CPU.

B. Correct: You need to replace the existing server with another that has a 64-bit CPU.

C. Correct: This command removes from disk the feature files of any uninstalled roles and features.

D. Incorrect: This command uninstalls every feature that is currently installed. It doesn’t reduce the size of the installation image.

2. Correct answers: A, B

A. Correct: This command will delete from disk all the feature files for the Web Server role.

B. Correct: This command will remove from disk all the feature files for the Web Server role except for the manifest file.

C. Incorrect: You should not execute this command because it will remove the File Server role service from the server, and the server’s only stated function is that of a file server.

D. Incorrect: You should not execute this command because it will remove the File Server role service from the server, and the server’s only stated function is that of a file server.

3. Correct answers: A, D

A. Correct: When you specify a path to source files with the Install-WindowsFeature cmdlet, you can use the WIM: prefix at the beginning and specify at the end a particular index number to the image that contains the source files you want.

B. Incorrect: You need to use the WIM: prefix before the path and the source.

C. Incorrect: You need to specify an image index after the path.

D. Correct: You can specify a path to the \sources\sxs directory on the product DVD.

Objective 1.2: Review

1. Correct answer: A

A. Correct: You need to mount the image file before you can service it.

B. Incorrect: You need to mount the image before you can disable any feature in it.

C. Incorrect: You can use Uninstall-WindowsFeature on a VHD file, but not a WIM file.

D. Incorrect: You can use Uninstall-WindowsFeature on a VHD file, but not a WIM file.

2. Correct answers: A, D

A. Correct: The interface requirements describe the Minimal Server Interface. To configure this interface type, you can either start with a Server Core installation and add Graphical Management Tools And Infrastructure, or you can start with a Server With A GUI installation and remove Server Graphical Shell. Removing Server Graphical Shell is not provided as an answer choice, so you have to start with a Server Core.

B. Incorrect: Removing Server Graphical Shell is not provided as an answer choice, so you cannot start with a full installation of Windows Server 2012 R2.

C. Incorrect: Removing the Graphical Management Tools And Infrastructure feature would transform a full installation into a Server Core installation. The Server Core installation would not make Server Manager available.

D. Correct: The Graphical Management Tools And Infrastructure feature includes Server Manager and some other basic administrative tools, but it does not include Windows Explorer. Adding this feature to a Server Core installation would result in the desired configuration.

3. Correct answer: C

A. Incorrect: Network Load Balancing is used to configure many different servers to answer requests for a service at a single address.

B. Incorrect: Multipath I/O is used to provide multiple data paths to a storage device.

C. Correct: This cmdlet is used to create a new NIC team. NIC teaming is used to provide failure resiliency to physical network connections.

D. Incorrect: This cmdlet is used to set a profile to a network connection. It is not used to provide failure resiliency to physical network connections.

4. Correct answer: A

A. Correct: After you create the function, you need to invoke or call the function by typing its name. This step will generate an MOF file that provides configuration information that can be used with the Start-DscConfiguration cmdlet. The MOF file will be created in a subdirectory named after the new function.

B. Incorrect: You would specify the name of the server only if an appropriate parameter had been defined for the node in the function. The MyConfig function specifies a particular server by name.

C. Incorrect: You need to run this command after you call the function. Running this command will complete the process and ensure that IIS is installed on Web1.

D. Incorrect: Although you need to run the Start-DscConfiguration cmdlet, the path specified here is incorrect. You would need to specify the .\MyConfig path, not the .\Web1 path.

Objective 1.3: Review

1. Correct answer: B

A. Incorrect: SCSI disks cannot be used in failover clusters.

B. Correct: Serial-Attached SCSI (SAS) disks can be used to create a storage pool that can support a failover cluster.

C. Incorrect: SATA disks cannot be used in failover clusters.

D. Incorrect: iSCSI disks cannot be used to create a storage pool that can support a failover cluster.

2. Correct answer: D

A. Incorrect: You want a parity layout so that the storage capacity is maximized.

B. Incorrect: You need four physical disks: three to support the parity layout and a fourth for the hot spare.

C. Incorrect: You want a parity layout so that the storage capacity is maximized.

D. Correct: You want a parity layout so that the storage capacity is maximized, and you need four physical disks: three to support the parity layout and a fourth for the hot spare.

3. Correct answers: A, B

A. Correct: You can use external USB drives in storage pools as long as they are at least 10 GB in size.

B. Correct: You can use SCSI drives in storage pools as long as they are at least 10 GB in size.

C. Incorrect: You can use SATA drives in storage pools, but they need to be at least 10 GB in size.

D. Incorrect: You can use Serial-Attached SCSI drives in storage pools, but they need to be at least 10 GB in size.

Thought experiment

1. You can first install Windows Server 2012 R2 with a full GUI and then install the application. After you install the application, you can remove the GUI features.

2. This is not an ideal candidate for a Minimal Server Interface configuration because even though its administration should not be restricted to the command line, it can be managed through a GUI on remote computers. The requirements of a minimal attack surface and optimal performance suggest that a Server Core installation is a better fit for this scenario.

3. Two possible solutions to meeting the requirements for network fault tolerance are using the built-in NIC teaming feature of Windows Server 2012 R2 or using NIC teaming provided by an independent hardware vendor of network adapters.

4. You need four disks to meet the requirements of this configuration. You can create both virtual disks out of one storage pool. Both of these virtual disks require three physical disks, but they can be provisioned out of the same pool. In addition, the hot spare requires a fourth, separate physical disk to be assigned to the storage pool.