If there’s one change I hate about IIS 7 and beyond, it is the lack of the very useful IISAPP script that was present on IIS 6 installations. Run it from a command prompt, and you will see a list of all running worker processes, the process id and the application pool name the process is serving. Very useful if you need to shut down a single site.
As I mentioned, that script was removed in IIS 7 and beyond. I find myself constantly running IISAPP without any luck several time a week, and I’ve decided that this is a habit that I cannot leave behind.
So, to solve the problem I’ve created this small .bat file and copied it to the C:\Windows\System32\inetsrv folder. The content of the iisapp.bat file is just a single line, that does exactly the same as the old IISAPP did – just using the new APPCMD in IIS 7 instead:
appcmd list wp
Now I can call IISAPP and see a list of running applications:
![]()
And now my day got a whole lot better. To wrap it up, I’ll put the path to the inetsrv folder in my PATH environment variable so that I can call IISAPP form anywhere.
« Unit test for verifying references from DataAnnotation validation to the ErrorMessageResourceName value Generate HTML e-mail body in C# using templates »





