Installing Commonly Used IIS Features Using Powershell

This article provides a set of powershell commands which will install commonly used IIS features.

Run powershell as an administrator and run the following commands to install a set of commonly used IIS features.

Import-Module servermanager

Install-WindowsFeature Web-App-Dev -IncludeAllSubFeature

Install-WindowsFeature Web-Common-Http -IncludeAllSubFeature

Add-WindowsFeature Web-Stat-Compression
Add-WindowsFeature Web-Dyn-Compression
Add-WindowsFeature Web-Static-Content
Add-WindowsFeature Web-Default-Doc
Add-WindowsFeature Web-Http-Errors
Add-WindowsFeature Web-Http-Redirect
Add-WindowsFeature Web-Asp-Net
Add-WindowsFeature Web-Asp-Net45
Add-WindowsFeature Web-Net-Ext
Add-WindowsFeature Web-Net-Ext45
Add-WindowsFeature Web-ISAPI-Ext
Add-WindowsFeature Web-ISAPI-Filter
Add-WindowsFeature Web-Request-Monitor
Add-WindowsFeature Web-Windows-Auth
Add-WindowsFeature Web-Basic-Auth
Add-WindowsFeature Web-Url-Auth
Add-WindowsFeature Web-Filtering
Add-WindowsFeature Web-Mgmt-Console
Add-WindowsFeature Web-Mgmt-Tools
Add-WindowsFeature Web-Mgmt-Service
Add-WindowsFeature Web-WebSockets
Add-WindowsFeature Web-Performance