# Set applicationPoolDefaults properties

**URL:** <https://forums.powershell.org/t/set-applicationpooldefaults-properties/2219>\
**Category:** PowerShell Help\
**Created:** [January 27, 2014, 2:25pm UTC](https://forums.powershell.org/t/set-applicationpooldefaults-properties/2219 "2014-01-27T14:25:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sirirat-kongdee](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sirirat-kongdee](https://forums.powershell.org/u/sirirat-kongdee)\
**Post date:** [January 27, 2014, 2:25pm UTC](https://forums.powershell.org/t/set-applicationpooldefaults-properties/2219/1 "2014-01-27T14:25:57Z")

</div>

Hello!

I need help setting the properties of applicationPoolDefaults itself. I cannot find this object under IIS:\AppPools and I would like to see if can use command Set-ItemProperty like in the following command.

`
Set-ItemProperty -Path IIS:\AppPools\DefaultAppPool -Name queueLength -Value 10000
`

Is there any other way to do it other than using set-webconfigurationproperty command?

Thank you!

---

<div class="post-metadata">

**Author:** ![vern\_anderson](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/vern_anderson/32/5140_2.png) [@vern\_anderson](https://forums.powershell.org/u/vern_anderson)\
**Post date:** [January 28, 2014, 12:20am UTC](https://forums.powershell.org/t/set-applicationpooldefaults-properties/2219/2 "2014-01-28T00:20:09Z")

</div>

That exactly right! for example:

`Set-ItemProperty .\DefaultAppPool -Name queueLength -Value 2000`

would double the value from 1000 to 2000.

-VERN

---

<div class="post-metadata">

**Author:** ![vern\_anderson](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/vern_anderson/32/5140_2.png) [@vern\_anderson](https://forums.powershell.org/u/vern_anderson)\
**Post date:** [January 28, 2014, 12:23am UTC](https://forums.powershell.org/t/set-applicationpooldefaults-properties/2219/3 "2014-01-28T00:23:53Z")

</div>

I should add my PowerShell prompt was already in the IIS provider when I ran that.

Set-Location iis:  
Set-Location AppPools

PS IIS:\AppPools&gt;

---

<div class="post-metadata">

**Author:** ![sirirat-kongdee](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@sirirat-kongdee](https://forums.powershell.org/u/sirirat-kongdee)\
**Post date:** [January 28, 2014, 2:31am UTC](https://forums.powershell.org/t/set-applicationpooldefaults-properties/2219/4 "2014-01-28T02:31:52Z")

</div>

I’d like to set applicationPoolDefaults not DefaultAppPool. The only way I can find is to use set-webconfigurationproperty.

`
set-webconfigurationproperty /system.applicationHost/applicationPools/applicationPoolDefaults[1]/failure[1] -name rapidFailProtectionMaxCrashes -value 10
`

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [January 28, 2014, 5:03am UTC](https://forums.powershell.org/t/set-applicationpooldefaults-properties/2219/5 "2014-01-28T05:03:10Z")

</div>

Hey Sirirako!

I didn;t understand in your tweet that you wanted the AppPool defaults. You are correct! Nice job finding it!

Get-WebConfiguration -Filter system.applicationhost/applicationpools/applicationPoolDefaults[1]

So, Get-/Set WebConfiguration and WebConfigurationProperty is way you would set those defaults.

Congrats and enjoy!

Cheers

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:52pm UTC](https://forums.powershell.org/t/set-applicationpooldefaults-properties/2219/6 "2024-05-16T20:52:27Z")

</div>

Closed on May 16, 2024, 8:52pm UTC


