I am using Powershell 5.0.10586.117 with an IIS 7.5.
When running
Get-ItemProperty ($singleAppPool) -Name Recycling.periodicRestart.schedule.collection I receive i.e.
DefaultAppPool value : 03:00:00 Attributes : {Microsoft.IIs.PowerShell.Framework.ConfigurationAttribute} ChildElements : {} ElementTagName : add Methods : Schema : Microsoft.IIs.PowerShell.Framework.ConfigurationElementSchema However I only want to get the value. But
Get-ItemProperty ($singleAppPool) -Name Recycling.periodicRestart.schedule.collection fails with a "not found" error message.
How to be able to get value only here?
For the sake of being able to reproduce use
Import-Module WebAdministration in the beginning.