title: Remote Client Sofware Query bugs
body: <p>I've pieced together this script that queries multiple remote clients and returns installed software names and versions. However, it seems to miss a few programs and I don't know why. Is there a problem with registry entry it queries. Here is my code:</p>
  
  <pre><code>Invoke-Command -cn SERVER2012, SERVER2012A -ScriptBlock {
      Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | 
          select DisplayName, DisplayVersion | Format-Table –AutoSize 
          } | Out-File (join-path ([environment]::GetFolderPath('Desktop')) "GetData.txt")
  </code></pre>