> ## Content Index
> Fetch the complete content index at: https://www.filipkonopik.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# PowerShell: Get Windows Update History
- URL: https://www.filipkonopik.com/powershell-get-windows-update-history/
- Published: 2026-07-18T10:35:44.000Z
- Updated: 2026-08-06T05:22:50.000Z
- Author: Filip Konopík
- Tags: Windows Updates

Need to check which updates have been installed on a machine - for patch auditing, troubleshooting a recent update issue, or confirming a specific KB was applied? This one-liner pulls the installed update history straight from the system.

Prerequisites:

- Privileges: None
- Module: Built-in, no import needed

Quick Command:

```Powershell
Get-HotFix | Select-Object Description, HotFixID, InstalledOn | Sort-Object InstalledOn -Descending
```

Example Output:

```Powershell
Description     HotFixID  InstalledOn
-----------     --------  -----------
Update          KB5095189 7/16/2026 12:00:00 AM
Security Update KB5094126 6/6/2026 12:00:00 AM
Security Update KB5094135 6/6/2026 12:00:00 AM
Update          KB5054156 6/6/2026 12:00:00 AM
Update          KB5087051 6/6/2026 12:00:00 AM
```

📦

****Want all of them at once?**  
Get every free one-liner from this blog in a single downloadable bundle organized by category, each with full comment-based help. No more copy-pasting one at a time.

[Get the Complete Bundle for $39](https://gum.co/u/oczvkqdc?ref=filipkonopik.com)

How It Works:

- Get-HotFix queries installed updates and patches on the system - it's built on the same underlying data as the Win32\_QuickFixEngineering CIM class, just wrapped in a friendlier cmdlet.
- Description shows the general category of the patch (e.g. "Update" or "Security Update").
- HotFixID is the KB number identifying the specific patch - useful for cross-referencing against Microsoft's update catalog or a known problematic update.
- InstalledOn shows the date the patch was applied.
- Select-Object trims the output down to just these three properties, since Get-HotFix also returns things like Source (the machine name) and InstalledBy (often blank, since not every update logs who installed it).
- Sort-Object InstalledOn -Descending orders the list from most recently installed to oldest, which is usually more useful for a "history" view than the default unsorted order.

Pro Tip:

On machines with years of update history, this list can get long. Limit it to the most recent 10 entries, for example:

```Powershell
Get-HotFix | Select-Object Description, HotFixID, InstalledOn | Sort-Object InstalledOn -Descending | Select-Object -First 10
```