Here we include the management tools so that you can manage IIS on this server, as these are generally installed when using the GUI, making this PowerShell command equivalent with the GUI method below. Install-WindowsFeature -name Web-Server -IncludeManagementTools
This method is a lot faster than going through all of the GUI options. If you don’t have the GUI installed or just want to use the PowerShell command line interface (CLI) instead, follow these steps. This can be done both with PowerShell or through the GUI, we’ll cover both methods here. Here we’re going to show you how to install the Internet Information Services (IIS) web server version 10.0 in Microsoft’s Windows Server 2019 operating system.