Microsoft IIS Web Server
--
Questions
--
Followers
Top Experts
Identify app pool used by IIS site
Hello,
I have a lot of web sites on my IIS server. Â If I know the name of the application pool, what is the best way to quick identify which site is using it?
Thanks
I have a lot of web sites on my IIS server. Â If I know the name of the application pool, what is the best way to quick identify which site is using it?
Thanks
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
ASKER CERTIFIED SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Hi,
sorry I missread that you said you have a lot of sites.
Cheers
sorry I missread that you said you have a lot of sites.
- create a new file calls listapppool.ps1 with the following content:
[Void][Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Administration")
$sm = New-Object Microsoft.Web.Administration.ServerManager
foreach($site in $sm.Sites)
{
$root = $site.Applications | where { $_.Path -eq "/" }
Write-Output ("Site: " + $site.Name + " | Pool: " + $root.ApplicationPoolName)
}
- Open an administrative command line prompt and run powershell.
- Run the script in powershell:
.\listapppool.ps1
it will display all sites and their corresponding Application Pools.Cheers
Thanks, everyone.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
Microsoft IIS Web Server
--
Questions
--
Followers
Top Experts
IIS is Internet Information Services, the web server included with Windows Server operating systems. All current versions are built on a modular architecture; modules can be added or removed individually so that those required for specific functionality are installed. The full installation of IIS includes HTTP, security, content, compression, caching, logging and diagnostics.