# Check for existence of IIS7 AppPool / Website

**URL:** https://www.finalbuilder.com/forums/t/check-for-existence-of-iis7-apppool-website/1963
**Category:** Discussion
**Created:** [March 27, 2012, 10:50am UTC](https://www.finalbuilder.com/forums/t/check-for-existence-of-iis7-apppool-website/1963 "2012-03-27T10:50:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 27, 2012, 10:50am UTC](https://www.finalbuilder.com/forums/t/check-for-existence-of-iis7-apppool-website/1963/1 "2012-03-27T10:50:54Z")

</div>

FB7 - 7.0.0.7195

OS Name: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Microsoft Windows Server 2008 R2 Standard  
OS Version: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6.1.7601 Service Pack 1 Build 7601

Using IIS7, I cannot find a way to determine if an ApplicationPool or a Website already exists. &nbsp; Instead I am forced to delete and re-create apppools and websites.

I need to preserve the binding of the existing website. &nbsp;Do I have to do all this using appcmd?

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [March 28, 2012, 8:46am UTC](https://www.finalbuilder.com/forums/t/check-for-existence-of-iis7-apppool-website/1963/2 "2012-03-28T08:46:19Z")

</div>

Hi Alex   
  
 I guess we need to enhance the actions, for now you could just set Ignore Errors on the action, if the app pool exists it will error and you can then just ignore it.
