Shopping Central IIS configuration
The following roles, role services and features must be installed/enabled as a minimum. The Name column is the reference used in PowerShell commands.
In the case of .NET Framework features we refer to 4.X in the Display Name, as X may be different depending on the server OS. The PowerShell Name always uses 45 instead of the actual version.
Role or Feature |
Display Name |
Name |
Notes |
---|---|---|---|
Web Server |
Web Server (IIS) |
Web-Server |
|
Web Server Common HTTP Features |
Default Document |
Web-Default-Doc |
Included in Web-Server. |
|
Directory Browsing |
Web-Dir-Browsing |
Included in Web-Server. |
|
HTTP Errors |
Web-Http-Errors |
Included in Web-Server. |
|
Static Content |
Web-Static-Content |
Included in Web-Server. |
|
HTTP Redirection |
Web-Http-Redirect |
|
Web Server Health and Diagnostics |
HTTP Logging |
Web-Http-Logging |
Included in Web-Server. |
Web Server Performance |
Static Content Compression |
Web-Stat-Compression |
Included in Web-Server. |
Web Server Security |
Windows Authentication |
Web-Windows-Auth |
|
Web Server Application Development |
.NET Extensibility 4.X |
Web-Net-Ext45 |
Included in Web-Asp-Net45. |
|
ASP.NET 4.X |
Web-Asp-Net45 |
|
|
ISAPI Extensions |
Web-ISAPI-Ext |
Included in Web-Asp-Net45. |
|
ISAPI Filters |
Web-ISAPI-Filter |
Included in Web-Asp-Net45. |
Web Server Management Tools |
IIS Management Console |
Web-Mgmt-Console |
|
|
IIS 6 WMI Compatibility |
Web-WMI |
|
.NET Framework 4.8 (or later) Features |
.NET Framework 4.X |
Net-Framework-45-Core |
|
|
ASP.NET 4.X |
Net-Framework-45-ASPNET |
|
The following roles, role services and features should be removed/disabled.
Parent |
Display Name |
Name |
---|---|---|
Web Server Common HTTP Features |
WebDAV Publishing |
Web-DAV-Publishing |
Configure IIS using PowerShell
The following PowerShell commands can be used to install relevant IIS roles and features on Windows Server 2012 R2 and later, and record the server configuration in a file.
Do this even if IIS is already installed because it will ensure all the required features and roles are installed.
Import-Module ServerManager
Get-WindowsFeature | Out-file ServerManager-1.txt
Install-WindowsFeature Web-Server,
Web-Default-Doc,
Web-Dir-Browsing,
Web-Http-Errors,
Web-Static-Content,
Web-Http-Redirect,
Web-Http-Logging,
Web-Stat-Compression,
Web-Windows-Auth,
Web-Net-Ext45,
Web-Asp-Net45,
Web-ISAPI-Ext,
Web-ISAPI-Filter,
Web-Mgmt-Console,
Web-WMI,
Net-Framework-45-Core,
Net-Framework-45-ASPNET
Uninstall-WindowsFeature Web-DAV-Publishing
Get-WindowsFeature | Out-file ServerManager-2.txt