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