Installing IIS
Before you can use IIS, you must install it onto your host. Like other roles/features of Windows Server 2016 covered in this book, you install IIS by using the Install-WindowsFeature cmdlet. Once you have installed the web server, you take a look at the host after the installation is complete.
Getting ready
You run this recipe on SRV1, a member server running Windows Server 2016. This server is a server in the Reskit.Org domain.
How to do it...
- Open a PowerShell console and install the
Web-Serverand all sub-features:
Install-WindowsFeature -Name Web-Server ` -IncludeAllSubFeature ` -IncludeManagementTools
- See what web related features are installed on
SRV1:
Get-WindowsFeature -Name Web* | Where-Object Installed- Check the
WebAdministrationmodule and discover how many commands are in the module:
Get-Module -Name WebAdministration -ListAvailable Get-Command -Module webadministration | Measure-Object | Select-Object count...