Powershell-应用程序池-高级设置-常规时间间隔



我正在尝试使用PowerShell查询IIS7.5中应用程序池的高级设置。

通过GUI-突出显示应用程序池,单击操作窗格中的高级设置。

我曾尝试使用powershell中的"webAdministration"模块,但找不到正确的函数或语法。

我可以在IIS:\AppPools*下找到应用程序池,但我无法查询每个应用程序池的配置/属性设置等。

我很难找到任何关于如何查询这些信息的信息,任何帮助都将不胜感激。

这是您需要的吗(抱歉,现在无法测试)?

 $Pool = New-Item IIS:AppPoolsMyAppPool
 $Pool.recycling.periodicRestart.time = [TimeSpan] "00:10:00" # this to set
 $Pool.recycling.periodicRestart.time # this to get

最新更新