Monday 10 September 2012

Install IIS Role Services (features) using PowerShell

In the almost certainly futile attempt to automate the deployment of this project I'm working on, I'm feeling a little bit despondent today, so excuse my pessimism, I was asked to complete the installation of IIS via a script. 

MS Dynamics CRM 2011 will install all the Role services it needs to run, but it will not install some crucial features like logging.

At any rate, to cut a long story short this is what is needed to install http logging in IIS 7.5
  1. Run PowerShell as Administrator.
  2. Import-module servermanager
  3. Get-WindowsFeature | where {$_.Name -like "Web*"}
  4. Add-WindowsFeature Web-Http-Logging

Any other Role Services (features) can installed in a similar manner.

No comments:

Post a Comment