How to view upgrade history in Windows 10

How to view upgrade history in Windows 10

Every time you upgrade Windows 10 (for example from Home edition to Pro edition) or upgrade Windows 10 build (for example, new build via Windows Update), this upgrade history is stored in the registry.

Viewing the detailed Windows upgrade history can be helpful when learning about previously installed Windows builds and versions on a Windows 10 PC.

This guide will show you how to view Windows upgrade history on a Windows 10 PC.

View Windows upgrade history in PowerShell

1. Open PowerShell.

2. Copy and paste the command below into PowerShell and press Enter. This command will collect your PC’s Windows upgrade history from the registry and assign it to $ OSUpgradeHistory.

Code:

$OSUpgradeHistory = $(gci "HKLM:SystemSetup" | ? {$_.Name -match "Sources"}) | % { $_ | Select @{n="UpdateTime";e={if ($_.Name -match "Updatedsons(d{1,2}/d{1,2}/d{4}sd{2}:d{2}:d{2}))$") {[dateTime]::Parse($Matches[1],([Globalization.CultureInfo]::CreateSpecificCulture('en-US')))}}}, @{n="ReleaseID";e={$_.GetValue("ReleaseID")}},@{n="Branch";e={$_.GetValue("BuildBranch")}},@{n="Build";e={$_.GetValue("CurrentBuild")}},@{n="ProductName";e={$_.GetValue("ProductName")}},@{n="InstallTime";e={[datetime]::FromFileTime($_.GetValue("InstallTime"))}} };

3. Copy and paste the following command into PowerShell and press Enter. This command will display $ OSUpgradeHistory.

$OSUpgradeHistory | Sort UpdateTime | ft UpdateTime, ReleaseID, Branch, Build, ProductName

4. You should now see Windows upgrade history on your Windows 10 PC.

View Windows upgrade history in PowerShell

View Windows upgrade history in Registry Editor

1. Press Win + R to open Run , type regedit into Run and click OK to open Registry Editor.

2. Navigate to the key below in the left panel of Registry Editor.

HKEY_LOCAL_MACHINESYSTEMSetup

3. Look to the right of each Source OS subkey (Updated on <date> <time>) in the Setup key. Each Source OS subkey will give you BuildBranch, CurrentBuild (build number), ProductName (version), ReleaseID (version number), etc., detailing the upgrade history of Windows installed before.

View Windows upgrade history in Registry Editor

See more:

  • How to view and delete activity history on Windows 10