AppCMD.com


Command Line reference for IIS by Steve Schofield


  1. Examples on Appcmd (Pipeing, original examples)

    http://blogs.msdn.com/jamesche/archive/2008/01/16/cool-things-you-can-do-with-appcmd-in-iis-7.aspx

  2. Set apppool cpu smpProcessorAffinityMask2

    ERROR ( message:Can not set attribute "smpProcessorAffinityMask2" to value "true
    ".. Reason: Not a valid unsigned integer
    . )

    appcmd set apppool "DefaultAppPool" -cpu.smpProcessorAffinityMask2:11

  3. Set apppool cpu smpProcessorAffinityMask using appcmd

    ERROR ( message:Can not set attribute "smpProcessorAffinityMask" to value "true". Reason: Not a valid unsigned integer
    . )

    appcmd set apppool "DefaultAppPool" -cpu.smpProcessorAffinityMask:99

  4. Set apppool cpu smpAffinitized using appcmd

    appcmd set apppool "DefaultAppPool" -cpu.smpAffinitized:true

  5. Set apppool cpu resetInterval using appcmd

    ERROR ( message:Can not set attribute "resetInterval" to value "".. Reason: Timespan must be of form [-][d.]hh:mm:ss[.ff]
    . )

    C:\>appcmd set apppool "DefaultAppPool" -cpu.resetInterval:00:30:00:00

  6. set apppool cpu action using appcmd

    ERROR ( message:Unknown attribute "action".. Reason: Enum must be one of NoAction, KillW3wp
    . )

    appcmd set apppool "DefaultAppPool" -cpu.action:NoAction

  7. Set apppool cpu limit using appcmd

    ERROR ( message:Can not set attribute "limit" to value "true".. Reason: Not a va
    lid unsigned integer
    . )

    appcmd set apppool "DefaultAppPool" -cpu.limit:90

  8. Set apppool failure rapidFailProtectionMaxCrashes using appcmd

    ?
    ERROR ( message:Can not set attribute "rapidFailProtectionMaxCrashes" to value "
    ".. Reason: Integer value must be between 1 and 2147483647 inclusive
    . )

    appcmd set apppool "DefaultAppPool" -failure.rapidFailProtectionMaxCrashes:13

  9. Set apppool failure rapidFailProtectionInterval using appcmd

    appcmd set apppool "DefaultAppPool" -failure.rapidFailProtectionInterval /? ERROR ( message:Can not set attribute "rapidFailProtectionInterval" to value "". . Reason: Timespan must be of form [-][d.]hh:mm:ss[.ff]
    . )

    appcmd set apppool "DefaultAppPool" -failure.rapidFailProtectionInterval:00:30:00

  10. Set apppool failure rapidFailProtection using appcmd

    appcmd set apppool "DefaultAppPool" -failure.rapidFailProtection:True (or False)


IIS 7.0 Resource Guide