Create/update trouble tickets for updating servers. I want to user PowerShell to get a list of the updates for a specific day.
I've found some things that were close and came up with this:
$date = "1/21/2014"
$Session = New-Object -ComObject "Microsoft.Update.Session"
$Searcher = $Session.CreateUpdateSearcher()
$historyCount = $Searcher.GetTotalHistoryCount()
$Searcher.QueryHistory(0, $historyCount) | Where-Object {$_.Date -gt $date} | Select-Object Title, Date > updates.txt
It works *but* the times are in GMT.
How do I get them to print correctly?