Home Windows Server Which Application Pool a Process ID belongs To
Author:

If you are running into memory issue or you just want to monitor your Windows Server you could run this script to find out which application pool a process ID belongs to.

In my instance one of the app pool is going crazy so I need to find out which app pool is that and what application goes into that app pool.

Here is the script you can just put in DOS command window:

c:\windows\system32\cscript.exe c:\windows\system32\iisapp.vbs
pause


C:\Documents and Settings\your account name\Desktop>c:\windows\system32\cscript.exe c:\
windows\system32\iisapp.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

W3WP.exe PID: 7748   AppPoolId: app server 1
W3WP.exe PID: 10736   AppPoolId: app server 2
W3WP.exe PID: 11552   AppPoolId: app server 3
W3WP.exe PID: 8552   AppPoolId: app server 4
W3WP.exe PID: 11244   AppPoolId: app server 5
W3WP.exe PID: 10088   AppPoolId: app server 6

C:\Documents and Settings\your account name\Desktop>pause
Press any key to continue . . .



Comments (0)
Write comment
Your Contact Details:
Comment:
Security
Please input the anti-spam code that you can read in the image.

"