All Tags > IIS > 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
  • Re: creating new iis site with powershell. strange behaviour

    switch from snapin to assembly .. it seems to me there is some bug or i am doing something wrong.. i'am doing the same for www and ftp site .. for www site log directory changes, for ftp - not below is sample code v130 - is the name for ftp site www.v130.ru - is the name of www site the commands...
    Posted to Forum by ish13 on 10-29-2009, 2:56 PM
  • creating new iis site with powershell. strange behaviour

    hello, i'm writing script in powershell 2 for site creation . found strange behavious in the following code # Start-WebCommitDelay New-WebAppPool $domain New-Website -Name $domain -HostHeader $domain -IPAddress $ipaddr -PhysicalPath $domainroot -ApplicationPool $domain New-WebFtpSite -Name $user...
    Posted to Forum by ish13 on 10-29-2009, 8:05 AM
  • Generating CSR

    Hi All, I need to generate CSR for different servers again and again. So that i can raise a request for SSL certificate. I have to manually login to all servers and create the Request file. Is there any way that i can locally/remotely generate the request ? Using Microsoft.Web.Administration or WMI or...
    Posted to Forum by gauravmajithia on 06-13-2009, 10:04 AM
  • Powershell, ADSI and IIS 6 (on Win2003)

    I am trying to script the change of ScriptMaps variable on some IIS Websites (IIS 6 on Win2003). I have been using ADSI to get the value but I cannot find a way to Set (Put) the value. ([ADSI]"IIS://$computer/$name").Properties["ScriptMaps"] So i tried this: PS > $scriptmaps =...
    Posted to Forum by thompsonson on 05-22-2008, 1:24 PM
Page 1 of 1 (5 items)
Microsoft Communities