I've recently upgraded my development machine from Windows XP to Windows 7. How can I tell which w3wp.exe process belongs to which App Pool on a desktop running Windows 7?
On a server running IIS6, you can run c:\windows\system32\cscript iisapp.vbs
On a Windows 2008 Server running IIS7 you can run appcmd list wp
But what about on my desktop?
If you open IIS Manager, go to the root node in the tree on the left that represents your computer (should be labeled as your computer name).
In the Features View to the right, you'll see a section called IIS. Under that you'll see Worker Processes
. Select that and it should show you all running worker processes and some basic info, including ProcessId.
You can correlate that ProcessId to the matching process in the Processes tab in Task Manager (showing processes from all users, and including the ProcessId column in the results).