5

Is it possible to create a shortcut to "View update history"?

Or, do you have a script (powershell, vbs, cmd, ...) to list pending updates?

TN.
  • 557
  • 5
  • 10
  • 21

1 Answers1

3

Give this Powershell script a try:

$update = new-object -com Microsoft.update.Session
$searcher = $update.CreateUpdateSearcher()
$pending = $searcher.Search("IsInstalled=0")
foreach($entry in $pending.Updates)
{
    Write-host "Title: " $entry.Title
    Write-host "Downloaded? " $entry.IsDownloaded
    Write-host "Description: " $entry.Description
    foreach($category in $entry.Categories)
    {
        Write-host "Category: " $category.Name
    }
    Write-host " "
}

Other object members you might be interested in can be view using:

$pending.Updates | member | more
Dennis Williamson
  • 62,149
  • 16
  • 116
  • 151
  • as of yet (2018) this is working nicely in Window10. It's better then the GUI Update Tool (shows more Information). There is also a script in the MS gallery https://gallery.technet.microsoft.com/scriptcenter/0dbfc125-b855-4058-87ec-930268f03285 but I do not see, where it is better then this example here – MacMartin Feb 13 '18 at 15:11