0% found this document useful (0 votes)
217 views89 pages

20740C-ENU-Practice Handbook PDF

This document provides instructions for installing and configuring Windows Server 2016 on a virtual machine called LON-SVR6. The exercises guide the user to install Server Core, configure basic network and domain settings, enable remote management, and add the server as a secondary DNS zone for the Adatum.com domain.

Uploaded by

Better Than P2P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
217 views89 pages

20740C-ENU-Practice Handbook PDF

This document provides instructions for installing and configuring Windows Server 2016 on a virtual machine called LON-SVR6. The exercises guide the user to install Server Core, configure basic network and domain settings, enable remote management, and add the server as a secondary DNS zone for the Adatum.com domain.

Uploaded by

Better Than P2P
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 89

MCT USE ONLY.

STUDENT USE PROHIBITED


O F F I C I A L M I C R O S O F T L E A R N I N G P R O D U C T

20740C
Installation, Storage, and Compute with
Windows Server 2016
MCT USE ONLY. STUDENT USE PROHIBITED
L1-1

Module 1: Installing, upgrading, and migrating servers and


workloads
Lab: Installing and configuring Server Core
Exercise 1: Installing Server Core
 Task 1: Install Windows Server 2016 Datacenter Evaluation on LON-SVR6
1. In the 20740C-LON-SVR6 Virtual Machine Connection window, click the Start icon.

2. After a moment, the setup program for Windows Server 2016 appears. On the Enter your language
and other preferences and click “Next” to continue page of Windows Setup, click Next.

3. On the Install page, click Install Now.


4. On the Select the operating system you want to install page, select Windows Server 2016
Datacenter Evaluation, and then click Next.
5. In the Applicable notices and licenses terms page, select the I accept the license terms check box,
and then click Next.

6. On the Which type of installation do you want? page, select Custom.

7. On the Where do you want to install Windows page, select Next.

8. The Installing Windows page appears.

Note: It takes about five minutes for the installation to complete.

9. When the installation completes, LON-SVR6 restarts. After some time, a Command Prompt window
opens and displays the following text:

Administrator
The user’s password must be changed before signing in.
Ok
Cancel

10. Note that the Ok text line is highlighted. Press Enter.

11. The Command Prompt window text changes to the following:

Enter new credentials for Administrator or hit ESC to cancel.

12. Below this, in the New password text line, type Pa55w.rd, and then press the Tab key. In the
Confirm password text line, type Pa55w.rd, and then press Enter. The text in the Command
Prompt window changes to:

Your password has been changed.


Ok

Note that the Ok text line is highlighted. Press Enter.


MCT USE ONLY. STUDENT USE PROHIBITED
L1-2 Installing, upgrading, and migrating servers and workloads

13. At this point, the Command Prompt window opens with the following prompt:

C:\Users\Administrator

Results: After completing this exercise, you will have successfully installed the Windows Server 2016 Core
operating system on LON-SVR6.

Exercise 2: Completing post-installation tasks on Windows Server 2016


Core
 Task 1: Use Windows PowerShell and Sconfig.cmd to configure the settings of Server
Core
1. In the Command Prompt window, type PowerShell, and then press Enter.
2. Windows PowerShell will load, and the prompt will change to PS C:\Users\Administrator>.

3. In the Command Prompt window, type the following, and then press Enter:

$env:computername

4. Note that the name is initially a randomly selected host name. In most cases, you will need to change
the host name.

5. In the Command Prompt window, type the following, and then press Enter:

Get-NetIPAddress | FT IPAddress

6. Note the IPv4 address of 172.16.0.160. This is a DHCP address that was received from the DHCP
Server service that is running on LON-DC1. While you can use this address, you would normally use a
static IP address for servers that host server roles.

7. In the Command Prompt window, type sconfig.cmd, and then press Enter.
8. To select Network Settings, type 8, and then press Enter.

9. For Select Network Adapter Index#, type 1, and then press Enter.
10. On this screen, note the four options at the bottom. Select each of the following numbers, and then
set the following values by typing them and pressing Enter:

a. 1) Set Network Adapter Address: Select Static IP, Enter static IP Address: 172.16.0.26, Enter
Subnet Mask: 255.255.0.0, Enter Default Gateway: 172.16.0.1.

b. 2) Set DNS Server: Enter new preferred DNS server: 172.16.0.10, click OK in the Network
Settings pop up window, and then in Enter alternate DNS server, press Enter.

c. 4) Return to Main Menu.

Note: Sometimes, on entering a particular value, the screen will change and have you
supply the next value.

11. In the main Server Configuration window, at the Enter number to select an option prompt,
type 1, and then press Enter.

12. At the Change Domain/Workshop Membership prompt, type D for domain, and then press Enter.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L1-3

13. At the Name of Domain to join prompt, type Adatum.com, and then press Enter.

14. At the Specify an authorized domain\user prompt, type Adatum\Administrator, and then press
Enter.

15. In the Netdom.exe Command Prompt window, type Pa55w.rd and then press Enter. Note that the
password does not echo back onto the screen.

16. The Netdom.exe Command Prompt window closes and the Change computer name dialog box
appears. Click Yes.

17. At the Enter new computer name prompt, type LON-SVR6, and then press Enter.
18. At the Specify an authorized domain\user prompt, type Adatum\Administrator, and then press
Enter.

19. In the Netdom.exe Command Prompt window, type Pa55w.rd and then press Enter.

20. When the Restart dialog box appears, click Yes.

21. After LON-SVR6 restarts, select the Ctrl+Alt+Delete icon in the 20740C-LON-SVR6 computer
name – Virtual Machine Connection window, and then the Command Prompt window displays
the following text:

Enter credentials for Administrator or hit ESC to switch users/sign-in methods


Password:

22. Type Pa55w.rd, and then press Enter.


23. In the Command Prompt window, type PowerShell, and then press Enter.

24. In the Command Prompt window, type the following, and then press Enter:

$env:computername

25. Note that the name LON-SVR6 displays.


26. In the Command Prompt window, type the following, and then press Enter:

Get-NetIPAddress | FT IPAddress

Note that the IPv4 address 172.16.0.26 displays.

27. Type the following, and then press Enter:

Install-WindowsFeature DNS

28. Text appears stating that the DNS Server value in the Success column is True.

Results: After completing this exercise, you will have successfully configured the domain and network
settings of Server Core and install an additional role.
MCT USE ONLY. STUDENT USE PROHIBITED
L1-4 Installing, upgrading, and migrating servers and workloads

Exercise 3: Performing remote management


 Task 1: Enable remote management with Server Manager
1. On LON-DC1, open Server Manager if necessary.

2. In Server Manager, in the navigation pane, right-click All Servers, and then click Add Servers.

3. In the Add Servers dialog box, in the Name (CN) box, type LON-SVR6, and then click Find Now.
4. In the Name list, click LON-SVR6, and then press the Right Arrow key and click OK to add the
computer to the Computer list.

5. In Server Manager, select Tools from the top menu bar, and then select DNS.
6. Maximize the DNS Manager console.

7. In the console tree, expand Forward Lookup Zones, select and then right-click Adatum.com, and
then select Properties.

8. In Adatum.com Properties, select the Name Servers tab, and then click the Add button.

9. In the New Name Server Record window, in the Server fully qualified domain name (FQDN) text
box, type LON-SVR6.adatum.com, and then click Resolve.

10. Even if you receive a “The server with this IP address is not authoritative for the zone” message,
click OK.

11. In the Adatum.com Properties dialog box, select the Zone Transfers tab, and then select the Allow
zone transfers check box.

12. Select the Only to servers listed in the Name Servers tab option, and then click Notify.

13. In the Notify window, select the The Following Servers option, click in the text box, type
172.16.0.26, and then press Enter. After a moment, the address will resolve. Click OK twice.

 Task 2: Add LON-SVR6 to DNS Manager on LON-DC1 and then add the Adatum.com
zone to LON-SVR6 as a secondary zone
1. In DNS Manager, in the console tree, right-click DNS, and then select Connect to DNS Server.
2. In the Connect to DNS Server window, select the The following computer option, in the text box,
type LON-SVR6, and then click OK.

3. In the console tree, select and expand LON-SVR6.

4. Select and then right-click Forward Lookup Zones, and then select New Zone.

5. The New Zone Wizard appears. On the Welcome page, click Next.

6. On the Zone Type page, select the Secondary zone option, and then click Next.

7. On the Zone name page, select the Browse button.

8. In the Browse window, double-click LON-DC1, and then double-click Forward Lookup Zones.
Select the Adatum.com zone, and then click OK.

9. On the Zone Name page, click Next.


10. On the Master DNS Server page, in the text box, type 172.16.0.10, press Enter, and then click Next.

11. On the Completion page, click Finish.

12. Expand Forward Lookup Zones in the console tree under LON-SVR6. Adatum.com will appear with
a red X.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L1-5

13. Right-click Adatum.com, select Transfer from Master, and then press the F5 key.

14. If the red X doesn’t clear, close and reopen DNS Manager on LON-DC1. You should see the zone
data resource records for Adatum.com on LON-SVR6.

 Task 3: Examine the new zone information on LON-SVR6


1. Return to LON-SVR6.

2. In the Command Prompt window, type the following, and then press Enter:

Dnscmd /enumzones

3. Check the returned information. Note that Adatum.com is listed as a secondary zone.

4. In the Command Prompt window, type the following, and then press Enter:

Dnscmd LON-DC1 /enumzones

5. Check the returned information from LON-DC1. Here the Adatum.com zone is listed as a primary
zone.

6. In the Command Prompt window, type the following, and then press Enter:

Get-DnsClientServerAddress

7. Note the row with the named network adapter Ethernet and observe the Interface Index number.
8. In the Command Prompt window, type the following statement, replacing X with the Interface Index
number that you received in step 7, and then press Enter:

Set-DnsClientServerAddress -InterfaceIndex X -ServerAddresses (“172.16.0.26”,


“172.16.0.10”)

9. In the Command Prompt window, type the following, and then press Enter:

Get-DnsClientServerAddress

10. Both addresses should now appear in the ServerAddresses column.

Results: After completing this exercise, you will have configured the DNS Server settings on LON-SVR6
remotely.

 Task 4: Prepare for the next module


After you finish the lab, revert the virtual machines to their initial state by completing the following steps:

1. On the host computer, switch to the Hyper-V Manager console.

2. In the Virtual Machines list, right-click 20740C-LON-DC1, and then click Revert.

3. In the Revert Virtual Machine dialog box, click Revert.

4. Repeat steps 2 and 3 for 20740C-LON-SVR6.


MCT USE ONLY. STUDENT USE PROHIBITED
MCT USE ONLY. STUDENT USE PROHIBITED
L2-7

Module 2: Configuring local storage


Lab: Configuring local storage
Exercise 1: Creating and managing volumes
 Task 1: Create a hard disk volume and format for ReFS
1. Switch to LON-SVR1.

2. Right-click Start, and then click Windows PowerShell (Admin).

3. To list all the available disks that have yet to be initialized, at the Windows PowerShell command
prompt, type the following command, and then press Enter:

Get-Disk | Where-Object PartitionStyle –Eq "RAW"

4. To initialize disk 2, at the Windows PowerShell command prompt, type the following command, and
then press Enter:

Initialize-disk 2

5. To review the partition table type, at the Windows PowerShell command prompt, type the following
command, and then press Enter:

Get-disk

6. To create a Resilient File System (ReFS) volume by using all available space on disk 1, at the Windows
PowerShell command prompt, type the following command, and then press Enter:

New-Partition -DiskNumber 2 -UseMaximumSize -AssignDriveLetter | Format-Volume


-NewFileSystemLabel "Simple" -FileSystem ReFS

7. On the taskbar, click File Explorer.

8. If you receive the prompt Do you want to format it?, click Cancel.

9. On the taskbar, click File Explorer.

Question: What drive letter has been assigned to the newly created volume?

Answer: Answers might vary, but it is assumed to be drive F.

 Task 2: Create a mirrored volume


1. Right-click Start, and then click Disk Management.

2. In the lower half of the display, scroll down and right-click Disk 3, and then click Online.

3. Repeat for Disk 4.

4. Close and reopen Disk Management.

5. In the Initialize Disk dialog box, click OK to initialize Disks 3 and 4.

6. On Disk 3, right-click Unallocated, and then click New Mirrored Volume.

7. In the New Mirrored Volume Wizard, click Next.

8. On the Select Disks page, in the available list, click Disk 4, and then click Add >.

9. In the Select the amount of space in MB box, accept the default value, and then click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
L2-8 Configuring local storage

10. On the Assign Drive Letter or Path page, in the Assign the following drive letter box, click M, and
then click Next.

11. On the Format Volume page, in the Volume label text box, type MIRROR.

12. Select the Perform a quick format check box, and then click Next.

13. Click Finish to create your mirrored volume.


14. In the Disk Management dialog box, click Yes to convert both disks to dynamic disks.

Results: After completing this exercise, you should have successfully created several volumes.

Exercise 2: Resizing volumes


 Task 1: Create a simple volume and resize it
1. Switch to Windows PowerShell (Admin).

2. At the Windows PowerShell command prompt, type the following command, and then press Enter:

Initialize-disk 5

3. At the Windows PowerShell command prompt, type the following command, and then press Enter:

Diskpart

4. At the command prompt, type the following command, and then press Enter:

List disk

5. At the command prompt, type the following command, and then press Enter:

Select disk 5

6. At the command prompt, type the following command, and then press Enter:

Convert dynamic

7. At the command prompt, type the following command, and then press Enter:

Create volume simple size=10000 disk=5

8. At the command prompt, type the following command, and then press Enter:

Assign letter=z

9. At the command prompt, type the following command, and then press Enter:

Format

10. Switch to Disk Management. Verify the presence of an NTFS volume on Disk 5 of size approximately
10 gigabytes (GB).

11. At the Windows PowerShell command prompt, type the following command, and then press Enter:

Extend size 10000


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L2-9

12. Switch to Disk Management.

13. Verify the presence of an NTFS volume on Disk 5 of size approximately 20 GB.

 Task 2: Shrink a volume


1. At the Windows PowerShell command prompt, type the following command, and then press Enter:

Shrink desired=15000

2. Switch to Disk Management.

3. Verify the presence of an NTFS volume on Disk 5 of size approximately 5 GB.

4. Close the Windows PowerShell (Admin) window.

 Task 3: Prepare for the next exercise


1. On the host computer, start Hyper-V Manager.

2. In the Virtual Machines list, right-click 20740B-LON-DC1, and then click Revert.
3. In the Revert Virtual Machine dialog box, click Revert.

4. Repeat steps 2 and 3 for 20740B-LON-SVR1.

5. Restart your computer and select 20740B-LON-HOST1 when prompted.


6. Sign in as Administrator with the password Pa55w.rd.

Results: After completing this exercise, you should have successfully resized a volume.

Exercise 3: Managing virtual hard disks


 Task 1: Install the Hyper-V module
1. On your host computer, click Start, and then click Server Manager.

2. In Server Manager, click Add roles and features.

3. In the Add Roles and Features Wizard, on the Before you begin page, click Next.

4. On the Select installation type page, click Next.

5. On the Select destination server page, click Next.


6. On the Select server roles page, select the Hyper-V check box, click Add Features, and then click
Next.

7. On the Select features page, click Next.

8. On the Hyper-V page, click Next.

9. On the Create Virtual Switches page, click Next.

10. On the Virtual Machine Migration page, click Next.


11. On the Default Stores page, click Next.

12. On the Confirm installation selections page, select Restart the destination server automatically
if required, click Yes, and then click Install.
MCT USE ONLY. STUDENT USE PROHIBITED
L2-10 Configuring local storage

Note: Your computer might restart several times following installation of the Hyper-V
components.

13. Sign in as Administrator with the password Pa55w.rd.

 Task 2: Create a virtual hard disk


1. On your host computer, right-click Start, and then click Windows PowerShell (Admin).

2. At the Windows PowerShell command prompt, type the following command, and then press Enter:

New-VHD -Path c:\sales.vhd -Dynamic -SizeBytes 10Gb | Mount-VHD -Passthru


|Initialize-Disk -Passthru |New-Partition -AssignDriveLetter -UseMaximumSize |Format-
Volume -FileSystem NTFS -Confirm:$false -Force

Note: If you receive a Microsoft Windows pop-up dialog box prompting you to format the
disk, close it and continue.

 Task 3: Reconfigure the virtual hard disk

Note: These steps are a duplicate of the high-level steps.

1. To dismount the virtual hard disk, at the Windows PowerShell command prompt, type the following
command, and then press Enter:

Dismount-vhd C:\Sales.vhd

2. To check the properties of the virtual hard disk, at the Windows PowerShell command prompt, type
the following command, and then press Enter:

Get-vhd C:\Sales.vhd

Question: What is the physical sector size?

Answer: Answers will vary, but it is likely to be 512.

3. To convert to a .vhdx file, at the Windows PowerShell command prompt, type the following
command, and then press Enter:

Convert-VHD –Path C:\Sales.vhd –DestinationPath c:\Sales.vhdx

4. To change the sector size, at the Windows PowerShell command prompt, type the following
command, and then press Enter:

Set-VHD –Path c:\Sales.vhdx –PhysicalSectorSizeBytes 4096

5. To check the properties of the .vhdx file, at the Windows PowerShell command prompt, type the
following command, and then press Enter:

Get-vhd C:\Sales.vhdx

Question: What is the physical sector size?

Answer: Answers will vary, but it is likely to be 4096.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L2-11

6. To optimize the .vhdx file, at the Windows PowerShell command prompt, type the following
command, and then press Enter:

Optimize-VHD –Path c:\Sales.vhdx –Mode Full

 Task 4: Prepare for the next module


• Restart your computer, and when prompted, choose Windows Server 2016.

Results: After completing this exercise, you should have successfully created and managed virtual hard
disks by using Windows PowerShell.
MCT USE ONLY. STUDENT USE PROHIBITED
MCT USE ONLY. STUDENT USE PROHIBITED
L3-13

Module 3: Implementing enterprise storage solutions


Lab: Planning and configuring storage
technologies and components
Exercise 1: Planning storage requirements
 Task 1: Read the supporting documentation
• Read the supporting documentation in the lab exercise scenario.

 Task 2: Record your planned course of action


1. You plan to evaluate iSCSI, Fibre Channel, and InfiniBand solutions to meet the requirements. Which
solution do you expect to select?

You would not use InfiniBand because the requirements call for reasonable performance and low
cost. InfiniBand is for high-performance solutions, and it is expensive. Meanwhile, of the two
remaining choices, iSCSI most closely matches the low cost and reasonable performance requirements
that you expect. You should deploy an iSCSI solution to each of the geographic locations that has an
IT infrastructure and that requires storage.
2. Which storage type do you plan to implement for the SQL databases, block-level storage or file-level
storage?

Based on the requirements alone, you could use either type, because each has advantages and
disadvantages. SQL databases can run SMB file shares since the release of SMB 3.0, and the overall
performance is similar to that of block-level storage. The answer might depend on whether you have
an existing highly available SMB file server infrastructure and whether the server team or the storage
team will manage the storage.

3. How will your solution minimize administrative overhead for the storage administrators?

By selecting iSCSI, you avoid the complexities of Fibre Channel and InfiniBand solutions. In addition,
an iSCSI solution requires less hardware and less software. All of these choices reduce the
administrative overhead for the storage administrators.

4. Which server role(s) do you plan to use for the provisioning of VMWare ESX/ESXi virtual machines?

You can use the Server for NFS role to create NFS file shares that VMWare ESX/ESXi virtual machines
support.

5. Will you run the Hyper-V in Windows Server 2012 virtual machines on NFS or SMB?
The Hyper-V virtual machines can run on SMB, but NFS does not support them. As a result, you will
need to run the virtual machines on SMB.

6. Which file sharing protocol will you use for UNIX clients that require access?
Historically, NFS was the protocol of choice for UNIX clients to access file shares. However, today most
UNIX clients equally support NFS and SMB natively. Therefore, you can use either of the technologies.
If you have an existing NFS file sharing deployment, you would likely choose NFS. If you have an
existing SMB file sharing deployment, you would likely choose SMB.
MCT USE ONLY. STUDENT USE PROHIBITED
L3-14 Implementing enterprise storage solutions

7. How do you plan to disable legacy SMB access for existing SMB file shares?

a. First, you need to locate all the existing file servers that have legacy SMB shares. You can check
for legacy shares on the current host by using the following command at a Windows PowerShell
prompt:

Get-SmbServerConfiguration | Select EnableSMB1Protocol

You also can create a Windows PowerShell script to check for legacy shares on all the file servers.

b. After you have located all of the existing file servers that have legacy SMB shares, you need to
disable the SMB access. You can disable the SMB 1 protocol on each server by using the
following command:

Set-SmbServerConfiguration -EnableSMB1Protocol $false

You also can create a Windows PowerShell script to disable legacy SMB access across all of your
servers.

Results: After completing this exercise, you should have successfully planned a storage solution that will
meet your organization’s requirements.

Exercise 2: Configuring iSCSI storage


 Task 1: Install the iSCSI target feature
1. On LON-DC1, in Server Manager, click the Manage menu, and then click Add Roles and Features.

2. In the Add Roles and Features Wizard, on the Before you begin page, click Next.

3. On the Select installation type page, click Next.

4. On the Select destination server page, ensure that Select a server from the server pool is
selected, and then click Next.

5. On the Select server roles page, expand File and Storage Services (2 of 12 Installed), expand File
and iSCSI Services (1 of 11 Installed), select the iSCSI Target Server check box, and then click
Next.

6. On the Select features page, click Next.

7. On the Confirm installation selections page, click Install.

8. When the installation completes, click Close.

 Task 2: Create and configure an iSCSI target


1. On LON-DC1, in Server Manager, in the navigation pane, click File and Storage Services.

2. In the File and Storage Services pane, click iSCSI.

3. In the iSCSI VIRTUAL DISKS pane, click TASKS, and then click New iSCSI Virtual Disk.

4. In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location page, under
Storage location, click volume C:, and then click Next.

5. On the Specify iSCSI virtual disk name page, in the Name text box, type iSCSIDisk1, and then click
Next.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L3-15

6. On the Specify iSCSI virtual disk size page, in the Size text box, type 5, ensure that GB is selected,
and then click Next.

7. On the Assign iSCSI target page, ensure that the New iSCSI target option is selected, and then click
Next.

8. On the Specify target name page, in the Name box, type LON-DC1, and then click Next.

9. On the Specify access servers page, click Add.

10. In the Select a method to identify the initiator dialog box, click Enter a value for the selected
type, in the Type list, click IP Address, in the Value text box, type 10.100.100.3, and then click OK.
11. On the Specify access servers page, click Add.

12. In the Select a method to identify the initiator dialog box, click Enter a value for the selected
type, in the Type list, click IP Address, in the Value text box, type 10.200.100.3, and then click OK.

13. On the Specify access servers page, click Next.

14. On the Enable Authentication page, click Next.

15. On the Confirm selections page, click Create.

16. On the View results page, wait until the virtual disk is created, and then click Close.

17. In the iSCSI VIRTUAL DISKS pane, click TASKS, and then click New iSCSI Virtual Disk.

18. In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location page, under
Storage location, click volume C:, and then click Next.

19. On the Specify iSCSI virtual disk name page, in the Name box, type iSCSIDisk2, and then click
Next.
20. On the Specify iSCSI virtual disk size page, in the Size box, type 5, ensure that GB is selected, and
then click Next.

21. On the Assign iSCSI target page, click lon-dc1, and then click Next.

22. On the Confirm selections page, click Create.

23. On the View results page, wait until the virtual disk is created, and then click Close.

 Task 3: Configure MPIO


1. On LON-SVR1, click Start, and then click Server Manager.

2. In Server Manager, click the Manage menu, and then click Add Roles and Features.

3. In the Add Roles and Features Wizard, on the Before you begin page, click Next.

4. On the Select installation type page, click Next.

5. On the Select destination server page, ensure that Select a server from the server pool is
selected, and then click Next.

6. On the Select server roles page, click Next.

7. On the Select features page, click Multipath I/O, and then click Next.

8. On the Confirm installation selections page, click Install.

9. When installation is complete, click Close.

10. Restart LON-SVR1, and then sign in as Adatum\Administrator with the password Pa55w.rd.

11. Click Start, and then click Server Manager.


MCT USE ONLY. STUDENT USE PROHIBITED
L3-16 Implementing enterprise storage solutions

12. In Server Manager, on the menu bar, click Tools, and then click iSCSI Initiator.

13. In the Microsoft iSCSI dialog box, click Yes.

14. In the iSCSI Initiator Properties dialog box, on the Targets tab, in the Target box, type
10.100.100.2, and then click Quick Connect.

15. In the Quick Connect box, click Done.


16. In the iSCSI Initiator Properties dialog box, to close the dialog box, click OK.

17. In Server Manager, on the menu bar, click Tools, and then click MPIO.

18. In the MPIO Properties dialog box, on the Discover Multi-Paths tab, select Add support for iSCSI
devices, and then click Add.

19. When you are prompted to restart the computer, click Yes.

20. After the computer restarts, sign in to LON-SVR1 as Adatum\Administrator with the password
Pa55w.rd.

21. Click Start, and then click Server Manager.

22. In Server Manager, on the menu bar, click Tools, and then click MPIO.
23. In the MPIO Properties dialog box, on the MPIO Devices tab, notice that Device Hardware Id
MSFT2005iSCSIBusType_0x9 has been added to the list.

24. In the MPIO Properties dialog box, to close the dialog box, click OK.

 Task 4: Connect to the iSCSI target


1. On LON-SVR1, in Server Manager, on the menu bar, click Tools, and then click iSCSI Initiator.

2. In the iSCSI Initiator Properties dialog box, on the Targets tab, click Disconnect.

3. In the Disconnect From All Sessions dialog box, click Yes.

4. In the iSCSI Initiator Properties dialog box, on the Targets tab, click Connect.

5. In the Connect To Target dialog box, select the Enable multi-path check box, verify that the Add
this connection to the list of Favorite Targets check box is selected, and then click Advanced.
6. In the Advanced Settings dialog box, on the General tab, change the Local adapter from Default
to Microsoft iSCSI Initiator.

7. In the Initiator IP list, select 10.100.100.3.


8. In the Target portal IP list, click 10.100.100.2 / 3260.

9. In the Advanced Settings dialog box, click OK.

10. In the Connect To Target dialog box, click OK.

11. In the iSCSI Initiator Properties dialog box, on the Targets tab, click Connect.

12. In the Connect To Target dialog box, click Enable multi-path, verify that the Add this connection
to the list of Favorite Targets check box is selected, and then click Advanced.

13. In the Advanced Settings dialog box, on the General tab, change the Local adapter from Default
to Microsoft iSCSI Initiator.

14. In the Initiator IP list, select 10.200.100.3.

15. In the Target portal IP list, select 10.200.100.2 / 3260.

16. In the Advanced Settings dialog box, click OK.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L3-17

17. In the Connect To Target dialog box, click OK.

18. In the iSCSI Initiator Properties dialog box, on the Volumes and Devices tab, click Auto
Configure.

19. In the iSCSI Initiator Properties dialog box, on the Targets tab, in the Targets list, select
iqn.1991-05.com.microsoft:lon-dc1-lon-dc1-target, and then click Devices.

20. In the Devices dialog box, click MPIO.

21. Verify that in Load balance policy, Round Robin is selected.

22. Under This device has the following paths, notice that two paths are listed. Select the first path,
and then click Details.

23. Note the IP address of the source and target portals, and then click OK.

24. Select the second path, and then click Details.

25. Verify that this path is using another network, and then click OK.

26. In the Device Details dialog box, click OK.

27. In the Devices dialog box, click OK.


28. In the iSCSI Initiator Properties dialog box, click OK.

 Task 5: Initialize the iSCSI disks


1. On LON-SVR1, in Server Manager, click File and Storage Services, and then in the left pane, click
Disks.

2. In the right pane, right-click an offline disk with a bus type of iSCSI, and then click Bring Online.

3. In the Bring Disk Online dialog box, click Yes to bring the disk online.

4. Right-click the iSCSI disk that you brought online, and then click New Volume.

5. In the New Volume Wizard, on the Before you begin page, click Next.

6. On the Select the server and disk page, ensure that your iSCSI disk is selected, and then click Next.

7. In the Offline or Uninitialized Disk dialog box, to initialize the disk as a GPT disk, click OK.

8. On the Specify the size of the volume page, to accept the default of using the entire disk size for
the volume, click Next.

9. On the Assign to a drive letter or folder page, in the Drive letter list, select J, and then click Next.
10. On the Select file system settings page, in the Volume label text box, type SMBShares, and then
click Next.

11. On the Confirm selections page, to finish creating the volume, click Create.

12. After the volume is created, on the Completion page, click Close.

13. In Server Manager, in the right pane, right-click the remaining offline disk with a bus type of iSCSI,
and then click Bring Online.

14. In the Bring Disk Online dialog box, to bring the disk online, click Yes.

15. Right-click the iSCSI disk that you brought online, and then click New Volume.

16. In the New Volume Wizard, on the Before you begin page, click Next.

17. On the Select the server and disk page, ensure that your iSCSI disk is selected, and then click Next.

18. In the Offline or Uninitialized Disk dialog box, to initialize the disk as a GPT disk, click OK.
MCT USE ONLY. STUDENT USE PROHIBITED
L3-18 Implementing enterprise storage solutions

19. On the Specify the size of the volume page, click Next to accept the default of using the entire disk
size for the volume.

20. On the Assign to a drive letter or folder page, in the Drive letter list, select K, and then click Next.

21. On the Select file system settings page, in the File system box, select NTFS.

22. In the Volume label text box, type NFSShares, and then click Next.
23. On the Confirm selections page, to finish creating the volume, click Create.

24. After the volume is created, on the Completion page, click Close.

25. On the taskbar, click File Explorer, browse to This PC, and then verify that the SMBShares and
NFSShares volumes are displayed.

Results: After completing this exercise, you should have successfully configured an iSCSI target that uses
MPIO for redundancy.

Exercise 3: Configuring and managing the share infrastructure


 Task 1: Create an SMB share on iSCSI storage
1. On LON-SVR1, in Server Manager, in the navigation pane, click File and Storage Services, and then
click Shares.

2. In the SHARES area, click TASKS, and then click New Share.

3. In the New Share Wizard, on the Select the profile for this share page, in the File share profile
box, click SMB Share – Quick, and then click Next.

4. On the Select the server and path for this share page, select LON-SVR1, click Select by volume,
click J:, and then click Next.
5. On the Specify share name page, in the Share name box, type Data, and then click Next.

6. On the Configure share settings page, select the Enable access-based enumeration check box,
and then click Next.

7. On the Specify permissions to control access page, click Customize permissions.

8. In the Advanced Security Settings for Data window, on the Permissions tab, click Add.

9. In the Permission Entry for Data window, click Select a principal, type Domain Users, and then
click OK.

10. In the Basic permissions area, select the Modify check box, and then click OK.

11. In the Advanced Security Settings for Data window, click OK.

12. On the Specify permissions to control access page, click Next.

13. On the Confirm selections page, click Create.

14. When the creation of the share is complete, click Close.

 Task 2: Create an NFS share on iSCSI storage


1. On LON-SVR1, in the SHARES area, click TASKS, and then click New Share.

2. In the New Share Wizard, on the Select the profile for this share page, in the File share profile
box, click NFS Share – Quick, and then click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L3-19

3. On the Select the server and path for this share page, click LON-SVR1, click Select by volume,
click K:, and then click Next.

4. On the Specify share name page, in the Share name box, type LinuxData, and then click Next.

5. On the Specify authentication methods page, select Kerberos v5 authentication(Krb5), and then
click Next.

6. On the Specify the share permissions page, click Add.

7. In the Add Permissions window, click All Machines.

8. In the Share permissions box, select Read / Write, and then click Add.

9. On the Specify the share permissions page, click Next.

10. On the Specify permissions to control access page, click Next.

11. On the Confirm selections page, click Create.


12. On the View results page, click Close.

 Task 3: Use Windows PowerShell to view share information


1. On LON-DC1, on the taskbar, click File Explorer.

2. In File Explorer, in the address bar, type \\LON-SVR1\Data, and then press Enter.
3. Click the Home tab, click New item, and then click Text Document.

4. Type NewFile, and then press Enter to rename the document.

5. Double-click NewFile.txt to open it in Notepad.


6. Leave Notepad open for later in the task.

7. On LON-SVR1, right-click Start, and then click Windows PowerShell (Admin).

8. At the Windows PowerShell prompt, type the following command, and then press Enter:

Get-NfsShare

9. Type the following command, and then press Enter:

Get-NfsShare LinuxData | FL *

10. Type the following command, and then press Enter:

Get-SmbShare

11. Type the following command, and then press Enter:

Get-SmbShare Data | FL *

12. Type the following command, and then press Enter:

Get-SmbSession

13. Type the following command, and then press Enter:

Get-SMBSession -ClientUserName Adatum\Administrator | FL *


MCT USE ONLY. STUDENT USE PROHIBITED
L3-20 Implementing enterprise storage solutions

14. Type the following command, and then press Enter:

Get-SmbOpenFile

Note: There are two entries for Adatum\Administrator. File Explorer creates one, and
Notepad creates the other. If NewFile.txt is not included, it is because the file connection is
maintained only for brief periods when you open the file initially or save it. If you do not see
two entries, switch to LON-DC1, close Notepad, and then double-click NewFile.txt. Then, on
LON-SVR1, repeat step 14.

15. Leave the Windows PowerShell prompt open for the next task.

 Task 4: Disable the legacy SMB1 protocol


1. On LON-SVR1, at the Windows PowerShell prompt, type the following command, and then press
Enter:

Set-SmbServerConfiguration -AuditSmb1Access $true

2. Type Y to confirm, and then press Enter.

3. Type the following command, and then press Enter:

Get-SmbServerConfiguration | FL enable*

4. Type the following command, and then press Enter:

Set-SmbServerConfiguration -EnableSMB1Protocol $false

5. Type Y to confirm, and then press Enter.

6. Type the following command, and then press Enter:

Get-WindowsFeature *SMB*

7. Type the following command, and then press Enter:

Remove-WindowsFeature FS-SMB1

8. Close the Windows PowerShell prompt.

 Task 5: Prepare for the next module


After you finish the lab, revert the virtual machines to their initial state by completing the following steps:

1. On the host computer, switch to the Hyper-V Manager console.

2. In the Virtual Machines list, right-click 20740B-LON-DC1, and then click Revert.

3. In the Revert Virtual Machine dialog box, click Revert.


4. Repeat steps 2 and 3 for 20740B-LON-SVR1.

Results: After completing this exercise, you should have successfully created SMB and NFS shares.
MCT USE ONLY. STUDENT USE PROHIBITED
L4-21

Module 4: Implementing Storage Spaces and Data


Deduplication
Lab A: Implementing Storage Spaces
Exercise 1: Creating a Storage Space
 Task 1: Create a storage pool from six disks that are attached to the server
1. On LON-SVR1, click Start, and then click Server Manager.

2. In Server Manager, in the left pane, click File and Storage Services, and then in the Servers pane,
click Storage Pools.

3. In the STORAGE POOLS pane, click TASKS, and then, in the TASKS drop-down list, click New
Storage Pool.

4. In the New Storage Pool Wizard, on the Before you begin page, click Next.

5. On the Specify a storage pool name and subsystem page, in the Name text box, type
StoragePool1, and then click Next.

6. On the Select physical disks for the storage pool page, select the first six disks in the Physical
disks list and then click Next.
7. On the Confirm selections page, click Create.

8. On the View results page, wait until the task completes, and then click Close.

 Task 2: Create a three-way mirrored virtual disk (need at least five physical disks)
1. On LON-SVR1, in Server Manager, in the Storage Pools pane, click StoragePool1.
2. In the VIRTUAL DISKS pane, click TASKS, and then, from the TASKS drop-down list, click New
Virtual Disk.

3. In the Select the storage pool dialog box, click StoragePool1, and then click OK.
4. In the New Virtual Disk Wizard, on the Before you begin page, click Next.

5. On the Specify the virtual disk name page, in the Name text box, type Mirrored Disk, and then
click Next.

6. On the Specify enclosure resiliency page, click Next.

7. On the Select the storage layout page, in the Layout list, click Mirror, and then click Next.

8. On the Configure the resiliency settings page, click Three-way mirror, and then click Next.

Note: If the three-way resiliency setting is unavailable, proceed to the next step in the lab.

9. On the Specify the provisioning type page, click Thin, and then click Next.

10. On the Specify the size of the virtual disk page, in the Specify size text box, type 10, and then click
Next.

11. On the Confirm selections page, click Create.

12. On the View results page, wait until the task completes.
MCT USE ONLY. STUDENT USE PROHIBITED
L4-22 Implementing Storage Spaces and Data Deduplication

