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


    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."


    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




    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.


    Friday, September 13, 2019 12:44 PM

All replies

  • This is great and all but unfortunately NOT the answer, nor is it helpful for many cases.

    Where I work, we are REQUIRED to use MBSA by the government. So it doesn't matter if it's still supported or not, I HAVE to use it. And it's broken on Windows 10 as I consistently get Incomplete Scan.

    Tuesday, January 14, 2020 5:14 PM