-
Book Overview & Buying
-
Table Of Contents
Windows Server 2019 Cookbook - Second Edition
By :
If you've got this far, you have a working Windows Server 2019 operating system. Great! Now what? Without adding roles and features to your server, it just makes for a great paperweight. We're going to take the next steps here together. Let's install a role and a feature into Windows so that we can start making this server work for us.
As long as you have Windows Server 2019 installed and running, you are ready to install roles and features onto that machine.
To install a role and a feature into Windows, perform the following steps:

Figure 1.17 – Server Manager showing the Add roles and features link

Figure 1.18 – Selecting the installation type

Figure 1.19 – Selecting a server
Tip
You can install more than one role or feature at a time. Some roles require additional components to be installed for them to work properly. For example, when I chose to install the IIS role and clicked Next, I was prompted to install some management tools. Simply click on the Add Features button to automatically add the items that it needs to operate correctly.
After your roles and features have finished installing, the server may or may not have to reboot. This depends on whether or not the role installation requires it. Following installation, or following the reboot, if your new role needs any additional configuration or setting up to be completed, you will be notified at the top of the Server Manager screen:
Figure 1.20 – The post-deployment configuration alert
As mentioned in the previous recipes, I'm going to show you how to do the exact same task via PowerShell. In this case, we're going to install IIS and the Telnet Client on the same web01 server, even though I am running this PowerShell from the DC01 server:
Install-WindowsFeature -Name Web-Server, Telnet-Client -ComputerName web01 -IncludeManagementTools
This command installs the IIS role and the Telnet Client onto the web01 server. If you wish to check if these roles are installed on a server, you could also run the following command:
Get-WindowsFeature -Name Web-*, Telnet-Client -ComputerName web01 | Where-Object Installed
As you can see, it's a lot less clicking, and you only need to memorize two very small, simple commands (Get-WindowsFeature and Install-WindowsFeature):
Figure 1.21 – Using Get-WindowsFeature in PowerShell
Adding roles and features to a Windows Server is something that every administrator will have to do sooner or later. These items are necessary to turn on the functions in the server that will perform tasks that need to be performed in your environment. Adding roles is quite straightforward, whether you do it via the Server Manager or via PowerShell. However, it is interesting to see the options that are available to add more than one role or feature at a time. Moreover, the ability to remotely install these items for servers in your network that you are not logged into is incredibly useful.
Change the font size
Change margin width
Change background colour