13. Ensure that the Create a volume when this wizard closes check box is selected, and then click
Close.

14. In the New Volume Wizard window, on the Before you begin page, click Next.

15. On the Select the server and disk page, in the Disk pane, click the Mirrored Disk virtual disk, and
then click Next.

16. On the Specify the size of the volume page, click Next to confirm the default selection.

17. On the Assign to a drive letter or folder page, in the Drive letter drop-down list, ensure that H is
selected, and then click Next.
18. On the Select file system settings page, in the File system drop-down list, click ReFS, in the
Volume label text box, type Mirrored Volume, and then click Next.

19. On the Confirm selections page, click Create.


20. On the Completion page, wait until the creation completes, and then click Close.

 Task 3: Copy a file to the volume, and verify it is visible in File Explorer
1. On LON-SVR1, click Start, on the Start screen, type command prompt, and then press Enter.

2. When you receive the command prompt, type the following command, and then press Enter:

Copy C:\windows\system32\write.exe H:\

3. Close Command Prompt.

4. On the taskbar, click the File Explorer icon.

5. In File Explorer, in the navigation pane, click Mirrored Volume (H:).

6. Verify that write.exe is visible in the file list.

7. Close File Explorer.

 Task 4: Remove a physical drive to simulate drive failure


1. On the host computer, open Hyper-V Manager.
2. In the Virtual Machines pane, right-click 20740B-LON-SVR1, and then click Settings.

3. In Settings for 20740B-LON-SVR1, in the Hardware pane, click the hard drive that begins with
20740B-LON-SVR1-Disk1.

4. In the Hard Drive pane, click Remove, click OK, and then click Continue.

 Task 5: Verify that the file is still available


1. Switch to LON-SVR1.

2. On the taskbar, click the File Explorer icon.


3. In File Explorer, in the navigation pane, click Mirrored Volume (H:).

4. In the file list pane, verify that write.exe is still available.

5. Close File Explorer.

6. In Server Manager, in the STORAGE POOLS pane, on the menu bar, click Refresh “Storage Pools”.

Note: Notice the warning that is visible next to Mirrored Disk.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L4-23

7. In the VIRTUAL DISK pane, right-click Mirrored Disk, and then click Properties.

8. In the Mirrored Disk Properties dialog box, in the left pane, click Health.

Note: Notice that the Health Status indicates a warning. The Operational Status should
indicate one or more of the following: Incomplete, Unknown, or Degraded.

9. In the Mirrored Disk Properties dialog box, click OK.

 Task 6: Add a new disk to the storage pool and remove the broken disk
1. On LON-SVR1, in Server Manager, in the STORAGE POOLS pane, on the menu bar, click Refresh
“Storage Pools”.

2. In the STORAGE POOLS pane, right-click StoragePool1, and then click Add Physical Disk.

3. In the Add Physical Disk window, click the first disk in the list, and then click OK.

4. Right-click Start, and then click Windows PowerShell (Admin).

5. In Windows PowerShell, type the following command, and then press Enter:

Get-PhysicalDisk

6. Note the FriendlyName for the disk that shows an OperationalStatus of Lost Communication.

7. In Windows PowerShell, type the following command, and then press Enter:

$Disk = Get-PhysicalDisk -FriendlyName ‘diskname’

Replace diskname with the name of the disk that you noted in step 6.
8. In Windows PowerShell, type the following command, and then press Enter:

Remove-PhysicalDisk -PhysicalDisks $disk -StoragePoolFriendlyName StoragePool1

9. In Windows PowerShell, type Y, and then press Enter.

10. In Server Manager, in the STORAGE POOLS pane, on the menu bar, click the Refresh “Storage
Pools” button to see the warnings disappear.

Results: After completing this exercise, you should have successfully created a storage pool and added
five disks to it. Additionally, you should have created a three-way mirrored, thinly-provisioned virtual disk
from the storage pool. You also should have copied a file to the new volume and then verified that it is
accessible. Next, after removing a physical drive, you should have verified that the virtual disk was still
available and that you could access it. Finally, you should have added another physical disk to the storage
pool.
MCT USE ONLY. STUDENT USE PROHIBITED
L4-24 Implementing Storage Spaces and Data Deduplication

Exercise 2: Enabling and configuring storage tiering


 Task 1: Use the Get-PhysicalDisk cmdlet to view all available disks on the system
1. On LON-SVR1, right-click Start, and then click Windows PowerShell (Admin).

2. In Windows PowerShell, type the following command, and then press Enter:

Get-PhysicalDisk

 Task 2: Create a new storage pool


1. At the Windows PowerShell command prompt, type the following command, and then press Enter:

$canpool = Get-PhysicalDisk –CanPool $true

2. At the Windows PowerShell command prompt, type the following command, and then press Enter:

New-StoragePool -FriendlyName "TieredStoragePool" -StorageSubsystemFriendlyName


"Windows Storage*" -PhysicalDisks $canpool

3. Open File Explorer, and then browse to D:\Labfiles\Mod04.


4. Right-click mod4.ps1, click Run with PowerShell, and press Y if prompted. This configures the disk
names for the next part of the exercise.

 Task 3: View the media types


• On LON-SVR1, at the Windows PowerShell command prompt, type the following command, and
then press Enter:

Get-StoragePool –FriendlyName TieredStoragePool | Get-PhysicalDisk | Select


FriendlyName, MediaType, Usage, BusType

 Task 4: Specify the media type for the sample disks and verify that the media type is
changed
1. On LON-SVR1, at the Windows PowerShell command prompt, type the following command, and
then press Enter:

Set-PhysicalDisk –FriendlyName PhysicalDisk1 –MediaType SSD

2. At the Windows PowerShell command prompt, type the following command, and then press Enter:

Set-PhysicalDisk –FriendlyName PhysicalDisk2 –MediaType HDD

3. At the Windows PowerShell command prompt, type the following command, and then press Enter:

Get-PhysicalDisk | Select FriendlyName, MediaType, Usage, BusType

 Task 5: Create pool-level storage tiers by using Windows PowerShell


1. On LON-SVR1, at the Windows PowerShell command prompt, type the following command, and
then press Enter:

New-StorageTier –StoragePoolFriendlyName TieredStoragePool -FriendlyName HDD_Tier


–MediaType HDD
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L4-25

2. At the Windows PowerShell command prompt, type the following command, and then press Enter:

New-StorageTier –StoragePoolFriendlyName TieredStoragePool -FriendlyName SSD_Tier


–MediaType SSD

 Task 6: Create a new virtual disk with storage tiering by using the New Virtual Disk
Wizard
1. On LON-SVR1, in Server Manager, in the Storage Pools pane, click Refresh, and then click
TieredStoragePool.

2. In the VIRTUAL DISKS pane, click TASKS, and then in the TASKS drop-down list, click New Virtual
Disk.

3. In the Select the storage pool dialog box, click TieredStoragePool, and then click OK.

4. In the New Virtual Disk Wizard, on the Before you begin page, click Next.
5. On the Specify the virtual disk name page, in the Name text box, type TieredVirtDisk, select
Create storage tiers on this virtual disk, and then click Next.

6. On the Specify enclosure resiliency page, click Next.

7. On the Select the storage layout page, in both the Layout lists, click Simple, and then click Next.

8. On the Specify the provisioning type page, click Next.

9. On the Specify the size of the virtual disk page, in both the Specify size text boxes, type 2, clear
the Enable read cache check box, and then click Next.

Note: Based on your storage subsystem, the Enable read cache check box may not be
present.

10. On the Confirm selections page, click Create.

11. On the View results page, wait until the task completes.

12. Ensure that Create a volume when this wizard closes is selected, and then click Close.
13. In the New Volume Wizard, on the Before you begin page, click Next.

14. On the Select the server and disk page, in the Disk pane, click the TieredVirtDisk virtual disk, and
then click Next.

15. On the Specify the size of the volume page, click Next to confirm the default selection.

16. On the Assign to a drive letter or folder page, in the Drive letter drop-down list, ensure that R is
selected, and then click Next.

17. On the Select file system settings page, in the File system drop-down list, click ReFS. In the
Volume label text box, type Tiered Volume, and then click Next.

Note: If ReFS is not available from the file system drop-down menu, select NTFS.

18. On the Confirm selections page, click Create.

19. On the Completion page, wait until the creation completes, and then click Close.

20. In Server Manager, right-click the virtual disk you just created, and then click Properties.
MCT USE ONLY. STUDENT USE PROHIBITED
L4-26 Implementing Storage Spaces and Data Deduplication

21. In the TieredVirtDisk Properties window, on the General tab, observe the Storage tiers, Capacity,
Allocated space, and Used pool space details.

22. Click the Health tab, and observe the Storage layout details, and then click OK.

 Task 7: Prepare for the next lab


• When you complete the lab, leave the virtual machines running for the next lab.

Results: After completing this exercise, you should have successfully enabled and configured storage
tiering.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L4-27

Lab B: Implementing Data Deduplication


Exercise 1: Installing Data Deduplication
 Task 1: Install the Data Deduplication role service
1. On LON-SVR1, in Server Manager, in the navigation pane, click Dashboard.

2. In the details pane, click Add roles and features.

3. In the Add Roles and Features Wizard, on the Before you begin page, click Next.
4. On the Select installation type page, click Next.

5. On the Select destination server page, click Next.

6. On the Select server roles page, in the Roles list, expand File and Storage Services (4 of 12
installed).

7. Expand File and iSCSI Services (3 of 11 installed).

8. Select the Data Deduplication check box, and then click Next.
9. On the Select features page, click Next.

10. On the Confirm installation selections page, click Install.

11. When installation is complete, on the Installation progress page, click Close.

 Task 2: Check the status of Data Deduplication


1. On LON-SVR1, switch to Windows PowerShell.

2. In the Windows PowerShell command prompt window, type the following command, and then press
Enter:

Get-DedupVolume

3. In the Windows PowerShell command prompt window, type the following command, and then press
Enter:

Get-DedupStatus

4. These commands return no results. This is because you need to enable it on the volume after
installing it.

 Task 3: Verify the virtual machine performance


• On LON-SRV1, in the Windows PowerShell window, type the following, and then press Enter:

Measure-Command -Expression {Get-ChildItem –Path D:\ -Recurse}

Note: You will use the values returned from the previous command later in the lab.

Results: After completing this exercise, you should have successfully installed the Data Deduplication role
service and enabled it on one of your file servers.
MCT USE ONLY. STUDENT USE PROHIBITED
L4-28 Implementing Storage Spaces and Data Deduplication

Exercise 2: Configuring Data Deduplication


 Task 1: Configure Data Deduplication
1. On LON-SVR1, on the taskbar, click the File Explorer icon.

2. In Server Manager, in the navigation pane, click File and Storage Services, and then click Disks.

3. In the Disks pane, click 1.


4. Beneath VOLUMES, click D.

5. Right-click D, and then click Configure Data Deduplication.

6. In the Allfiles (D:\) Deduplication Settings dialog box, in the Data deduplication list, click General
purpose file server.

7. In the Deduplicate files older than (in days) text box, type 0.

8. Click Set Deduplication Schedule.


9. In the LON-SVR1 Deduplication Schedule dialog box, select the Enable throughput optimization
check box, and then click OK.

10. In the Allfiles (D:\) Deduplication Settings dialog box, click Add.
11. In the Select Folder dialog box, expand Allfiles (D:), click shares.

12. Click Select Folder, and then click OK.

 Task 2: Configure optimization to run now and view the status


1. On LON-SRV1, in the Windows PowerShell window, type the following command, and then press
Enter:

Start-DedupJob D: -Type Optimization –Memory 50

2. In the Windows PowerShell window, type the following command, and then press Enter:

Get-DedupJob –Volume D:

Note: Verify the status of the optimization job from the previous command. Repeat the
previous command until the Progress shows as 100%.

 Task 3: Verify if the file has been optimized


1. On LON-SVR1, in File Explorer, navigate to D:\Labfiles\Mod04.

2. Right-click ContosoP1AnnualReport.docx, and then select Properties.


3. In the Properties window, observe the values of Size and Size on disk and note any differences.

4. Repeat steps 2 and 3 for a few more files to verify deduplication.

5. Switch to Windows PowerShell.

6. In the Windows PowerShell command prompt window, type the following command, and then press
Enter:

Get-DedupStatus –Volume D: |fl


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L4-29

7. In the Windows PowerShell command prompt window, type the following command, and then press
Enter:

Get-DedupVolume –Volume D: |fl

Note: Observe the number of optimized files.

8. In Server Manager, in the navigation pane, click File and Storage Services, and then click Disks.

9. In the DISKS pane, click 1.

10. Beneath VOLUMES, click D.

11. Click Refresh and observe the values for Deduplication Rate and Deduplication Savings.

Note: Because most of the files on drive D are small, you may not notice a significant
amount of saved space.

 Task 4: Verify VM performance again


• In the Windows PowerShell window, type the following command, and then press Enter:

Measure-Command -Expression {Get-ChildItem –Path D:\ -Recurse}

Note: Compare the values returned from the previous command with the value of the
same command earlier in the lab to assess if system performance has changed.

 Task 5: Prepare for the next module


When you complete the lab, revert the virtual machines to their initial state.
1. On the host computer, start Hyper-V Manager.

2. In the Virtual Machines list, right-click 20740B-LON-SVR1, and then click Revert.

3. In the Revert Virtual Machine dialog box, click Revert.


4. Repeat steps 2 and 3 for 20740B-LON-DC1.

Results: After completing this exercise, you should have successfully configured Data Deduplication for
the appropriate data volume on LON-SVR1.
MCT USE ONLY. STUDENT USE PROHIBITED
MCT USE ONLY. STUDENT USE PROHIBITED
L5-31

Module 5: Installing and configuring Hyper-V and


virtual machines
Lab: Installing and configuring Hyper-V
Exercise 1: Verifying installation of the Hyper-V server role
 Task 1: Verify the presence of the Microsoft Hyper-V server role
1. On LON-HOST1, sign in as Administrator using the password Pa55w.rd.

2. Click Start, and then click Server Manager.

3. In Server Manager, click Tools, and then click Hyper-V Manager.

4. In Hyper-V Manager, click LON-HOST1, and then click Hyper-V Settings.


5. In the Hyper-V Settings for LON-HOST1 window, click each of the available options in the left pane,
and review the description.

6. Click Cancel.

Results: After completing this exercise, you should have successfully verified the presence and
configuration of the Hyper-V server role on a physical server.

Exercise 2: Configuring Hyper-V networks


 Task 1: Create an external network

Note: To perform this task, your computer must have physical network card (wired or
wireless) and be connected to a network.

1. In Hyper-V Manager, click LON-HOST1, and then in the Actions pane, click Virtual Switch
Manager.

2. In the Virtual Switch Manager for LON-HOST1 window, in the left pane, click New virtual
network switch.

3. In the Create virtual switch pane, click External, and then click Create Virtual Switch.

4. In the Virtual switch properties pane, in the Name text box, type Physical Network.
5. In the Connection type area, click External network. Select the Allow management operating
system to share this network adapter check box, and then click OK.

6. In the Apply Networking Changes dialog box, read the warning that displays, and then click Yes.
7. In Server Manager, click Local Server, and then verify that the name of the network adapter has
changed to vEthernet (Physical Network).
MCT USE ONLY. STUDENT USE PROHIBITED
L5-32 Installing and configuring Hyper-V and virtual machines

 Task 2: Create a private network


1. On LON-HOST1, in Hyper-V Manager, in the Actions pane, click Virtual Switch Manager.

2. In the Virtual Switch Manager for LON-HOST1 window, in the left pane, click New virtual
network switch.

3. In the Create virtual switch pane, click Private, and then click Create Virtual Switch.

4. In the Virtual Switch Properties pane, in the Name text box, type Isolated Network.
5. In the Connection type area, verify that Private network is selected, and then click OK.

6. In Server Manager, verify that no new network adapters are visible.

 Task 3: Create an internal network


1. On LON-HOST1, in Hyper-V Manager, in the Actions pane, click Virtual Switch Manager.

2. In the Virtual Switch Manager for LON-HOST1 window, in the left pane, click New virtual
network switch.

3. In the Create virtual switch pane, click Internal, and then click Create Virtual Switch.
4. In the Virtual Switch Properties pane, in the Name text box, type Host Internal Network.

5. In the Connection type area, verify that Internal network is selected, and then click OK.
6. In Server Manager, verify that a new network adapter named vEthernet (Host Internal Network)
has been created.

Results: After completing this exercise, you should have successfully configured an external, internal, and
private network.

Exercise 3: Creating and configuring virtual machines


 Task 1: Create a Generation 2 virtual machine
1. On LON-HOST1, on the taskbar, click File Explorer.
2. In File Explorer, go to E:\Program Files\Microsoft Learning\20740\Drives.

Note: The drive letter for this path might vary depending on the configuration of the
physical host.

3. In File Explorer, click the Home tab, and then click the New Folder icon twice to create two new
folders. Right-click each folder, and rename them:

o LON-GUEST1

o LON-GUEST2

4. Close File Explorer.

5. In Hyper-V Manager, in the Actions pane, click New, and then click Virtual Machine.

6. In the New Virtual Machine Wizard, on the Before You Begin page, click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L5-33

7. On the Specify Name and Location page, select Store the virtual machine in a different location,
enter the following values, and then click Next:
o Name: LON-GUEST2

o Location: E:\Program Files\Microsoft Learning\20740\Drives\LON-GUEST2\

8. On the Specify Generation page, click Generation 2, and then click Next.

9. On the Assign Memory page, in the Startup memory box, enter a value of 1024 MB, and then click
Next.

10. On the Configure Networking page, click Isolated Network, and then click Next.
11. On the Connect Virtual Hard Disk page, click Create a virtual hard disk.

12. In the Name text box, type LON-GUEST2.vhdx.

13. In the Location text box, type E:\Program Files\Microsoft Learning\20740\Drives\LON-GUEST2.


14. In the Size text box, type 127, and then click Finish.

15. Right-click LON-GUEST2, and then click Settings.


16. In the Settings for LON-GUEST2 on LON-HOST1 window, in the Hardware area, click SCSI
Controller.

17. In the right pane, click DVD Drive, and then click Add.

18. In the DVD Drive area, click Image file.


19. In the Image file text box, type E:\Program Files\Microsoft Learning\20740\Drives
\WinServer2016_1607.iso, and then click Apply.

20. In the Hardware area, click Firmware.

21. In the Boot order area, click Network Adapter, click Move Down twice, and then click OK.

