0
我使用的是带有IIS 7.5的Powershell 5.0.10586.117。如何使用Powershell获取IIS应用程序池的“周期性重新启动回收值”
当运行
Get-ItemProperty ($singleAppPool) -Name Recycling.periodicRestart.schedule.collection
我收到即
DefaultAppPool
value : 03:00:00
Attributes : {Microsoft.IIs.PowerShell.Framework.ConfigurationAttribute}
ChildElements : {}
ElementTagName : add
Methods :
Schema : Microsoft.IIs.PowerShell.Framework.ConfigurationElementSchema
但我只想要得到的值。但是
Get-ItemProperty ($singleAppPool) -Name Recycling.periodicRestart.schedule.collection
失败并显示“未找到”错误消息。
如何才能获得价值只在这里?
为了能够再现使用
Import-Module WebAdministration
在开始的缘故。