Installing SCOM 2012 Web Console prerequisites with powershell

I need the Web Server (IIS) role with the follow server role services:  According to http://technet.microsoft.com/en-us/library/hh205990.aspx#BKMK_RBF_WebConsole

  • Static Content
  • Default Document
  • Directory Browsing
  • HTTP Errors
  • HTTP Logging
  • Request Monitor
  • Request Filtering
  • Static Content Compression
  • Web Server (IIS) Support
  • IIS 6 Metabase Compatibility
  • ASP.NET
  • Windows Authentication

I could go to Server Manager and add the individual roles and features, but I am running Server 2008 R2 so lets make it super simple with PowerShell.

1. Launch the PowerShell command prompt

2. Run this command

Import-Module ServerManager

3. Press Enter

4. Run this command

Add-WindowsFeature NET-Framework-Core,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Request-Monitor,Web-Filtering,Web-Stat-Compression,AS-Web-Support,Web-Metabase,Web-Asp-Net,Web-Windows-Auth –restart

5. Press Enter

6. If you already installed .net 4.0 then you will need to run this command from PowerShell to register IIS with .net 4.0

c:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -r

7.  Now I need to enable IIS to work with .net 4.0

c:\windows\system32\inetsrv\appcmd set config /section:isapiCgiRestriction /[path=`’C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll`’].allowed:True

VN:F [1.9.22_1171]
Rating: 6.0/6 (2 votes cast)