22. Right-click LON-GUEST2, and then click Connect.

23. In the LON-GUEST2 on LON-HOST1 – Virtual Machine Connection window, click Start.
24. Press any key to boot from DVD.

25. In the Windows Setup window, click Next, and then click Install now.

26. On the Select the operating system you want to install page, click Windows Server 2016
Datacenter Evaluation (Desktop Experience), and then click Next.

27. On the Applicable notices and license terms page, select the I accept the license terms check box,
and then click Next.

28. On the Which type of installation do you want page, click Custom: Install Windows only
(advanced).

29. On the Where do you want to install Windows page, click Drive 0 Unallocated Space, and then
click Next.

Note: The Windows Server operating system installation requires an extended amount of
time. You can work on the next task while waiting for the installation to complete.
MCT USE ONLY. STUDENT USE PROHIBITED
L5-34 Installing and configuring Hyper-V and virtual machines

30. On the Customize settings page, in the Password and Reenter password text boxes, type
Pa55w.rd, and then click Finish.
31. After the installation is complete, in the LON-GUEST2 on LON-HOST1 – Virtual Machine
Connection window, click Shut Down, and then click Shut Down again to confirm.

 Task 2: Create a Generation 1 virtual machine


1. In Hyper-V Manager, in the Actions pane, click New, and then click Hard Disk.

2. In the New Virtual Hard Disk Wizard, on the Before You Begin page, click Next.

3. On the Choose Disk Format page, click VHD, and then click Next.

4. On the Choose Disk Type page, select Differencing, and then click Next.
5. On the Specify Name and Location page, specify the following details, and then click Next:

o Name: LON-GUEST1.vhd

o Location: E:\Program Files\Microsoft Learning\20740\Drives\LON-GUEST1\

6. On the Configure Disk page, type E:\Program Files\Microsoft Learning\Base


\Base17C-WS16-1607.vhd as the location, and then click Finish.

7. Click Start, and then click the Windows PowerShell icon.


8. At the Windows PowerShell command prompt, type the following command to create a new virtual
machine named LON-GUEST1, and then press Enter:

New-VM –Name LON-GUEST1 –MemoryStartupBytes 1024MB –VHDPath “E:\Program


Files\Microsoft Learning\20740\Drives\LON-GUEST1\LON-GUEST1.vhd” –SwitchName
“Isolated Network”

9. Close the Windows PowerShell window.

 Task 3: Configure virtual machines


1. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST1, and then click Settings.
2. In the Settings for LON-GUEST1 on LON-HOST1 window, note the list of hardware for
LON-GUEST1.

3. In the Hardware area, click Memory.

4. Select the Enable Dynamic Memory check box.

5. In the Maximum RAM box, type 4096.

6. In the Hardware area, click Processor.

7. In the Number of virtual processors text box, type 2.

8. In the Hardware area, click Network Adapter.

9. In the Bandwidth Management area, select the Enable bandwidth management check box.

10. In the Minimum bandwidth text box, type 10.

11. In the Maximum bandwidth text box, type 100.

12. In the Management area, click Integration Services.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L5-35

13. Select the Guest services check box, and then click OK.

Note: You must have completed the previous tasks in this exercise before you can
continue. This includes shutting down LON-GUEST2.

14. In Hyper-V Manager, right-click LON-GUEST2, and then click Settings.

15. In the Settings for LON-GUEST2 on LON-HOST1 window, note the list of hardware for
LON-GUEST2. Note the differences from LON-GUEST1.

16. In the Hardware area, click Security, and then read the settings that are available.

17. In the Hardware area, click Memory.

18. Verify that the Enable dynamic memory check box is not selected.

19. In the Hardware area, click Processor.

20. In the Number of virtual processors text box, type 2.


21. In the Hardware area, expand Hard Drive, and then click Quality of Service.

22. Select the Enable Quality of Service management check box.

23. In the Minimum text box, type 10.


24. In the Management area, click Integration Services.

25. Select the Guest services check box, and then click OK.

 Task 4: Create checkpoints


1. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click Checkpoint.
2. Right-click LON-GUEST2, and then click Start.

3. Right-click LON-GUEST2, and then click Connect.

4. Switch to LON-GUEST2.
5. On LON-GUEST2, sign in as Administrator using Pa55w.rd as the password.

6. In Server Manager, click Local Server, and verify that there is only one network adapter.

7. Switch to LON-HOST1.

8. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click Settings.

9. In the Settings for LON-GUEST2 on LON-HOST1 window, in the Hardware area, click Add
Hardware.
10. In the Add Hardware area, click Network Adapter, and then click Add.

11. In the Network adapter area, in the Virtual switch box, select Host Internal Network, and then
click OK.

12. Switch to LON-GUEST2.

13. On LON-GUEST2, in Server Manager, refresh the view and verify that a second network adapter has
been added.

14. Switch to LON-HOST1.

15. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click Checkpoint.
MCT USE ONLY. STUDENT USE PROHIBITED
L5-36 Installing and configuring Hyper-V and virtual machines

16. Read the information in the Virtual Machine Checkpoint window, and then click OK.

17. Right-click the most recent checkpoint, and then click Apply.

18. In the Apply Checkpoint dialog box, click Apply.

19. Verify that the Status for LON-GUEST2 is Off because it was a production checkpoint.

 Task 5: Enable host resource protection


1. On LON-HOST1, click the Start button, and then click Windows PowerShell.

2. In Windows PowerShell, at the command prompt, type the following command, and then press Enter:

Set-VMProcessor LON-GUEST2 -EnableHostResourceProtection $true

3. Close the Windows PowerShell window.

 Task 6: Export a virtual machine


1. On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click Export.
2. In the Export Virtual Machine dialog box, in the Location text box, type E:\Program Files
\Microsoft Learning\20740\Drives\Guest2-Bak, and then click Export.

Results: After completing this exercise, you should have successfully created and configured both a
Generation 1 virtual machine and a Generation 2 virtual machine.

Exercise 4: Enabling nested virtualization for a virtual machine


 Task 1: Import LON-NVHOST2

Note: Before beginning this task, verify the location of the base drives and 20740 course
drives. You need the drive letter for both locations in this exercise. The exercise assumes that the
drive letter E: is used for both, but substitute the correct drive letter as necessary.

1. On LON-HOST1, click Start, and then click Windows PowerShell.

2. At the Windows PowerShell prompt, type the following script, and then press Enter:

& ‘E:\Program Files\Microsoft Learning\20740\Drives\CreateVirtualSwitches.ps1’

3. Type the following script, and then press Enter:

& ‘E:\Program Files\Microsoft Learning\20740\Drives\LON-HOST1_VM-Pre-Import-


20740C.ps1’

4. Type the drive letter for the base images, and then press Enter.
5. Type the drive letter for the course images, and then press Enter.

6. Press Enter to continue.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L5-37

 Task 2: Enable nested virtualization


1. On LON-HOST1, in Hyper-V Manager, in the Virtual Machines pane, verify that the Configuration
Version for 20740C-LON-NVHOST2 is 5.0.

2. Right-click 20740C-LON-NVHOST2, and then click Upgrade Configuration Version.

3. In the Upgrade Configuration Version dialog box, click Upgrade.

4. Verify that the Configuration Version for 20740C-LON-NVHOST2 is now 8.0.


5. At the Windows PowerShell prompt, type the following command, and then press Enter:

Set-VMProcessor -VMName 20740C-LON-NVHOST2 -ExposeVirtualizationExtensions $true

6. Type the following command, and then press Enter:

Get-VMNetworkAdapter -VMName 20740C-LON-NVHOST2 | Set-VMNetworkAdapter -


MacAddressSpoofing On

7. Type the following command, and then press Enter:

Set-VM -VMName 20740C-LON-NVHOST2 -MemoryStartupBytes 4GB

 Task 3: Enable Hyper-V


1. On LON-HOST1, at the Windows PowerShell prompt, type the following command, and then press
Enter:

Start-VM 20740C-LON-NVHOST2

2. To view the activity on LON-NVHOST2, in Hyper-V Manager, right-click 20740C-LON-NVHOST2,


and then click Connect.

3. Wait until LON-NVHOST2 has started, type the following at the Windows PowerShell prompt, and
then press Enter.

Enter-PSSession -VMName 20740C-LON-NVHOST2

4. When you receive a prompt, sign in as Adatum\Administrator by using Pa55w.rd as the password.

5. Type the following command, and then press Enter:

Install-WindowsFeature -Name Hyper-V -IncludeAllSubFeature -IncludeManagementTools -


Restart

6. Wait for LON-NVHOST2 to restart. The virtual machine might restart several times.

7. Switch to LON-NVHOST2.

8. Sign in to LON-NVHOST2 as Administrator by using Pa55w.rd as the password.

9. Click Start, and then click Server Manager.

10. In Server Manager, click Tools, and then click Hyper-V Manager.
11. Verify that LON-NVHOST2 is listed in Hyper-V Manager, and then close Hyper-V Manager.

 Task 4: Prepare for the next module


• Leave your host computer LON-HOST1 started.
MCT USE ONLY. STUDENT USE PROHIBITED
L5-38 Installing and configuring Hyper-V and virtual machines

Results: After completing this exercise, you should have successfully configured a virtual machine for
nested virtualization.
MCT USE ONLY. STUDENT USE PROHIBITED
L6-39

Module 6: Deploying and managing Windows and Hyper-V


containers
Lab: Installing and configuring containers
Exercise 1: Installing Docker Enterprise Edition for Windows Server 2016
 Task 1: Install Docker Enterprise Edition for Windows Server 2016
1. On LON-SVR1-B, click Start, and then click Windows PowerShell.

2. At the Windows PowerShell command prompt, type the following command to install Docker, and
then press Enter:

Install-Module DockerProvider -Force

3. At the notification “Do you want PowerShellGet to install and import the NuGet provider now?”
type Y, and then press Enter.

4. At the Windows PowerShell command prompt, type the following command, and then press Enter:

Install-Package Docker -ProviderName DockerProvider -Force

5. At the notification “Are you sure you want to install software from DockerDefault” type Y, and
then press Enter:

6. Type the following command to restart the computer, and then press Enter:

Restart-Computer -Force

 Task 2: Download an image


1. After the VM restarts, sign in to LON-SVR1-B as Adatum\Administrator with the password
Pa55w.rd.

2. On LON-SVR1-B, click Start, and then click Windows PowerShell.

3. At the Windows PowerShell command prompt, type the following command to search the Docker
Hub for Windows container images, and then press Enter:

docker search microsoft

4. To download the IIS image, type the following command, and then press Enter:

docker pull microsoft/iis:windowsservercore

Note: During this step, you are downloading and extracting several gigabytes of data.
Depending on your internet connection, this might take 60-90 minutes. Because of this, you will
be performing the rest of the lab on 20740C-NVHOST2, which already has Docker Enterprise
Edition installed and the microsoft/iis:windowsservercore images downloaded.

Results: After completing this exercise, you should have installed Docker.
MCT USE ONLY. STUDENT USE PROHIBITED
L6-40 Module 6: Deploying and managing Windows and Hyper-V containers

Exercise 2: Installing and configuring an IIS container


 Task 1: Deploy a new container
1. If you haven’t already done so, sign in to LON-NVHOST2 as Adatum\Administrator with a
password of Pa55w.rd.

2. At the Windows PowerShell command prompt, type the following command to display the
downloaded container image(s), and then press Enter:

docker images

Note: Note the image REPOSITORY of microsoft/iis with a TAG of windowsservercore.


You will use this to run the container.

3. At the Windows PowerShell command prompt, type the following command to deploy the IIS
container, and then press Enter:

docker run -d -p 80:80 microsoft/iis:windowsservercore cmd

Note: This command runs the IIS image as a background service (-d) and configures
networking such that port 80 of the container host maps to port 80 of the container.

4. Type the following command to retrieve the IP address information of the container host, and then
press Enter:

ipconfig

Note: Note the IPv4 address of the Ethernet adapter named vEthernet (HNS Internal NIC).
This is the address of the new container. Make a note of the IPv4 address of the Ethernet adapter
named Ethernet. This is the IP address of the container host.

5. On LON-HOST1, open Internet Explorer.

6. In the address bar, type the following command, and then press Enter:

http://<ContainerhostIP>

Note: Replace <ContainerhostIP> with the IP address of the container host, which is the IP
address of LON-NVHOST2.

7. Observe the default IIS page.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L6-41

 Task 2: Manage the container


1. On LON-NVHOST2, in the Windows PowerShell command prompt window, type the following
command to view the running containers, and then press Enter:

docker ps

2. Make a note of the container ID.

3. Type the following command to stop the container, and then press Enter:

docker stop <ContainerID>

Note: Replace <ContainerID> with the container ID.

4. On LON-HOST1, open Internet Explorer.

5. In the Internet Explorer Address Bar, type the following command, and then press Enter:

http://<ContainerhostIP>

6. Notice that the default IIS page is no longer accessible. This is because the container is not running.
7. On LON-NVHOST2, in the Windows PowerShell command prompt window, type the following
command to delete the container, and then press Enter:

docker rm <ContainerID>

Note: Replace <ContainerID> with the container ID.

Results: After completing this exercise, you should have deployed and managed a container.

 Task 3: Prepare for the next module


• Leave your host computer started as LON-HOST1.
MCT USE ONLY. STUDENT USE PROHIBITED
MCT USE ONLY. STUDENT USE PROHIBITED
L7-43

Module 7: Overview of high availability and


disaster recovery
Lab: Planning and implementing a high
availability and disaster recovery solution
Exercise 1: Determining the appropriate high availability and disaster
recovery solution
 Task 1: Design the appropriate high availability and disaster recovery solution
Question:

What actions should you take and which technologies should you consider using?

Answer:

• Create a Business Recovery Plan to outline and prioritize the divisional and service requirements, with
the customer facing financial requirements having the most critical requirements
• Consider using Live Migration for monthly planned downtime to allow for patching of your virtual
machines.

• Consider using Storage Migration to migrate the virtual machine storage off the existing server, to
upgrade the existing servers’ storage, and to migrate back the virtual machine storage to the server
without any virtual machine downtime.

• Consider using Hyper-V Recovery Manager solution, integrated with Hyper-V Replica, to provide
disaster recovery for critical VMs in the event of a disaster in any of offices.

Exercise 2: Implementing storage migration


 Task 1: Configure and perform storage migration
1. On LON-HOST1, in Hyper-V Manager, right-click LON-SVR1-B, and then click Settings.

2. In Settings for LON-SVR1, under IDE Controller 0, click Hard Drive. Confirm that it is using the
LON-SVR1-B.vhd that is stored locally, and then click OK.
3. In Hyper-V Manager, right-click 20740B-LON-SVR1-B, and then click Move.

4. In the Move “20740B-LON-SVR1-B” Wizard, on the Before You Begin page, click Next.

5. On the Choose Move Type page, select the Move the virtual machine’s storage option, and then
click Next.

6. On the Choose Options for Moving Storage page, select the Move only the virtual machine’s
virtual hard disks option, and then click Next.

7. On the Select Items to Move page, confirm that only 20740B-LON-SVR1-B-Allfiles.vhd is selected,
and then click Next.

8. On the Choose a new location for attached virtual hard disk page, in the Folder text box, type
C:\VMs\LON-SVR1-B, and then click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
L7-44 Overview of high availability and disaster recovery

9. On the Completing Move Wizard page, click Finish.

Note: Because the VHD is dynamically expanding and is small, the move occurs quickly.

10. In Hyper-V Manager, right-click LON-SVR1-B, and then click Settings.

11. In Settings for LON-SVR1-B, under IDE Controller 0, click Hard Drive. Confirm that
20740B-LON-SVR1-B-Allfiles.vhd is stored on C:\VMs folder structure.

Note: This confirms that the VHD was moved while the virtual machine was running.

Results: After completing this exercise, you should have moved Hyper-V storage and virtual machines.

Exercise 3: Configuring Hyper-V Replicas


 Task 1: Configure a replica on both host machines
1. On LON-NVHOST2, open the Hyper-V Manager console.

2. In Hyper-V Manager, right-click LON-NVHOST2, and then select Hyper-V Settings.


3. In Hyper-V Settings for LON-NVHOST2, click Replication Configuration.

4. In the Replication Configuration pane, click Enable this computer as a Replica server.

5. In the Authentication and ports section, select Use Kerberos (HTTP).


6. In the Authorization and storage section, click Allow replication from any authenticated server,
and then click Browse.

7. Expand This PC, double-click Local Disk (C), and then click New folder. For the folder name, type
VMReplica, and then press Enter. Select the C:\VMReplica\ folder, and then click Select Folder.

8. In Hyper-V Settings for LON-NVHOST2, click OK.

9. In the Settings dialog box, read the notice, and then click OK.

10. Click Start, and then click Control Panel.

11. In Control Panel, click System and Security, and then click Windows Firewall.

12. Click Advanced settings.

13. Click Inbound Rules.

14. In the right pane, in the rule list, find and right-click the Hyper-V Replica HTTP Listener (TCP-In)
rule, and then click Enable Rule.

15. Close the Windows Firewall with Advanced Security console, and then close the Windows Firewall.

16. Repeat steps 1 through 15 on LON-HOST1.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L7-45

 Task 2: Configure replication for the LON-SVR1-B virtual machine


1. On LON-HOST1, open the Hyper-V Manager console. Click 20740B-LON-NVHOST2, and then
right-click 20740B-LON-SVR1-B.

2. Click Enable Replication.

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

4. In the Replica Server box, type LON-NVHOST2 and then click Next.
5. On the Specify Connection Parameters page, click Use Kerberos authentication (HTTP), and then
click Next.

6. On the Choose Replication VHDs page, click Next.

7. On the Configure Replication Frequency page, from drop-down list box, select 30 seconds, and
then click Next.

8. On the Configure Additional Recovery Points page, select Maintain only the latest recovery
point, and then click Next.

9. On the Choose Initial Replication Method page, click Send initial copy over the network, select
Start replication immediately, and then click Next.
10. On the Completing the Enable Replication Wizard page, click Finish.

11. At the Replication enabled successfully prompt, click Close.

12. Wait five to seven minutes. You can monitor the progress of the initial replication in the Status
column in the Hyper-V Manager console. When it completes (progress reaches 100 percent), ensure
that 20740B-LON-SVR1-B has appeared on LON-NVHOST2 in Hyper-V Manager.

 Task 3: Validate a planned failover to the replica site


1. On LON-HOST1, in Hyper-V Manager, right-click 20740B-LON-SVR1-B.
2. Select Replication, and then click View Replication Health.

