Command
Get-HotFix |
Sort-Object InstalledOn -Descending |
Select-Object -First 20 HotFixID, Description, InstalledOn, InstalledBy |
Format-Table -AutoSizeWhen to use it
Useful for confirming that a computer received a patch or correlating an incident with a recent update.
How it works
- Get-HotFix reads updates reported by Windows.
- The list is sorted from newest to oldest.
Precautions
- Some modern Windows updates are not exposed through Get-HotFix.
Rollback
No changes are made.