Skip to content

Instantly share code, notes, and snippets.

@asabla
Created May 2, 2021 19:56
Show Gist options
  • Save asabla/e084706ebe14fd221dbda64453a11eb0 to your computer and use it in GitHub Desktop.
Save asabla/e084706ebe14fd221dbda64453a11eb0 to your computer and use it in GitHub Desktop.
Find and list windows updates through powershell
Get-ChildItem -Path HKLM:\System\Setup\Source* | ForEach-Object {Get-ItemProperty -Path Registry::$_} | Select-Object ProductName, ReleaseID, CurrentBuild, @{n="Install Date"; e={([DateTime]'1/1/1970').AddSeconds($_.InstallDate)}} | Sort-Object "Install Date"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment