« Previous Next »

Thread: How to change value for RapidFailProtection of ApplicationPool.Failure?

Last post 12-15-2008 10:46 AM by marcoshaw. 18 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (19 items) < Previous 1 2

Sort Posts:

  • 12-12-2008, 2:45 PM In reply to

    Re: How to change value for RapidFailProtection of ApplicationPool.Failure?

    sergeia:

    Zdenek, you could use IIS WMI provider locally without any limitations. If you could use Powershell, you could use it through Powershell. IIS namespace in WMI is "WebAdministration". I am not a big expert in v1 WMI support for Powershell, I know it is pretty limited compared to v2 additions. You probably could use get-wmiobject to access your application pool, set the property, then use set-wmiobject to save changes back.

     Reply to an Existing Message : The Official Microsoft IIS Site

    --Sergei

     

    And before you go looking for set-wmiobject in PowerShell v1... Don't: there is no such cmdlet.  You typically do this:

    $wmi=get-wmiobject

    #change your WMI object

    $wmi.put()

    Now, I tried that with this particular setting via WMI, and it didn't work.

    See about "put()" and v2 WMI features here:

    http://www.microsoft.com/technet/scriptcenter/topics/winpsh/wmiin2.mspx

  • 12-13-2008, 7:51 PM In reply to

    Re: How to change value for RapidFailProtection of ApplicationPool.Failure?

    zdenek:
    marcoshaw:
    It is  possible you will be able to get WMI to work to set this property locally, but if you're goal was to use WMI so you can do this remotely, you'll need to find an alternate method.

    My goal is to be able to create websites automatically on the local machine. I would like to keep the installation down to bare bones without adding additional features, that is why i have not yet gone out and download and install the community preview of powershell version 2 because the powershell 1 is installed when SQL 2008 is installed and so i was trying to use it since it was already on the system.
     

    I would say go with appcmd.exe.  Were you able to find it?  There's also a .NET library that you can load to do IIS stuff...

  • 12-15-2008, 10:30 AM In reply to

    • zdenek
    • Top 200 Contributor
    • Joined on 09-08-2008, 6:25 PM
    • miami
    • Posts 31

    Re: How to change value for RapidFailProtection of ApplicationPool.Failure?

    zdenek:
    because the powershell 1 is installed when SQL 2008


    Actually I was wrong about this one. Although SQL Server 2008 requires powershell 1, it comes with windows 2008 according to some docs i found on microsoft website.

    I will still investigate further to see if I can get it all working under PowerShell 1 though and if I find solution I'll post it here.
  • 12-15-2008, 10:46 AM In reply to

    Re: How to change value for RapidFailProtection of ApplicationPool.Failure?

    zdenek:
    zdenek:
    because the powershell 1 is installed when SQL 2008


    Actually I was wrong about this one. Although SQL Server 2008 requires powershell 1, it comes with windows 2008 according to some docs i found on microsoft website.

    I will still investigate further to see if I can get it all working under PowerShell 1 though and if I find solution I'll post it here.
     

    Yes, PowerShell v1 does come with 2008.  It is there as a feature ready to be installed (but isn't installed by default).  One just needs to add it via the Server Manager.

Page 2 of 2 (19 items) < Previous 1 2