All TagsPowerShellIIS Powershell (RSS)
  • Adding redirect settings to a website using PS

    Hi all, I want to set in a website a permanent HTTP redirection to a specific URL. I tried the following: New-ItemProperty -Filter "/system.webServer/httpRedirect" -PSPath "IIS:\Sites\$name" -value @{enabled="true";destination=$target;exactDestination="true";httpResponseStatus...
    Posted to Forum by davidtreves on 11-18-2009, 8:19 PM
  • Set Website App Pool

    Hello, I want to be able to set my websites app pool through powwershell. Right now they're all set to DefaultAppPool. As the picture below shows I want to able to assign the FileCopyService app pool to the FileCopyService website. Any ideas on how to script this in Powershell Modules ? I don't...
    Posted to Forum by t-angrui on 10-14-2009, 6:25 PM
  • Can't use IIS snapin when using powershell from c#

    Trying to execute a powershell script that sets up a website. I have it working in the powershell ISE but can't get it to work when using it from c#. Error I get is: Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error...
    Posted to Forum by tjeerd.mulder on 09-24-2009, 3:50 PM
Page 1 of 1 (3 items)
Microsoft Communities