Monday, July 25, 2011

Determining which website is running under which W3WP process

Or this post could be named “where is IISApp.Vbs script go in IIS 7?”

If you look at the Windows Task Manager, you may see multiple w3wp.exe processes running:

image

So how do you determine which one is running which website? In IIS 6, one would use the IISApp.vbs script to get that info. In IIS 7, there is a new executable called AppCmd.exe. This file can be typically found under the “c:\windows\system32\inetsrv” folder.

To determine which W3Wp.exe process is hosting which website, simply run the following command: AppCmd list wp

image

No comments: