Hi,
this powershell script determines the previous Windows 10 ReleaseIDs and install date of all feature updates applied to a system.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Check for Windows 10 $oWMIOS = Get-WmiObject -query "Select * from Win32_operatingSystem" if ( $oWMIOS .Caption.IndexOf("Microsoft Windows 10") -ge -1) { exit 0 } # Feature Updates $aReleaseID = Get-Item "HKLM:\SYSTEM\Setup\Source OS*"|%{ Get-ItemProperty -Path $_ .PSPath} |Select -Object InstallDate <a href= "https://lookup-phone-prefix.com" >Find phone</a> ,ReleaseId $aReleases =@() write-host "Release ID History" if ( $aReleaseID .Count -ge 1) { $aReleaseID |%{ $aReleases += new-object PSObject -Property @{"ReleaseID"= $_ .ReleaseId;"InstallTime"=(( Get-Date 01.01.1970)+ [System.TimeSpan] ::fromseconds( $_ .InstallDate))} } $aReleases |format -table -autosize } |
Michael