List recently installed Windows updates
Build a paste-ready command, then review its compatibility and effects before running it.
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 20read-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-19
RequirementsGet-HotFixGet-HotFix must be installed and available on PATH.
Version supportGet-HotFix Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsSource Description HotFixID InstalledBy InstalledOnRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-HotFix: command not foundGet-HotFix is missing or is not available on PATH.
VerifyGet-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 20The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01Get-HotFixCommandRuns the Get-HotFix stage of this one-liner.
02|PipelinePasses the output on the left to the command on the right.
03Sort-ObjectCommandRuns the Sort-Object stage of this one-liner.
04InstalledOnArgumentPasses InstalledOn to Sort-Object.
05-DescendingOptionConfigures Sort-Object with the -Descending option.
06|PipelinePasses the output on the left to the command on the right.
07Select-ObjectCommandRuns the Select-Object stage of this one-liner.
08-FirstOptionConfigures Select-Object with the -First option.
0920ArgumentPasses 20 to Select-Object.
Example input
Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 20
Example output
Source Description HotFixID InstalledBy InstalledOn
------ ----------- -------- ----------- -----------
DESKTOP Security Update KB5062553 NT AUTHORITY\SYSTEM 22.07.2026
DESKTOP Update KB5060531 NT AUTHORITY\SYSTEM 11.07.2026
Illustrative output — exact values vary by system and data.
Official sources