title: Listing computer name with result in powershell
body: <p>I have a script that returns the registry key, however the result doesn't show the computer that is returning the key.  </p>
  
  <p>How could I modify this code so it will list the computer and key.</p>
  
  <pre><code>$key={(Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' -Name Release).Release}
  $computers = @(Get-Content computers.txt)
  foreach ($computer in $computers){ 
  Invoke-Command -computer $computer -scriptblock $key &gt;&gt; version.csv}
  </code></pre>