3. Review content of the window that appears, and ensure that there are no errors.

4. Click Close.
5. On LON-NVHOST2, open Hyper-V Manager, and then verify that 20740B-LON-SVR1-B is
turned off.

6. From LON-HOST1, connect to 20740B-LON-SVR1-B virtual machine.

7. On LON-SVR1-B, click Start, click Power, click Shut down, and then click Continue.

8. On LON-HOST1, in Hyper-V Manager, right-click 20740B-LON-SVR1-B, point to Replication, and


then click Planned Failover.

9. In the Planned Failover window, ensure that the option Start the Replica virtual machine after
failover is selected, and then click Fail Over.

10. On LON-NVHOST2, in Hyper-V Manager, ensure that 20740B-LON-SVR1-B is running.

 Task 4: Prepare for the next module


1. Right-click 20740B-LON-SVR1-B on LON-NVHOST2.

2. Click Replication and then click Cancel Failover. Click Yes.

3. Right-click 20740B-LON-SVR1-B, point to Replication, and then click Remove Replication.


4. Click Remove Replication.
MCT USE ONLY. STUDENT USE PROHIBITED
L7-46 Overview of high availability and disaster recovery

5. Repeat step 3 and 4 on LON-HOST1.

6. On LON-HOST1, in Hyper-V Manager, right-click LON-HOST1 and then click Hyper-V Settings.

7. In Replication Configuration, clear the Enable this computer as a Replica server check box and
click OK.

8. Repeat step 6 and 7 on LON-NVHOST2.


9. On LON-HOST1, in Hyper-V Manager, right-click 20740B-LON-SVR1-B, and then click Move.

10. In the Move “20740B-LON-SVR1-B” Wizard, on the Before You Begin page, click Next.

11. On the Choose Move Type page, select the Move the virtual machine’s storage option, and then
click Next.

12. On the Choose Options for Moving Storage page, select the Move only the virtual machine’s
virtual hard disks option, and then click Next.

13. On the Select Items to Move page, confirm that only 20740B-LON-SVR1-B-Allfiles.vhd is selected,
and then click Next.

14. On the Choose a new location for attached virtual hard disk page, in the Folder text box, type
E:\Program Files\Microsoft Learning\20740\Drives\20740B-LON-SVR1-B\Virtual Hard Disks,
and then click Next.

15. On the Completing Move Wizard page, click Finish.


16. Restart the host computer.

17. When you are prompted with the boot menu, select Windows Server 2016, and then press Enter.

18. Sign in to the host machine as directed by your instructor.

Results: After completing this exercise, you will have configured Hyper-V Replica.
MCT USE ONLY. STUDENT USE PROHIBITED
L8-47

Module 8: Implementing failover clustering


Lab A: Implementing failover clustering
Exercise 1: Creating a failover cluster
 Task 1: Connect cluster nodes to iSCSI shared storage

Configure the iSCSI targets


1. On LON-SVR1, on the taskbar, click Start, and then click Server Manager.

2. In Server Manager, in the navigation pane, click File and Storage Services.

3. In the File and Storage Services pane, click iSCSI.


4. In the iSCSI VIRTUAL DISKS pane, click TASKS, and then, in the TASKS drop-down list, select New
iSCSI Virtual Disk.

5. In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location page, under
Storage location, click C:, and then click Next.
6. On the Specify iSCSI virtual disk name page, in the Name text box, type iSCSIDisk1, and then
click Next.

7. On the Specify iSCSI virtual disk size page, in the Size text box, type 5, ensure that GB is selected in
the drop-down list, and then click Next.

8. On the Assign iSCSI target page, click New iSCSI target, and then click Next.

9. On the Specify target name page, in the Name text box, type lon-svr1, and then click Next.

10. On the Specify access servers page, click Add.

11. In the Select a method to identify the initiator dialog box, click Enter a value for the selected
type, and in the Type drop-down list, select IP Address. In the Value text box, type 172.16.0.22, and
then click OK.

12. On the Specify access servers page, click Add.

13. In the Select a method to identify the initiator dialog box, click Enter a value for the selected
type, and then, in the Type drop-down list, select IP Address. In the Value box, type 172.16.0.23,
and then click OK.

14. On the Specify access servers page, click Next.

15. On the Enable Authentication page, click Next.

16. On the Confirm selections page, click Create.

17. On the View results page, wait until creation is complete, and then click Close.

18. In the iSCSI VIRTUAL DISKS pane, click TASKS, and then, in the TASKS drop-down list, select New
iSCSI Virtual Disk.

19. In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location page, under
Storage location, click C:, and then click Next.

20. On the Specify iSCSI virtual disk name page, in the Name text box, type iSCSIDisk2, and then
click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
L8-48 Implementing failover clustering

21. On the Specify iSCSI virtual disk size page, in the Size text box, type 5, ensure that GB is selected in
the drop-down list, and then click Next.
22. On the Assign iSCSI target page, click lon-svr1, and then click Next.

23. On the Confirm selections page, click Create.

24. On the View results page, wait until the creation is completed, and then click Close.

25. In the iSCSI VIRTUAL DISKS pane, click TASKS, and then, in the TASKS drop-down list, select New
iSCSI Virtual Disk.

26. In the New iSCSI Virtual Disk Wizard, on the Select iSCSI virtual disk location page, under
Storage location, click C:, and then click Next.

27. On the Specify iSCSI virtual disk name page, in the Name text box, type iSCSIDisk3, and then
click Next.
28. On the Specify iSCSI virtual disk size page, in the Size text box, type 5, ensure that GB is selected in
the drop-down list, and then click Next.

29. On the Assign iSCSI target page, click lon-svr1, and then click Next.

30. On the Confirm selections page, click Create.

31. On the View results page, wait until the creation is complete, and then click Close.

Connect nodes to the iSCSI targets


1. On LON-SVR2, open Server Manager, click Tools, and then click iSCSI Initiator.

2. In the Microsoft iSCSI dialog box, click Yes.

3. In the iSCSI Initiator Properties window, click the Discovery tab, and then click Discover Portal.

4. In the IP address or DNS name text box, type 172.16.0.21, and then click OK.

5. Click the Targets tab, and then click Refresh.


6. In the Targets list, click iqn.1991-05.com.microsoft:lon-svr1-lon-svr1-target, and then click
Connect.

7. Ensure that Add this connection to the list of Favorite Targets is selected, and then click OK two
times.
8. On LON-SVR3, open Server Manager, click Tools, and then click iSCSI Initiator.

9. In the Microsoft iSCSI dialog box, click Yes.

10. In the iSCSI Initiator Properties window, click the Discovery tab, and then click Discover Portal.

11. In the IP address or DNS name text box, type 172.16.0.21, and then click OK.

12. Click the Targets tab, and then click Refresh.

13. In the Targets list, click iqn.1991-05.com.microsoft:lon-svr1-lon-svr1-target, and then click


Connect.

14. Ensure that the Add this connection to the list of Favorite Targets check box is selected, and then
click OK two times.

15. On LON-SVR2, in Server Manager, click Tools, and then click Computer Management.

16. Expand Storage, and then click Disk Management.

17. Right-click Disk 4, and then click Online.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L8-49

18. Right-click Disk 4, and then click Initialize Disk.

19. In the Initialize Disk dialog box, click OK.

20. Right-click the unallocated space next to Disk 4, and then click New Simple Volume.

21. On the Welcome page, click Next.

22. On the Specify Volume Size page, click Next.

23. On the Assign Drive Letter or Path page, click Next.

24. On the Format Partition page, in the Volume Label text box, type Data1. Select the Perform a
quick format check box, and then click Next.

25. Click Finish.

Note: If a dialog box appears with a prompt to format the disk, click Cancel.

26. Repeat steps 17 through 25 for Disk 5 and Disk 6, using Data2 and Data3, respectively, for volume
labels.

27. Close the Computer Management window.

28. On LON-SVR3, in Server Manager, click Tools, and then click Computer Management.

29. Expand Storage, and click Disk Management.

30. Select and right-click Disk Management, and then click Refresh.

31. Right-click Disk 3, and then click Online.

32. Right-click Disk 4, and then click Online.

33. Right-click Disk 5, and then click Online.


34. Close the Computer Management window.

 Task 2: Install the Failover Cluster feature


1. On LON-SVR2, if Server Manager is not open, click the Server Manager icon.

2. Click Add roles and features.


3. In the Add roles and features Wizard, on the Before You Begin page, click Next.

4. On the Select installation type page, click Next.

5. On the Select destination server page, ensure that Select a server from the server pool is
selected, and then click Next.

6. On the Select server roles page, click Next.

7. On the Select features page, in the Features list, select Failover Clustering.
8. In the Add features that are required for Failover Clustering window, click Add Features, and
then click Next.

9. On the Confirm installation selections page, click Install.

10. When installation completes and you receive the Installation succeeded on
LON-SVR2.Adatum.com message, click Close.
MCT USE ONLY. STUDENT USE PROHIBITED
L8-50 Implementing failover clustering

11. On LON-SVR3 and LON-SVR4, repeat steps 1 through 10.

12. When installation completes and you receive the Installation succeeded on
LON-SVR3.Adatum.com message, click Close.

 Task 3: Validate the servers for failover clustering


1. On LON-SVR2, in Server Manager, click Tools, and then click Failover Cluster Manager.

2. In Failover Cluster Manager, in the Actions pane, click Validate Configuration.

3. In the Validate a Configuration Wizard, click Next.

4. In the Enter Name text box, type LON-SVR2, and then click Add.

5. In the Enter Name text box, type LON-SVR3.

6. Click Add, and then click Next.

7. Verify that Run all tests (recommended) is selected, and click Next.

8. On the Confirmation page, click Next.


9. Wait for the validation tests to finish, which might take between 5 and 7 minutes, and then on the
Summary page, scroll through the report. Verify that all tests completed without errors. Some
warnings are expected.

10. On the Summary page, click Finish.

 Task 4: Create the failover cluster


1. On LON-SVR2, in the Failover Cluster Manager, in the Actions pane, click Create Cluster.

2. On the Before you begin page, click Next.


3. On the Select Servers page, in the Enter server name box, type LON-SVR2, and then click Add.

4. In the Enter server name box, type LON-SVR3, click Add, and then click Next.
5. On the Access Point for Administering the Cluster page, in the Cluster Name text box, type
Cluster1.

6. In the Address text box, type 172.16.0.125, and then click Next.

7. On the Confirmation page, click Next.

8. On the Summary page, click Finish.

 Task 5: Add the file-server application to the failover cluster


1. On LON-SVR2, in the Failover Cluster Manager console, expand Cluster1.Adatum.com, expand
Storage, and then click Disks.
2. Ensure that three disks named Cluster Disk 1, Cluster Disk 2, and Cluster Disk 3 are present and
online.

3. Right-click Roles, and then click Configure Role.

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

5. On the Select Role page, click File Server, and then click Next.

6. On the File Server Type page, click File Server for general use, and then click Next.

7. On the Client Access Point page, in the Name text box, type AdatumFS. In the Address text box,
type 172.16.0.130, and then click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L8-51

8. On the Select Storage page, select the Cluster Disk 2 check box, and then click Next.

9. On the Confirmation page, click Next.

10. On the Summary page, click Finish.

 Task 6: Add a shared folder to a highly available file server


1. On LON-SVR3, in the Server Manager console, click Tools, and then click Failover Cluster
Manager.

2. Expand Cluster1.Adatum.com, click Roles, right-click AdatumFS, and then click Add File Share.

3. In the New Share Wizard, on the Select the profile for this share page, click SMB Share – Quick,
and then click Next.

4. On the Select the server and the path for this share page, click Next.

5. On the Specify share name page, in the Share name text box, type Docs, and then click Next.
6. On the Configure share settings page, review the available options but do not make any changes,
and then click Next.

7. On the Specify permissions to control access page, click Next.

8. On the Confirm selections page, click Create.

9. On the View results page, click Close.

 Task 7: Configure failover and failback settings


1. On LON-SVR3, in the Failover Cluster Manager console, click Roles, right-click AdatumFS, and
then click Properties.

2. In the AdatumFS Properties dialog box, click the Failover tab, and then click Allow failback.

3. Click Failback between, and set the values to 4 and 5 hours.

4. Click the General tab.

5. Select both LON-SVR2 and LON-SVR3 as preferred owners.

6. Select LON-SVR3, and click Up so that it is first in the preferred owners list.

7. To close the AdatumFS Properties dialog box, click OK.

 Task 8: Validate the highly available file-server deployment


1. On LON-DC1, open File Explorer. In the address bar, type \\AdatumFS\, and then press Enter.

2. Verify that you can access the location and that you can open the Docs folder.

3. Create a text document inside this folder named test.txt.

4. On LON-SVR2, switch to Failover Cluster Manager.

5. In the Failover Cluster Manager console, expand Cluster1.Adatum.com, and then click Roles.

6. In the Owner Node column, note the current owner of AdatumFS.

Note: The owner will be LON-SVR2 or LON-SVR3.

7. Right-click AdatumFS, click Move, and then click Select Node.


MCT USE ONLY. STUDENT USE PROHIBITED
L8-52 Implementing failover clustering

8. In the Move Clustered Role dialog box, select the cluster node (it will be either LON-SVR2 or
LON-SVR3), and then click OK.
9. Verify that AdatumFS has moved to a new owner.

10. Switch to LON-DC1.

11. To verify that you can still access the \\AdatumFS\ location, open File Explorer, and in the address
bar, type \\AdatumFS\, and then press Enter.

 Task 9: Validate the failover and quorum configuration for the File Server role
1. On LON-SVR2, in the Failover Cluster Manager console, click Roles.

2. In the Owner Node column, verify the current owner for the AdatumFS role.

Note: The owner will be LON-SVR2 or LON-SVR3.

3. Click Nodes, and then select the node that is the current owner of the AdatumFS role.
4. Right-click the node, click More Actions, and then click Stop Cluster Service.

5. In the Failover Cluster Manager console, click Roles, and verify that AdatumFS is running.

Note: This confirms that AdatumFS has moved to another node.

6. Switch to LON-DC1.

7. On LON-DC1, to verify that you can still access the \\AdatumFS\ location, open File Explorer. In the
address bar, type \\AdatumFS\, and then press Enter.

8. Switch to LON-SVR2.
9. In the Failover Cluster Manager console, click Nodes, right-click the stopped node, click More
Actions, and then click Start Cluster Service.

10. Expand Storage, and then click Disks.


11. In the center pane, find the disk that is assigned to Disk Witness in Quorum.

Note: You can view this in the Assigned To column.

12. Right-click the disk, click Take Offline, and then click Yes.

13. Switch to LON-DC1.

14. On LON-DC1, to verify that you can still access the \\AdatumFS\ location, open File Explorer, and in
the address bar, type \\AdatumFS\, and then press Enter.

Note: This verifies that the cluster is running even if the witness disk is offline.

15. Switch to LON-SVR2.

16. In the Failover Cluster Manager console, expand Storage, click Disks, right-click the disk that is in
Offline status, and then click Bring Online.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L8-53

17. Right-click Cluster1.Adatum.com, click More Actions, and then click Configure Cluster Quorum
Settings.
18. On the Before You Begin page, click Next.

19. On the Select Quorum Configuration Option page, click Advanced quorum configuration, and
then click Next.

20. On the Select Voting Configuration page, review the available settings.

Note: Notice that you can select a node or nodes that will, or will not, have a vote in the
cluster.

21. Do not make any changes, and then click Next.

22. On the Select Quorum Witness page, ensure that Configure a disk witness is selected, and then
click Next.
23. On the Configure Storage Witness page, click Cluster Disk 3, and then click Next.

24. On the Confirmation page, click Next.

25. On the Summary page, click Finish.

Results: After completing this exercise, you should have created a failover cluster successfully, configured
a highly available file server, and tested the failover scenarios.

Exercise 2: Verifying quorum settings and adding a node


 Task 1: Remotely connect to a cluster
1. If necessary, sign in to LON-CL1 with the username Adatum\Administrator and the password
Pa55w.rd.

2. Click Start, click Windows Administrative Tools, and then click Failover Cluster Manager.

3. In Failover Cluster Manager, right-click Failover Cluster Manager, and then click Connect to
Cluster.
4. In the Select Cluster dialog box, in the Cluster name box, type Cluster1.Adatum.com, and click OK.

5. Expand Cluster1.Adatum.com, and then click Roles.

 Task 2: Check the assigned votes in the Nodes section


1. On LON-SVR2, right-click Start, and then click Windows PowerShell (Admin).

2. In the Windows PowerShell console, run following cmdlet to check the assigned votes:

Get-ClusterNode | select name, nodeweight, ID, state

3. Verify that the NodeWeight property of a cluster node has value 1, which means that the quorum
vote of the node is assigned and that the cluster is managing it.
MCT USE ONLY. STUDENT USE PROHIBITED
L8-54 Implementing failover clustering

 Task 3: Verify the status of the disk witness


• On LON-SVR2, in the Windows PowerShell console, type the following command, and then press
Enter:

Get-ClusterQuorum | Select Cluster, QuorumResource, QuorumType

 Task 4: Add a node in the cluster


1. On LON-SVR2, in the Failover Cluster Manager, click Nodes.

2. In the Actions pane, click Add Node.

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


4. On the Select Servers page, in the Enter server name box, type LON-SVR4, click Add, and then
click Next.

5. On the Validation Warning page, click Next.


6. Complete the validation by using the defaults.

7. On the Summary page of the Validate a Configuration Wizard, click Finish.

8. In the Add Node Wizard, on the Confirmation page, click Next.


9. On the Summary page, click Finish.

 Task 5: Verify the assigned votes


1. On LON-SVR2, in the Windows PowerShell console, type following cmdlet, and then press Enter:

Get-ClusterNode | select name, nodeweight, ID, state

2. Verify that the NodeWeight property of a cluster node has value 1, which means that the quorum
vote of the node is assigned and that the cluster is managing it.

 Task 6: Prepare for the next lab


• When you finish the lab, leave the virtual machines running for the subsequent lab.

Results: After completing this exercise, you should have added another node in the cluster successfully,
and changed the quorum to the witness disk.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L8-55

Lab B: Managing a failover cluster


Exercise 1: Evicting a node and verifying quorum settings
 Task 1: Evict node LON-SVR4
1. On LON-SVR3, if necessary, open Failover Cluster Manager.

2. Expand the Cluster1.Adatum.com cluster, and then click Nodes.

