## Get IIS Process ID’s and Application Pool ID’s for IIS 7

In this post I gave a batch file that lists the application pools running on IIS 6. Here is an equivelent for IIS 7.

```@Echo off

c:
cd C:\Windows\System32\inetsrv
appcmd list apps
pause

@Echo on```

Please note that you will have to run it as administrator on Vista or Windows 7.