« Previous Next »

Not Answered 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 1 of 2 (19 items) 1 2 Next >

Sort Posts:

  • 12-08-2008, 5:31 PM

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

    How to change value for RapidFailProtection of ApplicationPool.Failure?

    I tried couple of ways and it always comes back as TRUE:

    PS C:\Users\Administrator> $newapppool.failure.rapidfailprotection
    True
    PS C:\Users\Administrator> $newapppool.failure.rapidfailprotection=0
    PS C:\Users\Administrator> $newapppool.failure.rapidfailprotection
    True
    PS C:\Users\Administrator> $newapppool.failure.rapidfailprotection=$false
    PS C:\Users\Administrator> $newapppool.failure.rapidfailprotection
    True
    PS C:\Users\Administrator> $newapppool.failure.rapidfailprotection="False"
    PS C:\Users\Administrator> $newapppool.failure.rapidfailprotection
    True
    PS C:\Users\Administrator>

    Is there a trick to disabling rapid failure protection?

    According to http://msdn.microsoft.com/en-us/library/ms691247.aspx it should be
    "A read/write boolean value." any thoughts?
  • 12-08-2008, 9:19 PM In reply to

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

    Mind sharing what you have in $newapppool?  How you created it...

    I tried looking through the IIS:\ provider, and couldn't see how the provider could help here, but I could be wrong...

  • 12-09-2008, 10:59 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?

    i got the object form:

    PS C:\Users\Administrator> $newAppPool = Get-WmiObject -namespace "root\webadministration:applicationpool" -class applicationpool -filter "name = '$INPUTDOMAIN'"

    Where $INPUTDOMAIN is name of the application pool in my case as I keep the pool with same name as actual web instance
  • 12-09-2008, 1:34 PM In reply to

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

    I wasn't able to figure it out either...

    I went with this:

    PS>./appcmd set apppool "defaultapppool" /failure.rapidFailProtection:false

  • 12-09-2008, 2:34 PM 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?

    how do you get "appcmd" - i have just basic installation of windows 2008 web edition server with standard windows powershell installation (version 1) and i don't have appcmd on my machine, is it something that's in the preview version 2 of powershell or is it a role for IIS to install or some settings?

    From the role standpoint i have installed following management roles server:

    • Management tools
    • IIS Management Console
    • IIS Management Scripts And Tools
    • Management Service

    I do not have any IIS 6 compatibility stuff installed

  • 12-09-2008, 2:48 PM In reply to

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

    "appcmd.exe" is not part of PowerShell, but a new command-line interface that was shipped with 2008 for doing IIS stuff.

    I have it in c:\windows\system32\inetsrv.

    Check that dir.  I can't remember if I needed to do anything special to get it, but I'll double-check.

  • 12-10-2008, 10:49 PM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 4:47 PM
    • Posts 68

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

    It is simple: you need to call set-item property for your pool:

    >set-itemproperty iis:\apppools\yourPool -name  failure.rapidFailProtection -value false

    IIS provider supports complex property names for embedded properties: in case of child element you use dot, in case of collection you use array notation -- like foo.bar[name="someName"].subelement. It will work for any node from the provider namespace: site, apppool, application, etc.

    --Sergei

     

  • 12-10-2008, 11:47 PM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 4:47 PM
    • Posts 68

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

    Hmm, I think it makes sense to mention, that when you have object stored in variable, and change its property, it will not be updated in the storage. Just like in almost any other environment. Only properties defined as script property or code property may have instant access to the storage objects.

    Therefore you should use command that points to the object in configuration through path, as I did above. To update object in storage you could use "set-item" command taking modifued object from the pipeline or as parameter, but it always will be slower than direct command:

     $apppool | set-item

    set-item iis:\apppools\thispool -value $thatPool

     

    --Sergei

  • 12-11-2008, 4:36 PM 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?

    As I mentioned earlier in the thread IIS:\anything does not work, i get for example

    Set-Item : Cannot find drive. A drive with name 'iis' does not exist.

    I am attempting to set the value via standard wmi interface objects, any thoughts?
  • 12-11-2008, 5:19 PM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 4:47 PM
    • Posts 68

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

    Then you have problem with IIS provider installation. Check that you have default drive IIS: before doing anything. Depending how you installed our components, you may need to add IIS snapin to Powershell.

    Which platform and which bits of IIS provider are you using?

     

    --Sergei

  • 12-11-2008, 5:34 PM 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?

    windows 2008 web edition server

    powershell installation (version 1)

    I have installed following management roles for IIS:

    • Management tools
    • IIS Management Console
    • IIS Management Scripts And Tools
    • Management Service

    I do not have any IIS 6 compatibility stuff installed

  • 12-11-2008, 5:52 PM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 4:47 PM
    • Posts 68

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

    OK, provider is actually released "out of band". Currently it is in Technical Preview phase, you could set it up from this web site. Please find links to installation bits here: http://blogs.iis.net/thomad/archive/2008/07/03/ctp2-of-iis7-powershell-provider-released.aspx. There also are links to some learning materials. You don't need any of above components to work through Powershell provider, only Powershell, any cut of IIS and provider itself.

    If you use Powershell v1.0, WMI will help you only on local machine, it doesn't work remotely with IIS provider. Besides, WMI support in v1 was fairly limited. 

    --Sergei

     

  • 12-12-2008, 9:15 AM In reply to

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

    zdenek:
    As I mentioned earlier in the thread IIS:\anything does not work, i get for example

    Set-Item : Cannot find drive. A drive with name 'iis' does not exist.

    I am attempting to set the value via standard wmi interface objects, any thoughts?
     

    OK, so a few things:

    1. appcmd.exe should be there.  Did you check the directory I mentioned?

    2. As Sergei mentions, to get access to the iis:\ provider, you need to install the PowerShell snap-in.

    3. I wasn't aware, but as Sergei mentions, you can't access the IIS WMI provider remotely.  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.

  • 12-12-2008, 11:16 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?

    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.
  • 12-12-2008, 2:30 PM In reply to

    • sergeia
    • Top 100 Contributor
    • Joined on 04-14-2008, 4:47 PM
    • Posts 68

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

    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.

     

    --Sergei

Page 1 of 2 (19 items) 1 2 Next >
Microsoft Communities