3. Right-click the LON-SVR4 node, click More Actions, and then click Evict.
4. In the Evict node LON-SVR4 dialog box, click Yes to evict the node.

 Task 2: Verify changes in quorum settings and the witness disk


1. On LON-SVR2, in the Windows PowerShell console, type following cmdlet, and then press Enter:

Get-ClusterNode | select name, nodeweight, ID, state

2. Verify that the NodeWeight property of a cluster node has value 1, which means that the quorum
vote of the node is assigned and is managed by the cluster.

Results: After completing this exercise, you should have evicted a node from the cluster, and verified the
changes in quorum settings and witness disk.

Exercise 2: Changing the quorum from disk witness to file-share witness


and defining node voting
 Task 1: Get the current quorum model
• On LON-SVR2, in the Windows PowerShell console, type the following command, and then press
Enter:

Get-ClusterQuorum | Select Cluster, QuorumResource, QuorumType

 Task 2: Create a file share on LON-SVR1


1. On LON-SVR1, on the taskbar, click File Explorer, right-click the disk Local Disk (C:), click New, and
then click Folder.

2. Type FSW, and press Enter.

3. Right-click FSW, click Share with, and then click Specific people.

4. In the File Sharing dialog box, type Everyone, and then click Add.

5. In the Read list, click Read/Write.

6. Click Share, and then click Done.

 Task 3: Change the current quorum model to a file-share witness


• On LON-SVR2, in the Windows PowerShell console, type the following command, and then press
Enter:

Set-ClusterQuorum -NodeAndFileShareMajority "\\LON-SVR1\FSW"


MCT USE ONLY. STUDENT USE PROHIBITED
L8-56 Implementing failover clustering

 Task 4: Verify that the current quorum model is a file share witness
• On LON-SVR2, in the Windows PowerShell console, type the following command, and then press
Enter:

Get-ClusterQuorum | Select Cluster, QuorumResource, QuorumType

Results: After completing this exercise, you should have changed the quorum from disk witness to file
share witness and defined node voting.

Exercise 3: Verifying high availability


 Task 1: Simulate server failure
1. On LON-SVR2, in the Failover Cluster Manager console, expand Cluster1.Adatum.com, and then
click Roles.

2. In the Owner Node column, notice the current owner of AdatumFS.

Note: The owner will be LON-SVR2 or LON-SVR3.

3. If LON-SVR3 is not the owner, right click AdatumFS, click Move, click Select Node, click LON-SVR3,
and then click OK.

4. Shut down LON-SVR3.

 Task 2: Verify functionality in Cluster1 and verify file availability


1. On LON-DC1, open File Explorer. In the address bar, type \\AdatumFS\, and then press Enter.

2. Verify that you can access the location and that you can open the Docs folder.

3. Create a test text document named test2.txt inside this folder.

 Task 3: Validate whether the file is still available


1. Start the LON-SVR3 virtual machine.

2. On LON-SVR2, in the Failover Cluster Manager console, expand Cluster1.Adatum.com, and then
click Roles.

3. Right click AdatumFS, click Move, click Select Node, click LON-SVR3, and then click OK.

4. On LON-DC1, open File Explorer. In the address bar, type \\AdatumFS\, and then press Enter.

5. Verify that you can access the location and that you can open the Docs folder.

6. Create a test text document named test3.txt inside this folder.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L8-57

 Task 4: Prepare for the next module


When you finish the lab, revert the virtual machines (VMs) to their initial state. To do this, perform the
following steps:

1. On the host computer, start Hyper-V Manager.

2. In the VMs list, right-click 20740C-LON-DC1, and then click Revert.

3. In the Revert VM dialog box, click Revert.


4. Repeat steps 2 and 3 for 20740C-LON-SVR1, 20740C-LON-SVR2, 20740C-LON-SVR3,
20740C-LON-SVR4, and 20740C-LON-CL1.

Results: After completing this exercise, you should have tested failover cluster high availability
successfully by taking a server offline and then bringing it back online.
MCT USE ONLY. STUDENT USE PROHIBITED
MCT USE ONLY. STUDENT USE PROHIBITED
L9-59

Module 9: Implementing failover clustering with


Windows Server 2016 Hyper-V
Lab: Implementing failover clustering with
Windows Server 2016 Hyper-V
Exercise 1: Configuring virtual environment
 Task 1: Configure physical host, VMs, and nested virtualization
1. On LON-HOST2, click Start, and then click Windows PowerShell.

2. In the Windows PowerShell window, type the following command, and then press Enter:

Install-WindowsFeature –Name Hyper-V,Hyper-V-Tools,Hyper-V-PowerShell –Restart

Your computer will restart a couple of times. Be sure to select 20740C-LON-HOST2 at the boot
menu each time it restarts.

3. Sign into LON-HOST2 as Adatum\Administrator with the password Pa55w.rd.

4. Open File Explorer, and then browse to E:\Program Files\Microsoft Learning\20740\Drives.


(Note that the drive letter may vary based upon your host machine.)
5. Run the following scripts to create the needed switches and import the VMs that need to be imported
for this lab:

CreateVirtualSwitches.ps1
LON-HOST2_VM-Pre-Import-20740C.ps1

6. Open Server Manager, click Tools, and then click Hyper-V Manager.

7. In the left pane, select LON-HOST2.


8. In the Virtual Machines pane, select 20740C-LON-NVHOST3.

9. On the Actions menu, click Upgrade Configuration Version, and then click Upgrade.

10. Repeat steps 8 and 9 for 20740-LON-NVHOST4 and 20740C-LON-DC1-C.


11. Start Windows PowerShell from the Start menu, and then run the following commands to enable
nested virtualization on 20740C-LON-NVHOST3 and 20740C-LON-NVHOST4:

Set-VMProcessor -VMName 20740C-LON-NVHOST3 -ExposeVirtualizationExtensions $true -


Count 2
Set-VMMemory 20740C-LON-NVHOST3 -DynamicMemoryEnabled $false
Get-VMNetworkAdapter -VMName 20740C-LON-NVHOST3| Set-VMNetworkAdapter -
MacAddressSpoofing On
Set-VMProcessor -VMName 20740C-LON-NVHOST4 -ExposeVirtualizationExtensions $true -
Count 2
Set-VMMemory 20740C-LON-NVHOST4 -DynamicMemoryEnabled $false
Get-VMNetworkAdapter -VMName 20740C-LON-NVHOST4| Set-VMNetworkAdapter -
MacAddressSpoofing On

 Task 2: Install Hyper-V on nested virtualization hosts


1. Open Server Manager, click Tools, and then click Hyper-V Manager.
2. In the left pane, select LON-HOST2.
MCT USE ONLY. STUDENT USE PROHIBITED
L9-60 Implementing failover clustering with Windows Server 2016 Hyper-V

3. In the Virtual Machines pane, select 20740C-LON-NVHOST3.

4. In the Actions menu, click Start.

5. Repeat steps 3 and 4 for 20740-LON-NVHOST4 and 20740C-LON-DC1-C.

6. If you closed the Windows PowerShell window on LON-HOST2, click Start, right-click Windows
PowerShell, and then click Run as Administrator.
7. To open a PSSession utilizing Windows PowerShell Direct, at the Windows PowerShell command
prompt, type the following command, and then press Enter:

Enter-PSSession –VMName 20740C-LON-NVHOST3

8. In the Credentials request dialog box, in the Username text box, type Adatum\Administrator, and
in the Password text box, type Pa55w.rd, and then press Enter.

9. To install Hyper-V, type the following command at the Windows PowerShell command prompt,
and then press Enter:

Install-WindowsFeature –Name Hyper-V,Hyper-V-Tools,Hyper-V-Powershell –Restart

10. Wait until the installation completes. Type the following command at the Windows PowerShell
command prompt, and then press Enter:

Exit

Note: If this generates the error “Command ‘Exit’ was not run as the session in which it was
intended to run was either closed or broken,” ignore this error.

11. Repeat steps 7 through 10 for 20740C-LON-NVHOST4.

12. To configure networking, in a Windows PowerShell prompt on LON-HOST2, type the following
command (note that the path may differ on your host machine):

Invoke-Command –VMName 20740C-LON-NVHOST3 –FilePath “D:\Program Files\Microsoft


Learning\20740\Drives\CreateVirtualSwitches.ps1”

13. In the Credentials request dialog box, in the Username text box, type Adatum\Administrator, and
in the Password text box, type Pa55w.rd, and then press Enter.

14. Repeat steps 12 and 13 for 20740C-LON-NVHOST4.


15. Switch to the Hyper-V Manager console, right-click 20740C-LON-NVHOST3, click Connect, and
then sign in as Adatum\Administrator with the password Pa55w.rd.

16. Repeat step 15 for 20740C-LON-NVHOST4.

Results: After completing this exercise, you should have successfully imported VMs and enabled nested
virtualization on 20740C-LON-NVHOST3 and 20740C-LON-NVHOST4.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L9-61

Exercise 2: Configuring a failover cluster for Hyper-V


 Task 1: Connect to the iSCSI target from both host machines
1. On LON-NVHOST3, click Start, click the Server Manager icon, and then in the Server Manager
window click Tools, and then click iSCSI Initiator.

2. At the Microsoft iSCSI prompt, click Yes.

3. Click the Discovery tab.

4. On the Discovery tab, click Discover Portal.

5. In the IP address or DNS name text box, type 172.16.0.10, and then click OK.
6. Click the Targets tab, and then click Refresh.

7. In the Discovered targets list, click iqn.1991-05.com.microsoft:lon-dc1-target1-target, and then


click Connect.

8. If not already selected, select Add this connection to the list of Favorite Targets, and then
click OK.

9. To close iSCSI Initiator Properties dialog box, click OK.

10. Switch to LON-NVHOST4.

11. On LON-NVHOST4, open Server Manager, click Tools, and then click iSCSI Initiator.

12. In the Microsoft iSCSI dialog box, click Yes.


13. In the iSCSI Initiator dialog box, click the Discovery tab.

14. On the Discovery tab, click Discover Portal.

15. In the IP address or DNS name text box, type 172.16.0.10, and then click OK.

16. Click the Targets tab, and then click Refresh.

17. In the Discovered targets list, click iqn.1991-05.com.microsoft:lon-dc1-target1-target, and then


click Connect.
18. Select Add this connection to the list of Favorite Targets, and then click OK.

19. To close the iSCSI Initiator Properties dialog box, click OK.

20. On LON-NVHOST4, in Server Manager, click Tools, and then click Computer Management.
21. Expand Storage, and then click Disk Management.

22. Right-click Disk 1, and then click Online. (This is the first disk that is 20 GB in size. Your disk number
might be different.)

23. Right-click Disk 1, and then click Initialize Disk.

24. In the Initialize Disk dialog box, click OK.

25. Right-click the unallocated space next to Disk 1, and then click New Simple Volume.

26. On the Welcome page, click Next.

27. On the Specify Volume Size page, click Next.

28. On the Assign Drive Letter or Path page, click Next.

29. On the Format Partition page, in the Volume label text box, type ClusterDisk.
MCT USE ONLY. STUDENT USE PROHIBITED
L9-62 Implementing failover clustering with Windows Server 2016 Hyper-V

30. Select the Perform a quick format check box, click Next, and then click Finish.

Note: If a Microsoft Windows prompt appears to format the disk, click Cancel.

31. Repeat steps 22 through 30 for Disk 2 and Disk 3. In step 29, use the following settings:

o Disk 2 name: ClusterVMs

o Disk 3 name: Quorum

32. Switch back to LON-NVHOST3.

33. On LON-NVHOST3 in Server Manager, click Tools, and then click Computer Management.
34. Expand Storage, and then click Disk Management.

35. Right-click Disk Management, and then click Refresh.

36. Right-click Disk 1, and then click Online.


37. Right-click Disk 2, and then click Online.

38. Right-click Disk 3, and then click Online.

39. Close the Computer Management console.

Note: Disk numbers might vary based on the number of physical disks in the host
computer. Choose the disks that are 20 GB in size.

 Task 2: Configure failover clustering on both host machines


1. On LON-NVHOST3, ensure that the Server Manager console is open.
2. In Server Manager, on the Dashboard, click Add roles and features.

3. On the Before you begin page, click Next.

4. On the Select installation type page, click Next.


5. On the Select destination server page, ensure that Select server from the server pool is selected,
and then click Next.

6. On the Select server roles page, click Next.

7. On the Select features page, in the Features list, click Failover Clustering. At the Add features
that are required for failover clustering prompt, click Add Features, and then click Next.

8. On the Confirm installation selections page, click Install.

9. When installation is complete, click Close.

10. Switch to LON-NVHOST4.

11. Repeat steps 1 through 9 on LON-NVHOST4.

12. Switch back to LON-NVHOST3.

13. On LON-NVHOST3, in Server Manager, click Tools, and then click Failover Cluster Manager.

14. In Failover Cluster Manager, in the center pane, under Management, click Create Cluster.

15. On the Before You Begin page of the Create Cluster Wizard, read the information, and then
click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L9-63

16. On the Select Servers page, in the Enter server name text box, type LON-NVHOST3, and then click
Add. Again, in the Enter server name text box, type LON-NVHOST4, and then click Add.
17. Verify the entries, and then click Next.

18. On the Validation Warning page, click No. I don’t require support from Microsoft for this
cluster, and then click Next.

Note: You are skipping validation to save some time in the lab. In a production
environment, you should never skip cluster validation.

19. On the Access Point for Administering the Cluster page, in the Cluster Name text box, type
VMCluster.

20. In the Address text box, type 172.16.0.126, and then click Next.

21. In the Confirmation dialog box, verify the information, clear the Add all eligible storage to the
cluster option check box, and then click Next.

22. On the Summary page, click Finish.

 Task 3: Configure disks for a failover cluster


1. On LON-NVHOST3, in the Failover Cluster Manager console, expand VMCluster.Adatum.com,
expand Storage, right-click Disks, and then click Add Disk.

2. In the Add Disks to Cluster dialog box, verify that all disks are selected, and then click OK.
3. Click Disks in the left pane and verify that all disks display as Available Storage in Failover Cluster
Manager.

4. Click Cluster Disk 1, right-click that disk, and then click Add to Cluster Shared Volumes.
5. Right-click VMCluster.adatum.com, click More Actions, click Configure Cluster Quorum Settings,
and then click Next.

6. On the Select Quorum Configuration Option page, click Use default quorum configuration, and
then click Next.

7. On the Confirmation page, click Next.

8. On the Summary page, click Finish.

Results: After completing this exercise, you should have successfully configured the failover clustering
infrastructure for Hyper-V.

Exercise 3: Configuring a highly available VM


 Task 1: Move VM storage to the iSCSI target
1. Ensure that LON-NVHOST3 is the owner of the disk that you just assigned to Cluster Shared
Volume. You can read the owner value in the Owner Node column. If that is not the case, then move
the disk to LON-NVHOST3 before proceeding to step 2.
MCT USE ONLY. STUDENT USE PROHIBITED
L9-64 Implementing failover clustering with Windows Server 2016 Hyper-V

Note: To move the disk:


• Right-click the disk, and then click Move.
• Click Select Node, click LON-NVHOST3, and then click OK.

2. On LON-NVHOST3, on the desktop, on the taskbar, click the File Explorer icon.

3. In File Explorer, expand drive C:, expand Program Files, expand Microsoft Learning, expand 20740,
expand Drives, expand 20740C-NANO-SVR1, and then click Virtual Hard Disks.

Note: The drive letter might be different depending on the physical machine.

4. In the details pane, move the 20740C-NANO-SVR1.vhd virtual hard disk file to the
C:\ClusterStorage\Volume1 location.

 Task 2: Configure the VM as highly available


1. On LON-NVHOST3, in Failover Cluster Manager, click Roles, and then in the Actions pane, click
Virtual Machines.

2. Click New Virtual Machine.


3. Select LON-NVHOST3 as the cluster node, and then click OK.

4. In the New Virtual Machine Wizard, on the Before You Begin page, click Next.

5. On the Specify Name and Location page, in the Name text box, type TestClusterVM, click Store
the virtual machine in a different location, and then click Browse.

6. Browse to and select C:\ClusterStorage\Volume1, click Select Folder, and then click Next.

7. On the Specify Generation page, click Generation 1, and then click Next.
8. On the Assign Memory page, type 256, and then click Next.

9. On the Configure Networking page, leave the selection as Not Connected, and then click Next.
10. On the Connect Virtual Hard Disk page, click Use an existing virtual hard disk, and then click
Browse.

11. Browse to C:\ClusterStorage\Volume1, click 20740C-NANO-SVR1.vhd, and then click Open.

12. Click Next, and then click Finish. If an error appears informing you that Microsoft Management has
stopped working, restart this task from step 1.

13. On the Summary page of the High Availability Wizard, click Finish.

14. Right-click the TestClusterVM, and then click Settings.

15. On LON-NVHOST3, in the Settings for TestClusterVM dialog box, in the navigation pane, expand
Processor, and then click Compatibility.

16. In the right pane, select the Migrate to a physical computer with a different processor version
check box, and then click OK.

17. Right-click TestClusterVM, and then click Start.

18. Ensure that the VM starts successfully.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L9-65

 Task 3: Failover VM
1. On LON-NVHOST4, in the Server Manager console, click Tools, and then click Failover Cluster
Manager.

2. Expand VMCluster.Adatum.com, and then click Roles.

3. Right-click TestClusterVM, click Move, click Live Migration, and then click Select Node.
4. Click LON-NVHOST4, and then click OK. Wait until the machine is migrated. You will see that the
Owner Node column will change the value when migration completes.

Note: If the only option is LON-NVHOST3, select LON-NVHOST3 and continue the lab.

5. Right-click TestClusterVM, and then click Connect.

6. Ensure that you can access and operate the VM after it is migrated to another host.

7. In Failover Cluster Manager, right click TestClusterVM, and select Shut Down.

 Task 4: Configure drain on shutdown


1. On LON- NVHOST3, select Windows Start, and then launch Windows PowerShell.

2. At the Windows PowerShell command prompt, type the following command, and then press Enter:

(Get-Cluster).DrainOnShutdown

Note: This should return a value of “1”.

3. On LON-NVHOST3, restore Failover Cluster Manager.

4. Select Roles in Failover Cluster Manager.

5. On LON-NVHOST4, click on Windows Start, select Power, and then select Shut down.

6. On the pop-up dialog box, select Continue.


7. Observe TestClusterVM live migrate to LON- NVHOST3 from LON-NVHOST4 before shutting
down.

 Task 5: Prepare for the next module


When you are finished with the lab, revert all VMs to their initial state:

