is anyone familiar with a way to get the Application pool that is associated with a process ID ? I am using Win32_Process to query the W3WP services and return the PID now I am trying to get the app pool associated with it.
Process ID of a specific App Pool This is the easiest way to accomplish: In Task Manager add the PID (process identifier) column. Right click on the column and select PID (for older versions of Windows click the View menu, Select Columns, and select PID (Process Identifier).
Resolution: In IIS Manager, you can view the Worker Process assignments by going into the Worker Processes section of the server itself. . . This will then generate the Process ID (PID) of the Worker Process associated with the application pool. . . (
Open IIS manager, click on the top level websites folder, view the lists of sites in the right hand pane, listing the App ID's. Show activity on this post. That will give you a list of sites currently running, the PID of the process and the App ID you need.
Open the Windows Task Manager, ensure that the PID and Command Line columns are shown on the screen. For all w3wp.exe processes, check the value of the Command Line argument. Find the w3wp.exe process that has the target application pool name mentioned in the Command Line column.
On Windows Server 2008 this has changed.
in systemroot\system32\inetsrv you find the appcmd.exe
using
appcmd list wp
you get a list of all the worker processes and which apppool they are serving.
You might need to run this in a shell with Administrator privileges.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With