I'm running some perfmon counters / reports on an Windows Server 2003 IIS6 web server, that has each web site running under its own application pool/worker process user.
The report is providing the names of the sites as, for example:
w3wp#29 w3wp#30 w3wp#31 w3wp#32
I need the worker process names (or PID) so I can determine which web site each relates to.
The #29, #30, #31, etc numbers are not PIDs, because when I enable PID view in Task Manager or if I enable the 'Command Line' column in Sysinternals Process Manager, or use the iisapp.vbs script - the PID's are longer numbers.
I haven't been able to find anything to convert the above processes into the application pool user name or at least the PID so I can cross reference it to the site using the iisapp.vbs script.
I researched this and did come across a registry setting that may do what I'm looking for but unless there's not other way I don't want to make registry changes:
Any ideas on how to look up or convert the w3wp#XX processes to either application pool username or PID?