【发布时间】:2017-08-08 21:31:16
【问题描述】:
我正在使用带有 IIS 7.5 的 Powershell 5.0.10586.117。
运行时
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
一开始。
【问题讨论】:
标签: powershell iis iis-7.5 application-pool