1. On the host computer, start Hyper-V Manager.

2. Shut down all VMs.

3. Restart your computer, and when prompted, choose Windows Server 2016.

Results: After completing this exercise, you should have successfully configured the VM as highly
available.
MCT USE ONLY. STUDENT USE PROHIBITED
MCT USE ONLY. STUDENT USE PROHIBITED
L10-67

Module 10: Implementing Network Load Balancing


Lab: Implementing NLB
Exercise 1: Implementing a Network Load Balancing (NLB) cluster
 Task 1: Verify website functionality for standalone servers
1. On LON-SVR1, on the taskbar, click the File Explorer icon.

2. In the File Explorer address bar, browse to c:\inetpub\wwwroot.

3. Double-click the file iisstart.png to open it in Microsoft Paint.

4. Ensure that the Paintbrush tool is selected.

5. Create a circle around the IIS logo.

6. Save the changes that you made to iisstart.png, and then close Microsoft Paint.

7. Close File Explorer.

8. Switch to LON-DC1.
9. Click Start, click Windows Accessories, and then click Internet Explorer.

10. In the Microsoft Internet Explorer Address Bar, type the address http://LON-SVR1, and then press
Enter.
11. Verify that the webpage displays the IIS logo with the circle that you just added.

12. In the Internet Explorer Address Bar, type the address http://LON-SVR2, and then press Enter.

13. Verify that the webpage does not display the IIS logo with the circle.

 Task 2: Install NLB


1. Switch to LON-SVR1.

2. Click Start, and then click Server Manager.

3. In the Server Manager console, click Tools, and then click Windows PowerShell ISE.

4. In the Windows PowerShell ISE window, type the following command to install NLB on LON-SRV1
and LON-SVR2, and then press Enter:

Invoke-Command -Computername LON-SVR1,LON-SVR2 -command {Install-WindowsFeature


NLB,RSAT-NLB}

Note: If you receive warnings about the network connection to each server, ignore these.

 Task 3: Create a new Windows Server 2016 NLB cluster


1. On LON-SVR1, in the Windows PowerShell ISE window, type the following command to create the
new NLB cluster, and then press Enter:

New-NlbCluster -InterfaceName "Ethernet" -OperationMode Multicast -ClusterPrimaryIP


172.16.0.42 -ClusterName LON-NLB
MCT USE ONLY. STUDENT USE PROHIBITED
L10-68 Implementing Network Load Balancing

2. In the Windows PowerShell ISE window, type the following command to add the NLB cluster to
Domain Name System (DNS), and then press Enter:

Invoke-Command -Computername LON-DC1 -command {Add-DNSServerResourceRecordA –zonename


adatum.com –name LON-NLB –Ipv4Address 172.16.0.42}

 Task 4: Add a second host to the cluster


• On LON-SVR1, in the Windows PowerShell ISE window, type the following command to add a
second host to the cluster, and then press Enter:

Add-NlbClusterNode -InterfaceName "Ethernet" -NewNodeName "LON-SVR2" -


NewNodeInterface "Ethernet"

 Task 5: Validate the NLB cluster


1. On LON-SVR1, in Server Manager, click Tools, and then click Network Load Balancing Manager.

2. Click OK to dismiss the Warning message box, if it appears.


3. In the Network Load Balancing Manager window, click LON-NLB (172.16.0.42).

4. In the Host configuration information for hosts in cluster LON-NLB (172.16.0.42) pane, verify
that the nodes LON-SVR1 and LON-SVR2 display with the status Converged.
5. Right-click the LON-NLB (172.16.0.42) cluster, and then click Cluster properties.

6. In the LON-NLB(172.16.0.42) Properties dialog box, on the Cluster Parameters tab, verify that the
cluster is set to use the Multicast operations mode.
7. On the Port Rules tab, verify that there is a single port rule with a Cluster IP address of All that starts
at port 0 and ends at port 65535 for both TCP and UDP protocols, and that it uses Single affinity.

8. Click OK to close the LON-NLB(172.16.0.42) Properties dialog box.

Results: After completing this exercise, you should have successfully implemented an NLB cluster.

Exercise 2: Configuring and managing the NLB cluster


 Task 1: Configure port rules and affinity

Configure affinity for NLB cluster nodes


1. On LON-SVR2, click Start, and then click Windows PowerShell.

2. In the Windows PowerShell window, type the following commands and then press Enter:

Mkdir c:\porttest

3. In the Windows PowerShell window, type the following commands and then press Enter:

Xcopy /s c:\inetpub\wwwroot c:\porttest

4. In the Windows PowerShell window, type the following commands and then press Enter:

New-Website –Name PortTest –PhysicalPath “C:\porttest” –Port 5678


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L10-69

5. In the Windows PowerShell window, type the following commands and then press Enter:

New-NetFirewallRule –DisplayName PortTest –Protocol TCP –LocalPort 5678

Configure NLB port rules


1. On the Taskbar, click the File Explorer icon.

2. In File Explorer, click drive C, double-click the porttest folder, and then double-click iisstart.png to
open the file in Microsoft Paint.

3. Use the paintbrush to place a line across the IIS logo.

4. Save the changes to iisstart.png, and then close Microsoft Paint.

5. Switch to LON-DC1.
6. In the Internet Explorer Address Bar, type http://LON-SVR2:5678, and then press Enter.

7. Verify that the IIS Start page displays the IIS logo with a line across it.

8. Switch to LON-SVR1.
9. On LON-SVR1, switch to Network Load Balancing Manager.

10. In the Network Load Balancing Manager console, right-click LON-NLB(172.16.0.42), and then
click Cluster Properties.
11. In the LON-NLB (172.16.0.42) Properties dialog box, on the Port Rules tab, select the All port rule,
and then click Remove.

12. On the Port Rules tab, click Add.


13. In the Add/Edit Port Rule dialog box, type the following information, and then click OK:

o Port range: 80 to 80

o Protocols: Both

o Filtering mode: Multiple host

o Affinity: None

14. On the Port Rules tab, click Add.


15. In the Add/Edit Port Rule dialog box, type the following information, and then click OK:

o Port range: 5678 to 5678

o Protocols: Both
o Filtering mode: Single host

16. Click OK to close the LON-NLB(172.16.0.42) Properties dialog box.

17. In the Network Load Balancing Manager console, right-click LON-SVR1 (Ethernet), and then click
Host Properties.

18. On the Port Rules tab, click the port rule that has 5678 as the Start and End value, and then click
Edit.
19. In the Handling priority list, click 10.

20. Click OK twice to close both the Add/Edit Port Rule dialog box and the LON-SVR1 (Ethernet)
Properties dialog box.
MCT USE ONLY. STUDENT USE PROHIBITED
L10-70 Implementing Network Load Balancing

 Task 2: Validate port rules


1. Switch to LON-DC1.

2. In the Internet Explorer Address Bar, type http://lon-nlb, and then press Enter.

3. Click the Refresh icon 20 times.

4. Verify that you see web pages both with and without the circle you added.

5. In the Internet Explorer Address Bar, type the address http://LON-NLB:5678, and then press Enter.

6. Click the Refresh icon 20 times.

7. Verify that now only the web page with the distinctive line displays.

Note: It is possible that you will need to refresh your browser more than 20 times to see
the different logos on http://lon-nlb.

 Task 3: Manage host availability in the NLB cluster


1. Switch to LON-SVR1.

2. In the Network Load Balancing Manager console, right-click LON-SVR1 (Ethernet), click Control
Host, and then click Suspend.

3. Click the LON-NLB (172.16.0.42) node. Verify that the node LON-SVR1 displays as Suspended, and
that the node LON-SVR2 displays as Converged.
4. Right-click LON-SVR1(Ethernet), click Control Host, and then click Resume.

5. Right-click LON-SVR1(Ethernet), click Control Host, and then click Start.

6. Click the LON-NLB (172.16.0.42) node. Verify that both the nodes LON-SVR1 and LON-SVR2 now
display as Converged.

Note: You might have to refresh the view.

Results: After completing this exercise, you should have successfully configured and managed an NLB
cluster.

Exercise 3: Validating high availability for the NLB cluster


 Task 1: Validate website availability when the host is unavailable
1. On LON-SVR1, in the Windows PowerShell window, type the following command, and then press
Enter:

restart-computer

2. Switch to LON-DC1.
3. In the Internet Explorer Address Bar, type http://LON-NLB, and then press Enter.

4. Refresh the website 20 times.

5. Verify that the website is available while LON-SVR1 reboots, and verify that it does not display the IIS
logo with the circle until LON-SVR1 restarts.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L10-71

 Task 2: Configure and validate Drainstop


1. Sign in to LON-SVR1 with the username Adatum\Administrator and the password Pa55w.rd.

2. Click Start, and then click the Server Manager tile.

3. In Server Manager, click Tools, and then click Network Load Balancing Manager.

4. Click OK to dismiss the Warning message box, if it appears.

5. In the Network Load Balancing Manager console, right-click LON-SVR2(Ethernet), click Control
Host, and then click Drainstop.

6. Switch to LON-DC1.

7. In the Internet Explorer Address Bar, type http://lon-nlb, and then press Enter.

8. Refresh the site 20 times, and then verify that only the Welcome page with the circled IIS logo
displays.

 Task 3: Prepare for the next module


When you finish the lab, revert the virtual machines to their initial state.
1. On the host computer, start Hyper-V Manager.

2. In the Virtual Machines list, right-click 20740B-LON-DC1, and then click Revert.

3. In the Revert Virtual Machine dialog box, click Revert.


4. Repeat steps two and three for 20740B-LON-SVR1 and 20740B-LON-SVR2.

Results: After completing this exercise, you should have successfully validated high availability for the NLB
cluster.
MCT USE ONLY. STUDENT USE PROHIBITED
MCT USE ONLY. STUDENT USE PROHIBITED
L11-73

Module 11: Creating and managing deployment images


Lab: Using MDT to deploy
Windows Server 2016
Exercise 1: Configuring MDT
 Task 1: Configure the deployment share
1. On LON-SVR1, click the Start button, in the menu, scroll down the list of apps, expand Microsoft
Deployment Toolkit, and then click the Deployment Workbench item.

2. In the Deployment Workbench console, click the Deployment Shares node.

3. Right-click the Deployment Shares node, and then click New Deployment Share.

4. In the New Deployment Share Wizard, on the Path page, in the Deployment share path field,
ensure that C:\DeploymentShare is listed in the Deployment share path text box. If it is not, enter
it into the text box, and then click Next.

5. On the Share page, notice the name of the deployment share (it is a hidden share), and then click
Next.

6. On the Descriptive Name page, note that this name, and not the path, will appear in the
Deployment Workbench, and then click Next.
7. Review the Options page, ensure that the Ask for a product key and Ask to set the local
Administrator password check boxes are cleared, and then click Next.

8. On the Summary page, click Next.


9. On the Confirmation page, click Finish.

Results: After completing this exercise, you should have configured MDT 2013 Update 2 and the MDT
Deployment Share.

Exercise 2: Creating and deploying an image


 Task 1: Add a reference image (Windows Server 2016)
1. On LON-SVR1, in the 20740B-LON-SVR1 on localhost Virtual Machine Connection window, click
Media, point to DVD Drive, and then click Insert Disk.

2. In the Open dialog box, browse to D:\Program files\Microsoft Learning\20740\Drives.

3. Click the WinServer2016_1607.ISO file, and then click Open.

4. In the LON-SVR1 taskbar, click File Explorer.

5. In File Explorer, in the console tree, make a note of the drive letter the mounted DVD is using.

6. Return to the Deployment Workbench, and expand Deployment Shares, and then expand MDT
Deployment Share (C:\DeploymentShare).

7. Under the MDT Deployment Share (C:\DeploymentShare) node, right-click the Operating
Systems folder, and then click Import Operating System.
MCT USE ONLY. STUDENT USE PROHIBITED
L11-74 Creating and managing deployment images

8. In the Import Operating System Wizard, on the OS Type page, select the Full set of source files
option, and then click Next.

9. On the Source page, in the Source directory text box, type the drive letter of the DVD you noted in
step 5 above, for example, E:\, and then click Next.

10. On the Destination page, in the Destination directory name text box, type
WindowsServer2016x64, and then click Next.

11. On the Summary page, click Next.

12. The operating system import will take about 5 minutes. On the Confirmation page, click Finish.

 Task 2: Add an application to the image


1. Return to the Deployment Workbench console.

2. Right-click Applications, and then select New Application.

3. In the New Application Wizard, on the Application Type page, ensure the Application with
source files option is selected, and then click Next.

4. On the Details page, in the Publisher text box, type Microsoft and in the Application Name text
box, type ExcelViewer, and then click Next.
5. On the Source page, in the Source directory text box, type D:\Labfiles\Mod11, and then click
Next.

6. On the Destination page, in the Specify the name of the directory that should be created text
box, type ExcelViewer, and then click Next.

7. On the Command Details page, in the Command line text box, type excelviewer.exe /quiet
/norestart, and then click Next.
8. On the Summary page, click Next.

9. On the Confirmation page, click Finish.

 Task 3: Create the deployment task sequence


1. Click Task Sequences.
2. Right-click Task Sequences, and then select New Task Sequence.

3. The New Task Sequence Wizard opens to the General Settings page. In the General Settings
page, in the Task sequence ID text box, type 11-01, and in the Task sequence name text box, type
Lab 11-01, and in the Task sequence comments, type Windows Server 2016 Deployment to
LON-SVR6 task sequence for Module 11 lab, and then click Next.

4. On the Select Template page, in the drop-down list, select the Standard Server Task Sequence,
and then click Next.

5. On the Select OS page, in the Operating Systems list, click Windows Server 2016
SERVERDATACENTER in WindowsServer 2016x64 install.wim, and then click Next.

6. On the Specify a Product Key page, ensure the Do not specify a product key at this time option is
selected, and then click Next.

7. On the OS Settings page, in the Full Name text box, type Administrator, and in the Organization
text box, type A. Datum Corporation, and then click Next.

8. On the Admin Password page, select the Use the specified local Administrator password option,
and, in the Administrator Password and Please confirm Administrator Password text boxes, type
Pa55w.rd, and then click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L11-75

9. On the Summary page, review the selected options, and then click Next.

10. On the Confirmation page, click Finish.

11. In the details pane of the Task Sequences node in the Deployment Workbench, double-click the
Lab11-01 task sequence.

12. In the Lab 11-01 Properties window, select the Task Sequence tab.
13. In the console tree, expand the State Restore node, and below it, select the Install Applications
node.

14. In the details pane of Install Applications, select the Install a single application option, and then
click Browse.

15. In the Select an item window, select the Microsoft ExcelViewer item, and then click OK.

16. To close the Lab 11-01 Properties window, click OK.

17. In the console tree of the Deployment Workbench, select and then right-click the MDT Deployment
Share (C:\DeploymentShare) node, and then select Update Deployment Share.

18. The Update Deployment Share Wizard will start. On the Options page, click Next.

19. On the Summary page, click Next.

20. The boot image will be made, and the deployment will be completed. This could take several
minutes.

21. On the Confirmation page, click Finish.

22. Right click the MDT Deployment Share (C:\DeploymentShare) node, select Properties, and then
select the Monitoring tab.

23. Check the box that says Enable Monitoring for this Deployment Share, and then click OK.

 Task 4: Deploy the image to LON-SVR6


1. In Hyper-V Manager on the HOST computer, double-click 20740B-LON-SVR6.

2. In the 20740B-LON-SVR6 on HOST-Virtual Machine Connection, select Media, and, in the context
menu, select DVD Drive, and then select Insert Disk.

3. In the Open window, expand This PC, navigate to D:\Program Files\Microsoft Learning
\20740\Drives, select LiteTouchPE_x64.iso, and then click Open.

4. Start the 20740B-LON-SVR6 virtual machine.

5. The Microsoft Deployment Toolkit splash screen will appear as it loads the deployment task.

6. The Microsoft Deployment Toolkit wizard will start. On the Welcome page, select the Run the
Deployment Wizard to install a new Operating system item.

7. On the User Credentials page, in the User Name text box, type Administrator, in the Password
text box, type Pa55w.rd, and in the Domain text box, type Adatum.com, and then click OK.

8. On the Task Sequence page, select the Lab 11-01 task sequence item, and then click Next.

9. On the Computer Details page, in the Computer name text box, type LON-SVR6, and then click the
Join a domain option.

10. In the Domain to join text box, type Adatum.com, and then click Next.

11. On the Locale and Time page, click Next.

12. On the BitLocker page, ensure the Do not enable BitLocker for this computer option is selected,
and then click Next.
MCT USE ONLY. STUDENT USE PROHIBITED
L11-76 Creating and managing deployment images

13. On the Ready page, click Begin.

14. An Installation Progress window appears that allows you to monitor the progress of the
deployment.

15. Switch to LON-SVR1. In the Deployment Workbench, expand the MDT Deployment Share
(C:\DeploymentShare) node, and then select the Monitoring node. Right-click it, and then select
Refresh. You will see updating information for the Lab 11-01 task sequence in the details pane.

16. After approximately 5–10 minutes, LON-SVR6 will reboot and may stop at Product Key page. If it
does, click the Do this later hyperlink.

17. After a few moments, LON-SVR6 will restart and finalize the settings.

18. The Windows Server 2016 desktop will appear. Wait until the Installation Progress window appears,
and you should see the installation take place within this window.
19. You will see the Installing Microsoft Excel Viewer progress bar appear under the Running Action:
Install Applications progress bar. The Installation Progress window will then close after a few
minutes.

20. A Deployment Summary page appears, stating Operating system deployment completed
successfully. Click Finish.

21. In the Server Manager console tree, select Local server. In the details pane of local server, examine
the Computer Name and Domain status. If the Domain status shows as Unknown, click the Refresh
icon. It should be named LON-SVR6 and be in the Adatum.com domain.

22. Click the Start menu icon and then click All Apps.

23. In the returned list, observe the Microsoft Office Excel Viewer app is listed.

24. Close all open windows and sign out of all virtual machines.

 Task 5: Prepare for the next module


After you finish the lab, revert the virtual machines to their initial state. To do this, complete the following
steps:

1. On the host computer, start Hyper V Manager.

2. In the Virtual Machines list, right-click 20740B-LON-DC1, and then click Revert.

3. In the Revert Virtual Machine dialog box, click Revert.

4. Repeat steps 2 and 3 for 20740B-LON-SVR1 and 20740B-LON-SVR6.

Results: After completing this exercise, you should have used MDT 2013 Update 2 to deploy Windows
Server 2016 to LON-SVR6, and then you should have tested the deployment of an application.
MCT USE ONLY. STUDENT USE PROHIBITED
L12-77

