Find the Process Id for an Application Pool
If you have lots of web applications running under lots of different application pools, you might want to find out the particular W3WorkerProcess of one of these application pools. This is usually when you want to start a remote-debugging session against a particular application pool.
The great news is, you can find out the information really easily using command prompt (or even better, put this in a batch file on the server you want to find out the process ids for).
Here is the contents of my batch file, in case you need to do the same.
cd c:\WINDOWS\system32\ iisapp.vbs pause