Can you please update for December patch tuesday updates? Are you making this list manually by going through each kb urls on Microsoft's website? The urls for office updates don't show up in WindowsUpdate.log file. If you install via Windows Update, URLsnooper shows that it is downloading .cab files not .exe which are in the list.
I reran the above code, but it does not seem to list all the updates? For example MS Office updates? Also is it possible to also print out the title of the KB next to the KB number. This way I can exclude stuff like Windows Defender updates before comparing the 2 lists. Again thanks for helping.
What I am trying to achieve is a listing of all the updates with the KB numbers, so I can compare 2 VMs. That is which updates are missing in the offline VM, so I can download and install those manually.
When I saved it as .cmd file it works! It lists the .NET security updates KB numbers. Is it possible to filter out the lines which don't have any KB numbers associated with them? Because I am seeing stuff like: EMET 5.2 Microsoft Office Shared Setup Metadata MUI (English) 2013 ... Also is it possible to add all the installed updates into your script? Then I won't have to use the script mentioned in the original post. Thanks for your help.
I have been using this script http://tomtalks.uk/2013/09/list-all-microsoftwindows-updates-with-powershell-sorted-by-kbhotfixid-get-microsoftupdate $wu = new-object -com "Microsoft.Update.Searcher" $totalupdates = $wu.GetTotalHistoryCount() $all = $wu.QueryHistory(0,$totalupdates) # Define a new array to gather output $OutputCollection= @() Foreach ($update in $all) { $string = $update.title $Regex = "KB\d*" $KB = $string | Select-String -Pattern $regex | Select-Object { $_.Matches } $output = New-Object -TypeName PSobject $output | add-member NoteProperty "HotFixID" -value $KB.' $_.Matches '.Value $output | add-member NoteProperty "Title" -value $string $OutputCollection += $output }$OutputCollection | Export-Csv \\somedir\somefile.csv -NoTypeInformation -UseCulturebut it does not list the .NET updates which I installed offline. In VM1 where I downloaded the same updates from Windows Update it lists them using the above script. But in VM2 where I installed them offline it doesn't list them? I used the above script because it also lists all the Office updates. Any help appreciated.
What are you guys using to list all the updates which are installed? I have been using this script http://tomtalks.uk/2013/09/list-all-microsoftwindows-updates-with-powershell-sorted-by-kbhotfixid-get-microsoftupdate but it does not list the .NET updates which I installed offline.