Skip to content

Instantly share code, notes, and snippets.

View Timthreetwelve's full-sized avatar
🏠
Working from home

Tim Kennedy Timthreetwelve

🏠
Working from home
  • Amarillo, Texas
  • 04:29 (UTC -05:00)
View GitHub Profile
@Timthreetwelve
Timthreetwelve / WindowsUpdateHistory.ps1
Created May 26, 2023 00:23
PowerShell to display Windows Update History
# This is a bare bones PowerShell script that will display Windows Update History
$session = New-Object -ComObject Microsoft.Update.Session
$searcher = $session.CreateUpdateSearcher()
$historyCount = $searcher.GetTotalHistoryCount()
Write-Output "Found $historyCount updates"
$Searcher.QueryHistory(0, $historyCount) | Select-Object Date, Title