Sunday, 15 July 2012

c# - Get an application pool's Process ID using ADSI -


I've written a small device that lists all app pools in the box and allow you to start / stop / recycle Gives them I system The Directory Services have been used.

Now I am trying to write ProcessID for each AppPool for use in any other tool, but I am struggling to know where it is. Does anyone have any signs?

Thanks

I know this is not ADSI but I

APMCM list WP

WP "4404" (applicationPool: blah)
WP "6864" (Application Paul: Blabbl) WP "2976" (App Paul: Blblblah)

Then parse the result from result id.

The APCMD can be found in the System 32 \ inetsrv directory.


No comments:

Post a Comment