The example code below may allow to understand how to find some "particular" updates; for example only the updates belonging to a given category or so on; by the way the code doesn't much more than just listing all the installed and available updates but it may help a bit in case one needs to write code to only fetch some particular updates and/or to bypass a local WSUS server
<pre>
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, fp
Dim objSearcher, objResults, objCategories
Dim colUpdates
Dim i, z, sQuery, sCat
sQuery = "Type='Software'" ' "IsInstalled=0 and Type='Software'"
Set fso = CreateObject("Scripting.FileSystemObject")
WScript.StdOut.WriteLine "Initializing update object..."
Set objSearcher = CreateObject("Microsoft.Update.Searcher")
objSearcher.ServerSelection = 2 ' ssWindowsUpdate
objSearcher.Online = True ' bypass WSUS server
WScript.StdOut.WriteLine "Searching for updates, wait please..."
Set objResults = objSearcher.Search(sQuery)
Set colUpdates = objResults.Updates
WScript.StdOut.WriteLine "Writing updates list to file..."
Set fp = fso.OpenTextFile("updt.log", ForWriting, True)
For i = 0 to colUpdates.Count - 1
Set objCategories = colUpdates.Item(i).Categories
sCat = ""
For z = 0 to objCategories.Count - 1
sCat = sCat &;; "," &;; objCategories.Item(z).Name
Next
sCat = Mid(sCat, 2)
fp.WriteLine "Update Title......: " &;; colUpdates.Item(i).Title
fp.WriteLine "Categories........: " &;; sCat
fp.WriteLine "Description.......: " &;; colUpdates.Item(i).Description
fp.WriteLine "Max download size.: " &;; colUpdates.Item(i).MaxDownloadSize
fp.WriteLine "Downloaded........: " &;; colUpdates.Item(i).IsDownloaded
fp.WriteLine "Installed.........: " &;; colUpdates.Item(i).IsInstalled
fp.WriteLine ""
Next
fp.Close
WScript.StdOut.WriteLine "All done, exiting."
WScript.Quit 0
</pre>