IIS应用程序池的PID [英] IIS Application pool PID

查看:252
本文介绍了IIS应用程序池的PID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是任何人都熟悉的方式来获取与进程ID相关联的应用程序池?我使用的Win32_Process查询W3WP服务,并返回PID现在我试图让与之相关的应用程序池。

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.

推荐答案

如果你只是使用命令行来弄明白特设你可以做到这一点:

If you are just using command line to figure it out ad-hoc you can do this too:

脚本已经放置在systemroot \ System32 Windows Server 2003上所以干脆去你的命令提示符,然后输入iisapp.vbs(该.vbs是可选的),你就会有所有的应用程序池的信息瞬间列表你一直想知道的。您可能需要键入CSCRIPT iisapp.vbs如果在CScript不是默认的WSH脚本宿主。

The script is already placed in systemroot\system32 on Windows Server 2003 so simply go to your Command Prompt and type in iisapp.vbs (the .vbs is optional) and you'll have an instant list of all the App Pool information you've always wanted to know. You may need to type cscript iisapp.vbs if CScript isn't your default WSH script host.

让我们来看看输出的一个例子:

Let's see an example of the output:

W3WP.exe PID: 1468 AppPoolId: AppPoolForSite1.com
W3WP.exe PID: 3056 AppPoolId: AppPoolForSite2.com
W3WP.exe PID: 1316 AppPoolId: AppPoolForSite3.com

从马的嘴

直接,微软文档

这篇关于IIS应用程序池的PID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