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 "HKLM:\SYSTEM\Setup\Source OS*"|%{Get-ItemProperty -Path $_.PSPath}|Select-Object InstallDate,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

Advertisment to support michlstechblog.info

Time limit is exhausted. Please reload CAPTCHA.

Original Theme by Schiy · Powered by WordPress