Exercise 4: Managing Server Roles & Features
Overview
In this exercise, you will use 2 Virtual Machines from the lab environment, CLUVM1 and CLUVM2, on which you install specific Server Roles and Features, that will be used in other lab exercises in the other modules in this course. On CLUVM1, you go through a Server Role installation using the GUI, where on CLUVM2, you will use PowerShell for the component installation.
Time Estimate
20 minutes
Task 1: Confiure Roles and Features using the Add Roles and Features Wizard
In this task, you will configure new roles and features using the wizard on CLUVM1.
1. Open your browser and navigate to http://portal.azure.com
2. Enter the Microsoft account associated with your Microsoft Azure subscription.
3. Navigate to ‘Virtual Machines’ in the left hand pane and locate the virtual machine (vm) called CLUVM1.
4. Ensure that the vm is running, if not click ‘Start’.
5. When the virtual machine is in a running state, click Connect.
6. Open the file in the pop-up window in your browser and click Open to open the RDP connection file and connect.
7. Enter the credentials ‘demouser‘ and ‘Demo@pass123 to connect.
8. Wait for Server Manager to load completely. From the menu in the upper right corner, click Manage. Followed by selecting Add Roles & Features.
9. This opens the Add Roles & Features Installation Wizard.
10.
Click NEXT on the “Before You Begin” step.
11.
In the Installation
Type step, verify Role-based or Feature-based installation is selected.
12.
Press Next to continue.
13.
Verify the local server CLUVM1.opsaaddemo.local is selected in the Server Selection step; press Next to continue.
14.
This brings up the list of Server Roles that can be installed on this Windows Server 2016 VM. From the list of Server Roles, select File & Storage Services, and click on the small arrow to open the list of subcomponents. Here, select File Server and iSCSI Target
Server and click on Add Features in the appearing popup window, which automatically selected the Print & Document Services management feature from the Remote Server Administration Tools.
15.
Click Next to continue to the Features step of the wizard. From the list of Features, select Failover Clustering.
16.
From the appearing popup window, saying “Add features that are required for Failover Clustering?” accept the installation of the additional components, by clicking the Add Features button.
17.
Click Next to continue; In the summary step, confirm the installation by pressing the Install button.
18.
Wait for the installation to complete successfully.
19.
Close the Add Server Roles & Features wizard by pressing the Close button.
In this task, you added new roles and features to Windows Server 2016 using the Add Roles and Features Wizard.
Task 2: Configuring Roles and Features using PowerShell
You will now perform a similar installation process on CLUVM2, this time using PowerShell.
1. Open your browser and navigate to http://portal.azure.com
2. Enter the Microsoft account associated with your Microsoft Azure subscription.
3. Navigate to ‘Virtual Machines’ in the left hand pane and locate the virtual machine (vm) called CLUVM2.
4. Ensure that the vm is running, if not click ‘Start’.
5. When the virtual machine is in a running state, click Connect.
6. Open the file in the pop-up window in your browser and click Open to open the RDP connection file and connect.
7. Enter the credentials ‘demouser‘ and ‘Demo@pass123 to connect.
8. From the Server Start Menu, look for Windows
PowerShell, and right-click on the tile. From the context menu, select More, then select run as administrator.
9. The Windows PowerShell gets launched.
10.
From the cmdlet prompt, type the following cmdlet and press Enter/Return:
get-windowsfeature
11.
This pulls up the list of all Windows Server Roles & Features, marking the ones that are already installed with an [X].
12.
To add the File Services and Failover Clustering components like you did on CLUVM1, look in the list of services for these items, and take note of the Name:
File Server FS-FileServer
iSCSI Target Server FS-iSCSITarget-Server
Failover Clustering Failover-Clustering
13.
run the following PowerShell cmdlets to install these server role components and press Enter/Return:
install-windowsfeature FS-FileServer, FS-iSCSITarget-Server, Failover-Clustering -IncludeManagementTools -Restart
14.
This kicks off the installation of these Server Roles & Features.
15.
Wait for the installation to complete successfully.
16.
Close the Windows PowerShell window.
In this task, we used PowerShell to install new roles and features on a Windows Server 2016 server.
Summary
In this exercise, we walked though installing additional Server roles and features using the wizard and using a scripting approach using PowerShell.