Check for existence of IIS7 AppPool / Website

FB7 - 7.0.0.7195

OS Name:                   Microsoft Windows Server 2008 R2 Standard
OS Version:                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.   Instead I am forced to delete and re-create apppools and websites.

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





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.