PowerShell
Low risk
Show latest Windows patches installed
Lists the latest Windows patches with their KB ID and date of installation.
Get-HotFix |
Sort-Object InstalledOn -Descending |
Select-Object -First 20 HotFixID, Description, InstalledOn, InstalledBy |
Format-Table -AutoSize
When should you use it?
Useful for confirming that a computer received a patch or correlating an incident with a recent update.
What the script does
- 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.