As more IIS 6 administrators migrate to IIS 7.0, they’ll ask the question, Where is the script to list my application pool and name of the site?
IISApp is no more, just type
%windir%system32inetsrvappcmd.exe list wp
Here is sample output.
WP “6488” (applicationPool:Classic .NET AppPool)