windows - 获取应用程序池的标识

标签 windows powershell iis

给定一个特定的应用程序池,是否有办法获取与其关联的身份?

enter image description here

在上图中,我正在尝试获取“NetworkService”。

我试过以下方法:

Import-Module WebAdministration
Get-Item IIS:\AppPools\DeFaultAppPool|Select-Object *

但是,身份无处可寻:

enter image description here

有没有办法获取与之关联的身份?

最佳答案

可以在processModel.identityType下找到:

(Get-Item IIS:\AppPools\DefaultAppPool).processModel.identityType

关于windows - 获取应用程序池的标识,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39043949/

相关文章:

windows - 编写 Windows NT 子系统

windows - Windows 中的内核对象和事件对象有什么区别?

windows - 如何从包含批处理脚本中分隔符分隔的文本的文件中解析一行

c# - 当重定向输出相对较大时,启动的进程挂起

IIS 重写、排除文件夹和子文件夹 - Swagger Case

iis - AppCmd命令失败: Cannot find requested collection element

windows - 在没有提示的情况下删除批处理脚本,Windows 中的文件夹内容

asp.net - OpenCover 显示没有结果 asp net core 461

powershell - 使用PowerShell删除CSV中的前两列

powershell - 如何在 PowerShell 中递归检索具有特定扩展名的任何文件?