title: Powershell query registry subkeys and return only specified key name and data field
body: <p>I'm trying to create a powershell command that will return the value of specific keys in the registry. The name of the keys are "Name" "Data" and "Percentage"</p>
  
  <p>What I have below grabs all the subkeys, but I can't figure out how to just select the names of the keys above and have them outputted to me? It seems like it would be easy, but I can't figure out how to have <em>multiple</em> results in one query. Any help would be appreciated!</p>
  
  <pre><code>Get-ChildItem hklm:\SOFTWARE\Wow6432Node\Software\Softwarename | ForEach-Object {Get-ItemProperty $_.pspath}
  </code></pre>