title: getting the values of specific string values in registry keys with powershell
body: <p>Using the following powershell script:</p>
  
  <pre><code>Get-ChildItem hkcu:\Test\Universe\Datawink\Switch1\Devices | ForEach-Object {Get-ItemProperty $_.pspath}
  </code></pre>
  
  <p>I am able to get the following output:</p>
  
  <pre><code>PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Test\Universe\Datawink\Switch1\Devices\Entry1
  PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Test\Universe\Datawink\Switch1\Devices
  PSChildName  : Entry1
  PSProvider   : Microsoft.PowerShell.Core\Registry
  Device       : 2882881001
  Recordable   : Yes
  Active       : Yes
  
  PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Test\Universe\Datawink\Switch1\Devices\Entry2
  PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Test\Universe\Datawink\Switch1\Devices
  PSChildName  : Entry2
  PSProvider   : Microsoft.PowerShell.Core\Registry
  Device       : 2882881002
  
  PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Test\Universe\Datawink\Switch1\Devices\Entry3
  PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\Test\Universe\Datawink\Switch1\Devices
  PSChildName  : Entry3
  PSProvider   : Microsoft.PowerShell.Core\Registry
  Device       : 2882881003
  </code></pre>
  
  <p>Which is great, it's showing me the infomation I want, but all I really need is the values of the string entry called 'Device' so all I actually want is the output of the script to look like this:</p>
  
  <pre><code>Device       : 2882881001
  Device       : 2882881002
  Device       : 2882881003
  </code></pre>
  
  <p>or ideally, this:</p>
  
  <pre><code>2882881001
  2882881002
  2882881003
  </code></pre>
  
  <p>What's the simplest way to achieve this?</p>