作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 PowerShell 查询 IIS7.5 中应用程序池的高级设置。
通过 GUI - 突出显示应用程序池,单击操作 Pane 中的高级设置。
我曾尝试在 powershell 中使用“webAdministration”模块,但我找不到要使用的正确函数或语法。
我可以在 IIS:\AppPools* 下找到应用程序池,但我无法查询每个应用程序池的配置/属性设置等。
我正在努力寻找有关如何查询此信息的任何信息,非常感谢任何帮助。
最佳答案
这是您需要的吗(抱歉,现在无法测试)?
$Pool = New-Item IIS:\AppPools\MyAppPool
$Pool.recycling.periodicRestart.time = [TimeSpan] "00:10:00" # this to set
$Pool.recycling.periodicRestart.time # this to get
关于Powershell - 应用程序池 - 高级设置 - 定期时间间隔,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9069747/
我是一名优秀的程序员,十分优秀!