UPDATE 7/28/10 - I added the ServerManagerCmd commands to make it easier to install the IIS role services for front-end and CWA servers.

This question comes up a lot, especially when installing on Windows 2008...What IIS role services do I need to install?

The answer is pretty simple for Windows 2003.  You need to only install the following IIS services:

  • ASP.NET
  • World Wide Web Service

But the answer is a little more complex for Windows 2008.  Unfortunately when installing on Windows 2008, you need to configure IIS to run in IIS 6.0 compatibility mode. If you are installing the front-end role, you need to install all of the following IIS services:

  • Web Server
    • Common HTTP Features
      • Static Content
      • Default Document
      • Directory Browsing
      • HTTP Errors
    • Application Development
      • ASP.NET
      • .NET Extensibility
      • ISAPI Extensions
      • ISAPI Filters
    • Health and Diagnostics
      • HTTP Logging
      • Request Monitor
    • Security
      • Windows Authentication
      • Request Filtering
    • Performance
      • Static Content Compression
  • Management Tools
    • IIS Management Console
    • IIS 6 Management Compatibility
      • IIS 6 Metabase Management Compatibility
      • IIS 6 WMI Compatibility
      • IIS 6 Scripting Tools
      • IIS 6 Management Console

To make installing the role services easier, here is the ServerManagerCmd.exe command for Windows 2008:

ServerManagerCmd -i Web-Static-Content Web-Default-Doc Web-Dir-Browsing Web-Http-Errors Web-Asp-Net Web-Http-Logging Web-Request-Monitor Web-Windows-Auth Web-Filtering Web-Stat-Compression Web-Mgmt-Console Web-Mgmt-Compat

For Windows 2008 R2, open a PowerShell command window as Administrator and run the following commands:

Import-Module ServerManager
Add-WindowsFeature Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Asp-Net,Web-Http-Logging,Web-Request-Monitor,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Mgmt-Console,Web-Mgmt-Compat

If you are installing the Communicator Web Access (CWA) role, you need to install all of the following IIS services:

  • Web Server
    •  Common HTTP Features
      • Static Content
      • Default Document
      • Directory Browsing
      • HTTP Errors
      • HTTP Redirection
    • Application Development
      • ASP.NET
      • .NET Extensibility
      • ISAPI Extensions
      • ISAPI Filters
    • Health and Diagnostics
      • HTTP Logging
      • Logging Tools
      • Request Monitor
      • Tracing
    • Security
      • Basic Authentication
      • Windows Authentication
      • Request Filtering
    • Performance
      • Static Content Compression
  • Management Tools
    • IIS Management Console
    • IIS Management Scripts and Tools
    • IIS Management Compatibility
      • IIS 6 Metabase Compatibility
      • IIS 6 WMI Compatibility

To make installing the role services easier, here is the ServerManagerCmd.exe command for Windows 2008:

ServerManagerCmd -i Web-Static-Content Web-Default-Doc Web-Dir-Browsing Web-Http-Errors Web-Http-Redirect Web-Asp-Net Web-Http-Logging Web-Request-Monitor Web-Http-Tracing Web-Basic-Auth Web-Windows-Auth Web-Filtering Web-Stat-Compression Web-Mgmt-Console Web-Scripting-Tools Web-Metabase Web-WMI

For Windows 2008 R2, open a PowerShell command window as Administrator and run the following commands:

Import-Module ServerManager
Add-WindowsFeature Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Redirect,Web-Asp-Net,Web-Http-Logging,Web-Request-Monitor,Web-Http-Tracing,Web-Basic-Auth,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Mgmt-Console,Web-Scripting-Tools,Web-Metabase,Web-WMI

 

Take a look at the following TechNet articles for more information:

http://technet.microsoft.com/en-us/library/dd637116(office.13).aspx
http://technet.microsoft.com/en-us/library/dd425175(office.13).aspx