Powershell IIS Application pools list

Save the below script in a .ps1 file (powershell script file).

Import-Module WebAdministration

dir IIS:\Sites # Lists all sites
dir IIS:\AppPools # Lists all app pools and applications

# List all sites, applications and appPools

dir IIS:\Sites | ForEach-Object {

# Web site name

# Site's app pool

# Any web applications on the site + their app pools
Get-WebApplication -Site $_.Name

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.