Published by


Brink's Avatar
Administrator

Posts: 28,545

Show Printable Version 


How to View Windows Upgrade History in Windows 10


Each time you upgrade Windows 10 (ex: Home to Pro edition) or have a build upgrade of Windows 10 (ex: new build via Windows Update), this upgrade history is stored in the registry.

It can be useful to view the Windows upgrade history details to find out about previously installed builds and editions of Windows on your Windows 10 PC.

This tutorial will show you how to view the Windows upgrade history of your Windows 10 PC.


 CONTENTS:

  • Option One: To View Windows Upgrade History in PowerShell
  • Option Two: To View Windows Upgrade History in Registry Editor





View Windows Upgrade History in Windows 10 OPTION ONE View Windows Upgrade History in Windows 10
To View Windows Upgrade History in PowerShell

1. Open PowerShell.

2. Copy and paste the command below into PowerShell, and press Enter. (see screenshot below)

This command will collect the Windows upgrade history of your PC from the registry, and assign it to $OSUpgradeHistory.

Code:
$OSUpgradeHistory = $(gci "HKLM:\System\Setup" | ? {$_.Name -match "\\Source\s"}) | % { $_ | Select @{n="UpdateTime";e={if ($_.Name -match "Updated\son\s(\d{1,2}\/\d{1,2}\/\d{4}\s\d{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 command below into PowerShell, and press Enter.

This command will display the $OSUpgradeHistory.

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

4. You will now see the Windows upgrade history of your Windows 10 PC.

Click image for larger version. 

Name:	Windows_upgrade_history_PowerShell.png 
Views:	23 
Size:	45.3 KB 
ID:	182220






View Windows Upgrade History in Windows 10 OPTION TWO View Windows Upgrade History in Windows 10
To View Windows Upgrade History in Registry Editor

1. Press the Win+R keys to open Run, type regedit into Run, and click/tap on OK to open Registry Editor.

2. Navigate to the key below in the left pane of Registry Editor. (see screenshot below)

HKEY_LOCAL_MACHINE\SYSTEM\Setup

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

Click image for larger version. 

Name:	Windows_upgrade_history_regedit.png 
Views:	20 
Size:	84.5 KB 
ID:	182204


That's it,
Shawn