Get-ChildItem 'HKLM:\SYSTEM\Setup' |
Where-Object {$_.PSChildName -like 'Source OS*'} |
ForEach-Object {
Write-Host "`n--- $($_.PSChildName) ---"
Get-ItemProperty $_.PSPath |
Select ProductName,EditionID,ReleaseId,DisplayVersion,CurrentBuild,CurrentBuildNumber,InstallDate
}