Module 12: Managing, monitoring, and maintaining


virtual machine installations
Lab A: Implementing WSUS and
deploying updates
Exercise 1: Implementing WSUS
 Task 1: Install the WSUS server role
1. Sign in to LON-SVR4 as Adatum\Administrator with the password Pa55w.rd.

2. On LON-SVR4, if necessary, open Server Manager, click Manage, and then click Add Roles and
Features.

3. In the Add Roles and Features Wizard, click Next.


4. On the Select installation type page, ensure that Role-based or feature-based installation is
selected, and then click Next.

5. On the Select destination server page, click Next.


6. On the Select server roles page, select the Windows Server Update Services check box.

7. In the pop-up window, click Add Features.

8. On the Select server roles page, click Next.

9. On the Select features page, click Next.

10. On the Windows Server Update Services page, click Next.

11. On the Select role services page, confirm that both WID Connectivity and WSUS Services are
selected, and then click Next.

12. On the Content location selection page, in the text box, type C:\WSUSUpdates, and then click
Next.

13. On the Web Server Role (IIS) page, click Next.

14. On the Select role services page, click Next.

15. On the Confirm installation selections page, click Install.

16. When the installation completes, click Close.

17. In Server Manager, click Tools, and then click Windows Server Update Services.

18. In the Complete WSUS Installation dialog box, click Run, and wait for the task to complete. Click
Close.

19. Do not close the Windows Server Update Services Configuration Wizard:LON-SVR4 window.

 Task 2: Configure WSUS to synchronize with an upstream WSUS server


1. In the Windows Server Update Services Configuration Wizard:LON-SVR4 window, click Next
twice.

2. On the Choose Upstream Server page, click Synchronize from another Windows Server Update
Services server, and in the Server name text box, type LON-SVR2.Adatum.com, and then click
Next.

3. On the Specify Proxy Server page, click Next.


MCT USE ONLY. STUDENT USE PROHIBITED
L12-78 Managing, monitoring, and maintaining virtual machine installations

4. On the Connect to Upstream Server page, click Start Connecting. Wait for the upstream server
settings to be applied, and then click Next.

5. On the Choose Languages page, click Next.

6. On the Set Sync Schedule page, click Next.

7. On the Finished page, select the Begin initial synchronization check box, and then click Finish.
8. In the Update Services console, in the navigation pane, double-click LON-SVR4, and then click
Options.

9. In the Options pane, click Computers.

10. In the Computers dialog box, select Use Group Policy or registry settings on computers. Click OK.

Note: You might need to wait until synchronization is complete before you can click OK.

Results: After completing this exercise, you should have implemented the Windows Server Update
Services (WSUS) server role.

Exercise 2: Configuring update settings


 Task 1: Configure WSUS groups
1. On LON-SVR4, in the Update Services console, in the navigation pane, double-click Computers.

2. Click All Computers, and then in the Actions pane, click Add Computer Group.

3. In the Add Computer Group dialog box, in the Name text box, type Research, and then click Add.

 Task 2: Configure Group Policy to deploy WSUS settings


1. Switch to LON-DC1.

2. In Server Manager, click Tools, and then click Group Policy Management.

3. In the Group Policy Management console, double-click Forest: Adatum.com, double-click


Domains, and then double-click Adatum.com.

4. Right-click the Research organizational unit (OU), and then click Create a GPO in this domain, and
Link it here.
5. In the New GPO dialog box, in the Name text box, type WSUS Research, and then click OK.

6. Double-click the Research OU, right-click WSUS Research, and then click Edit.

Note: If the Group Policy Management Console dialog box appears, click OK to
continue.

7. In the Group Policy Management Editor, under Computer Configuration, double-click Policies,
double-click Administrative Templates, double-click Windows Components, and then click
Windows Update.

8. In the Settings pane, double-click Configure Automatic Updates, and then click the Enabled
option.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L12-79

9. In the Configure automatic updating field, click and select 4 – Auto download and schedule the
install, and then click OK.

10. In the Settings pane, double-click Specify intranet Microsoft update service location, and then
click the Enabled option.

11. In the Set the intranet update service for detecting updates and the Set the intranet statistics
server text boxes, type http://LON-SVR4.Adatum.com:8530, and then click OK.

12. In the Settings pane, double-click Enable client-side targeting.

13. In the Enable client-side targeting dialog box, click the Enabled option, and in the Target group
name for this computer text box, type Research, and then click OK.

14. Close the Group Policy Management Editor and the Group Policy Management console.

15. In Server Manager, click Tools, and then click Active Directory Users and Computers.

16. In Active Directory Users and Computers, double-click Adatum.com, click Computers, right-click
LON-CL1, and then click Move.

17. In the Move dialog box, click the Research OU, and then click OK.
18. Close Active Directory Users and Computers.

 Task 3: Verify the application of Group Policy settings


1. Switch to LON-CL1.

2. On LON-CL1, in Cortana’s search box, type Updates, and then click Windows Update settings.
3. Click Advanced options, and then clear the Defer feature updates check box. Click the back button
and then close the Update settings window.

4. Click the Start button, click Power, and then click Restart.

5. After LON-CL1 restarts, sign in as Adatum\Administrator with the password Pa55w.rd.

6. In Cortana’s search box, type cmd, right-click the Command Prompt tile, and then click Run as
administrator.
7. At the command prompt, type the following command, and then press Enter:

Gpresult /r

8. In the output of the command, confirm that, under Computer Settings, WSUS Research is listed
under Applied Group Policy Objects.

 Task 4: Initialize Windows Update


1. On LON-CL1, at the command prompt, type the following command, and then press Enter:

Wuauclt.exe /detectnow /reportnow

2. Switch to LON-SVR4.

3. In the Update Services console, expand Computers, expand All Computers, and then click
Research.

4. In the Status drop-down list, click Any, and then click Refresh.

5. Verify that LON-CL1 appears in the Research group. If it does not, then repeat steps 1 through 3,
and then click Refresh. It might take several minutes for LON-CL1 to display.
MCT USE ONLY. STUDENT USE PROHIBITED
L12-80 Managing, monitoring, and maintaining virtual machine installations

6. Verify that updates are reported as needed. If not, repeat steps 1-3. It might take 10 to 15 minutes for
updates to register. Click Refresh every few minutes as you wait.

Results: After completing this exercise, you should have configured update settings for client computers.

Exercise 3: Approving and deploying an update by using WSUS


 Task 1: Approve WSUS updates for the Research computer group
1. On LON-SVR4, in the Update Services console, under Updates, click All Updates.

2. Scroll to the bottom of the list of updates, right-click Cumulative Update for Windows 10 Version
1607 for x64-based Systems (KB3201845), and then click Approve.

3. In the Approve Updates window, in the Research drop-down list box, select Approved for Install.

4. Click OK, and then click Close.

 Task 2: Deploy updates to LON-CL1


1. On LON-CL1, at the command prompt, type the following command, and then press Enter:

Wuauclt.exe /detectnow

2. In Cortana’s search box, type Windows Update.

3. In the Best match list, click Check for updates.

4. Click Check for updates.

5. The update begins to download.

Note: If the Update status reports that then device is up to date, wait 5 minutes and check
for updates again. The update will not be available to LON-CL1 until LON-SVR4 has downloaded
the update from LON-SVR2.

6. When the update has been downloaded, click Install Now.

Note: The update installation can take 10-15 minutes.

7. Close the Windows Update window when the installation is complete, and restart the computer.

8. After LON-CL1 restarts, sign in as Adatum\Administrator with the password Pa55w.rd.

 Task 3: Verify update deployment to LON-CL1


1. On LON-CL1, in Cortana’s search box, type Event Viewer, and then click View event logs.

2. In Event Viewer, expand Applications and Services Logs, expand Microsoft, expand Windows,
expand WindowsUpdateClient, and then click Operational to view events.

3. Confirm that events are logged in relation to the update.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L12-81

 Task 4: Prepare for the next lab


When you finish the lab, revert all virtual machines back to their initial state. To do this, perform the
following steps:

1. On the host computer, start Hyper-V Manager.

2. In the Virtual Machines list, right-click 20740B-LON-DC1, and then click Revert.

3. In the Revert Virtual Machines dialog box, click Revert.


4. Repeat steps 2 and 3 for 20740B-LON-SVR2, 20740B-LON-SVR4, and 20740B-LON-CL1.

Results: After completing this exercise, you should have approved and deployed an update by using
WSUS.
MCT USE ONLY. STUDENT USE PROHIBITED
L12-82 Managing, monitoring, and maintaining virtual machine installations

Lab B: Monitoring and troubleshooting


Windows Server 2016
Exercise 1: Establishing a performance baseline
 Task 1: Create and start a data collector set
1. Switch to the LON-SVR1 computer.

2. Click the Search button, type Perfmon in the Search Windows text box, and then in the Best match
list, click Performance Monitor.

3. In Performance Monitor, in the navigation pane, expand Data Collector Sets, and then click User
Defined.

4. Right-click User Defined, point to New, and then click Data Collector Set.
5. In the Create new Data Collector Set wizard, in the Name box, type LON-SVR1 Performance.

6. Click Create manually (Advanced), and then click Next.

7. On the What type of data do you want to include? page, select the Performance counter check
box, and then click Next.

8. On the Which performance counters would you like to log? page, click Add.

9. In the Available counters list, expand Processor, click %Processor Time, and then click Add >>.

10. In the Available counters list, expand Memory, click Pages/sec, and then click Add >>.

11. In the Available counters list, expand PhysicalDisk, click %Disk Time, and then click Add >>.

12. Click Avg. Disk Queue Length, and then click Add >>.

13. In the Available counters list, expand System, click Processor Queue Length, and then click
Add >>.

14. In the Available counters list, expand Network Interface, click Bytes Total/sec, click Add >>, and
then click OK.

15. On the Which performance counters would you like to log? page, in the Sample interval text
box, type 1, and then click Next.

16. On the Where would you like the data to be saved? page, click Next.

17. On the Create the data collector set? page, click Save and close, and then click Finish.

18. In Performance Monitor, in the Results pane, right-click LON-SVR1 Performance, and then click
Start.

 Task 2: Create a typical workload on the server


1. Click Start, and then click Windows PowerShell.

2. At the command prompt, type the following command, and then press Enter:

Fsutil file createnew bigfile 104857600

3. At the command prompt, type the following command, and then press Enter:

Copy bigfile \\LON-dc1\c$


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L12-83

4. At the command prompt, type the following command, and then press Enter:

Copy \\LON-dc1\c$\bigfile bigfile2

5. At the command prompt, type the following command, and then press Enter:

Del bigfile*.*

6. At the command prompt, type the following command, and then press Enter:

Del \\LON-dc1\c$\bigfile*.*

7. Do not close the Windows PowerShell window.

 Task 3: Analyze the collected data


1. Switch to Performance Monitor.

2. In the navigation pane, right-click LON-SVR1 Performance, and then click Stop.

3. In Performance Monitor, in the navigation pane, expand Reports, expand User Defined, expand
LON-SVR1 Performance, and then click LON-SVR1_DateTime-000001.
4. On the toolbar, on the Change graph type icon, click the drop-down arrow, click Report, and then
review the report data.

5. Record the values that the report lists for later analysis. Recorded values include:

o Memory, Pages/sec

o Network Interface, Bytes Total/sec

o PhysicalDisk, %Disk Time

o PhysicalDisk, Avg. Disk Queue Length

o Processor, %Processor Time

o System, Processor Queue Length

Results: After this exercise, you should have established a baseline for performance-comparison purposes.

Exercise 2: Identifying the source of a performance problem


 Task 1: Capture performance data by using a data collector set
1. Switch to Performance Monitor.

2. In Performance Monitor, go to Data Collector Sets\User Defined, and then in the results pane, start
the LON-SVR1 Performance data collector set.

 Task 2: Create additional workload on the server


1. On LON-SVR1, click Start, and then click Windows PowerShell ISE.

2. In Windows PowerShell ISE, click the Open button, and then open the following script:

D:\Labfiles\Mod12\StressTest.ps1
MCT USE ONLY. STUDENT USE PROHIBITED
L12-84 Managing, monitoring, and maintaining virtual machine installations

3. In Windows PowerShell ISE, click the Run Script (F5) button.

4. Wait until the script has finished running, and then close Windows PowerShell ISE.

 Task 3: Remove the workload, and then review the performance data
1. Switch to Performance Monitor.

2. In the navigation pane, right-click LON-SVR1 Performance, and then click Stop.

3. In Performance Monitor, in the navigation pane, expand Reports, expand User Defined, expand
LON-SVR1 Performance, and then click LON-SVR1_DateTime-000002.

4. On the toolbar, on the Change graph type icon, click the drop-down arrow, click Report, and then
review the report data.
Record the following values:

o Memory, Pages/sec

o Network Interface, Bytes Total/sec

o PhysicalDisk, %Disk Time

o PhysicalDisk, Avg. Disk Queue Length

o Processor, %Processor Time


o System, Processor Queue Length

Question: Compared with your previous report, which values have changed?

Answer: Memory and disk activity are lower, but processor activity has increased significantly.
Question: What would you recommend?

Answer: You should continue to monitor the server to ensure that the processor workload does not
reach capacity.

Results: After this exercise, you should have used performance tools to identify a potential performance
bottleneck.

Exercise 3: Viewing and configuring centralized event logs


 Task 1: Configure subscription prerequisites
1. On LON-DC1, click the Search button, in the Search Windows text box, type Cmd, and then press
Enter.

2. At the command prompt, type the following command, and then press Enter:

winrm quickconfig

3. If prompted, type Y, and then press Enter.

4. In Server Manager, click Tools, and then click Active Directory Users and Computers.

5. In the Active Directory Users and Computers console, in the navigation pane, expand
Adatum.com, and then click Builtin.

6. In the results pane, double-click Administrators.


MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L12-85

7. In the Administrators Properties dialog box, click the Members tab.

8. Click Add, and then in the Select Users, Contacts, Computers, Service Accounts, or Groups dialog
box, click Object Types.

9. In the Object Types dialog box, select the Computers check box, and then click OK.

10. In the Select Users, Contacts, Computers, Service Accounts, or Groups dialog box, in the Enter
the object names to select box, type LON-SVR1, and then click OK.

11. In the Administrators Properties dialog box, click OK.

12. Switch to LON-SVR1.

13. Click the Search button, in the Search Windows text box, type Cmd, and then press Enter.

14. At the command prompt, type the following command, and then press Enter:

Wecutil qc

15. When prompted, type Y, and then press Enter.

 Task 2: Create a subscription


1. On LON-SVR1, click the Search button, type Eventvwr, and then press Enter.

2. In Event Viewer, in the navigation pane, click Subscriptions.

3. Right-click Subscriptions, and then click Create Subscription.

4. In the Subscription Properties dialog box, in the Subscription name text box, type LON-DC1
Events.

5. Click Collector initiated, and then click Select Computers.

6. In the Computers dialog box, click Add Domain Computers.

7. In the Select Computer dialog box, in the Enter the object name to select text box, type LON-DC1,
and then click OK.
8. In the Computers dialog box, click OK.

9. In the Subscription Properties – LON-DC1 Events dialog box, click Select Events.

10. In the Query Filter dialog box, in the Logged drop-down list, click Last 7 days.

11. Select the Critical, Warning, Information, Verbose, and Error check boxes.

12. In the Event logs drop-down list, expand Applications and Services Logs, expand Microsoft,
expand Windows, expand Diagnosis-PLA, and then select the Operational check box.

13. Switch to the Query Filter dialog box, and then click OK.

14. In the Subscription Properties – LON-DC1 Events dialog box, click OK.

 Task 3: Configure a performance counter alert


1. Switch to the LON-DC1 computer.

2. Open Performance Monitor.

3. In Performance Monitor, in the navigation pane, expand Data Collector Sets, and then click User
Defined.

4. Right-click User Defined, point to New, and then click Data Collector Set.

5. In the Create new Data Collector Set wizard, in the Name text box, type LON-DC1 Alert.
MCT USE ONLY. STUDENT USE PROHIBITED
L12-86 Managing, monitoring, and maintaining virtual machine installations

6. Click Create manually (Advanced), and then click Next.

7. On the What type of data do you want to include? page, click Performance Counter Alert, and
then click Next.

8. On the Which performance counters would you like to monitor? page, click Add.

9. In the Available counters list, expand Processor, click %Processor Time, click Add >>, and then
click OK.

10. On the Which performance counters would you like to monitor? page, in the Alert when list,
click Above.
11. In the Limit text box, type 10, and then click Next.

12. On the Create the data collector set? page, click Finish.

13. In the navigation pane, expand the User Defined node, and then click LON-DC1 Alert.

14. In the results pane, right-click DataCollector01, and then click Properties.

15. In the DataCollector01 Properties dialog box, in the Sample interval text box, type 1, and then
click the Alert Action tab.
16. Select the Log an entry in the application event log check box, and then click OK.

17. In the navigation pane, right-click LON-DC1 Alert, and then click Start.

 Task 4: Introduce additional workload on the server


1. On LON-DC1, click Start, and then click Windows PowerShell ISE.
2. In Windows PowerShell ISE, click the Open button, and then open the following script:

E:\Labfiles\Mod12\StressTest.ps1

3. In Windows PowerShell ISE, click the Run Script (F5) button.

4. Wait until the script has finished running.


5. Close Windows PowerShell ISE.

 Task 5: Verify the results


1. Switch to LON-SVR1.

2. In Event Viewer, in the navigation pane, expand Windows Logs.

3. Click Forwarded Events.

Question: Are there any performance-related alerts?

Answer: Answers might vary, but there should be some events that relate to the workload imposed
on LON-DC1. Events will have an ID of 2031. If you do not receive any events, proceed with the rest
of the lab.
MCT USE ONLY. STUDENT USE PROHIBITED
Installation, Storage, and Compute with Windows Server 2016 L12-87

 Task 6: Prepare for course completion


When you are finished with the lab, revert all virtual machines to their initial state. To do this, perform the
following steps:

1. On the host computer, start Hyper-V Manager.

2. In the Virtual Machines list, right-click 20740B-LON-DC1, and then click Revert.

3. In the Revert Virtual Machines dialog box, click Revert.


4. Repeat steps 2 and 3 for 20740B-LON-SVR1.

Results: At the end of this exercise, you should have successfully centralized event logs and examined
these logs for performance-related events.
MCT USE ONLY. STUDENT USE PROHIBITED

You might also like