IIS Application pool PID

前端 未结 9 2209
臣服心动
臣服心动 2020-12-02 11:06

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

9条回答
  •  情深已故
    2020-12-02 11:33

    ServerManager serverManager = new ServerManager();
    ApplicationPoolCollection applicationPoolCollection = serverManager.ApplicationPools;
    

    Try working with this and it should get you what you need.

提交回复
热议问题