Finding Update History

Whenever Windows installs an update via Windows Update, it will log this in its windowsupdate.log file. PowerShell can then parse this file. You should use this to find out how many updates you received on which dates:

Get-Content $env:windir\windowsupdate.log |
Where-Object { $_ -like '*successfully installed*'} |
Foreach-Object { $_.Split("`t")[0] } |
Group-Object -NoElement

It then reads the log file, selects only lines with the keyword "successfully installed," extracts the installation date, which is the first tab-separated part of each line, and groups the results.

Twitter This Tip! ReTweet this Tip!


Posted May 13 2010, 08:00 AM by ps1

Comments

Twitter Trackbacks for Finding Update History - Power Tips - PowerShell.com [powershell.com] on Topsy.com wrote Twitter Trackbacks for Finding Update History - Power Tips - PowerShell.com [powershell.com] on Topsy.com
on 05-13-2010 8:16 AM

Pingback from  Twitter Trackbacks for                 Finding Update History - Power Tips - PowerShell.com         [powershell.com]        on Topsy.com

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.