IIS - how to count the number of websites using the apppool in asp.net+iis7

Asked By Jhansi Bolneni on 30-Mar-12 07:49 AM
Hi,
   i wanted to know the count  of websites using the apppool in asp.net+iis7 through powershell scripts.Please suggest
Somesh Yadav replied to Jhansi Bolneni on 30-Mar-12 08:44 AM
hello,

You want Applications http://www.iis.net/ConfigReference/system.applicationHost/sites/site/application has C# sample.

Then you need Application Pool http://www.iis.net/ConfigReference/system.applicationHost/applicationPools has C# sample.

Using the MWA and MWM http://learn.iis.net/page.aspx/173/overview-of-mwa-and-mwm-for-iis/ Diagam & Classes.

You can change the code maybe to do the job ?