bklockwood / PSWU

PowerShell Windows Update. CLI/scripted windows updates!
MIT License
24 stars 2 forks source link

Get-UpdateHistory dates are wacky? Also: show status? #25

Closed bklockwood closed 8 years ago

bklockwood commented 8 years ago
PS> get-date
Monday, January 18, 2016 7:53:14 PM

PS> Get-UpdateHistory t81
20160119-03:47:14, Security Update for Windows 8.1 for x64-based Systems (KB3010788)
20160119-01:11:58, Definition Update for Windows Defender - KB2267602 (Definition 1.213.3273.0)
20160118-06:15:32, Definition Update for Windows Defender - KB2267602 (Definition 1.213.3212.0)

Apparently zulu/GMT dates are being returned.

bklockwood commented 8 years ago

New output:

PS C:\Users\bryanda\Documents\GitHub\PSWU> get-updatehistory t81
01/23/2016 08:30:00, Installation, Succeeded, Update for Windows 8.1 for x64-based Systems (KB3013410)
01/23/2016 02:21:07, Installation, Succeeded, Update for Windows 8.1 for x64-based Systems (KB2989930)
01/22/2016 17:19:50, Installation, Succeeded, Definition Update for Windows Defender - KB2267602 (Definition 1.213.3850.0)
01/21/2016 22:12:53, Installation, Succeeded, Definition Update for Windows Defender - KB2267602 (Definition 1.213.3732.0)
01/21/2016 03:54:38, Installation, Succeeded, Definition Update for Windows Defender - KB2267602 (Definition 1.213.3604.0)