Which web site belongs to the w3wp process
Really the better way of saying it is which ‘application pool’ belongs to the w3wp process, anyway there are a few ways to get the app pool names for each PID.
Microsoft were nice enough to provide a VBS that will display this information for us, you can find this in the system32 folder of your 2003 server – ‘IISapp.vbs’
I wrote a 2 second batch file that will get the PID’s and the app pools for you
Read more about this below: