Wednesday, April 07, 2010


If you're running Windows 7, PowerShell 2.0 and IIS 7.5 you may wonder how to get started with modifying your IIS configuration using PowerShell scripts (the web site is a bit unclear, the web installer gives an unhelpful lie phrased as an error message, and the downloadable install gives up without being much help either.)
No need for extra installs beyond the usuall Windows Features -> Internet Information Services install, just follow these steps:

  • "Run as Administrator" when starting PowerShell.
  • Set-ExecutionPolicy RemoteSigned (or whatever blows your hair back)
  • Install-Module WebAdministration
  • Get-PSDrive
  • cd IIS:

No comments: