none
MBSA no longer supported - stop asking questions about it - here is an alternate solution RRS feed

  • Question

  • Hello folks,

    As MBSA is no longer supported, there is an alternate solution.

    Using WUA to Scan for Updates Offline

    https://docs.microsoft.com/en-us/windows/desktop/Wua_Sdk/using-wua-to-scan-for-updates-offline

    Here are the exact steps:

    Using WUA to Scan for Updates Offline

    1. Download Wsusscn2.cab file from here:  http://go.microsoft.com/fwlink/p/?LinkID=74689
    2. Save it to C:\Temp
    3. Save the following txt into a .vbs file (for example c:\Temp\check4missing.vbs)

     

    Set UpdateSession = CreateObject("Microsoft.Update.Session")

    Set UpdateServiceManager = CreateObject("Microsoft.Update.ServiceManager")

    Set UpdateService = UpdateServiceManager.AddScanPackageService("Offline Sync Service", "c:\Temp\wsusscn2.cab", 1)

    Set UpdateSearcher = UpdateSession.CreateUpdateSearcher()

    WScript.Echo "Searching for updates..." & vbCRLF

    UpdateSearcher.ServerSelection = 3 ' ssOthers

    UpdateSearcher.ServiceID = UpdateService.ServiceID

    Set SearchResult = UpdateSearcher.Search("IsInstalled=0")

    Set Updates = SearchResult.Updates

    If searchResult.Updates.Count = 0 Then

        WScript.Echo "There are no applicable updates."

        WScript.Quit

    End If

    WScript.Echo "List of applicable items on the machine when using wssuscan.cab:" & vbCRLF

    For I = 0 to searchResult.Updates.Count-1

        Set update = searchResult.Updates.Item(I)

        WScript.Echo I + 1 & "> " & update.Title

    Next

    WScript.Quit

     

    1. Now open up an elevated command prompt and change to the C:\temp folder
    2. Type in this command and hit enter:  "cscript check4missing.vbs"

    You will see this output: 

    If you have missing updates, you'll see something similar to the following:

     


     

    NOTE: you can also send the output of this script to a .txt file by running this command:  cscript check4missing.vbs > results.txt

     

    You can then review the results.txt file for missing updates.

    -Blake


    Friday, September 13, 2019 12:44 PM