> ## 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 Last Installed Windows Update
- URL: https://www.filipkonopik.com/powershell-get-last-installed-windows-update/
- Published: 2026-07-18T10:49:48.000Z
- Updated: 2026-08-06T05:23:42.000Z
- Author: Filip Konopík
- Tags: Windows Updates

Need to quickly check the most recently installed update on a machine - to confirm a patch went through, or as part of a troubleshooting check? This one-liner pulls just the latest entry from the update history.

Prerequisites:

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

Quick Command:

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

Example Output:

```Powershell
Description HotFixID  InstalledOn
----------- --------  -----------
Update      KB5095189 7/16/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.
- Select-Object Description, HotFixID, InstalledOn trims the output down to just these three properties, since Get-HotFix also returns things like Source (the machine name) and InstalledBy (often blank).
- Sort-Object InstalledOn -Descending orders the list from most recently installed to oldest - this matters here, since without -Descending the sort defaults to ascending order, and grabbing the "first" result would return the oldest update instead of the latest one.
- Select-Object -First 1 trims the sorted list down to just that single most recent entry.