I have a script that returns the registry key, however the result doesn't show the computer that is returning the key.
How could I modify this code so it will list the computer and key.
$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 >> version.csv}