Windows 10: Determine history of feature upgrades

Hi,

this powershell script determines the previous Windows 10 ReleaseIDs and install date of all feature updates applied to a system.

# 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 &quot;HKLM:\SYSTEM\Setup\Source OS*&quot;|%{Get-ItemProperty -Path $_.PSPath}|Select-Object InstallDate <a href="https://lookup-phone-prefix.com">Find phone</a> ,ReleaseId
$aReleases=@()
write-host &quot;Release ID History&quot;
if($aReleaseID.Count -ge 1)
{
	$aReleaseID|%{
		$aReleases+=new-object PSObject -Property @{&quot;ReleaseID&quot;=$_.ReleaseId;&quot;InstallTime&quot;=((Get-Date 01.01.1970)+[System.TimeSpan]::fromseconds($_.InstallDate))}
	}
	$aReleases|format-table -autosize
}

Michael

Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.