How to get a list of all Installed KB on Windows machine

How to get a list of all Installed KB on Windows machine

91
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:09 PM


Objective


WMIC stands for Windows Management Instrumentation Command.

Running the 'wmic qfe list' command will output a list of all installed Windows and software updates applied to that computer.


Procedure


wmic qfe list is a Microsoft tool/utility and one that many of our plugins look at the output of to determine if the host has the desired KB updates or not. It is possible for an update to show as installed in the 'View Installed Updates' section and not show up in the qfe list. That is usually an indication that the update did not install correctly or fully.

To run the command, open a command prompt as admin and run:
wmic qfe list

Example of output in the cli:
http://support.microsoft.com/?kbid=9876543     COMPUTER  Security Update
       KB9876543               COMPUTER\Admin123         6/8/2015

http://support.microsoft.com/?kbid=8765432     COMPUTER  Security Update
       KB8765432               COMPUTER\Admin123  8/17/2016

http://support.microsoft.com/?kbid=7654321     COMPUTER  Security Update
       KB7654321               COMPUTER\Admin123  8/17/2016

-----

If you'd like to create a text file with the output in it, you can do so with:
wmic qfe list > UpdateList.txt
(You can name the .txt file whatever you'd like)

Please note that this will create the named file in whatever directory that you are running the command from, so it may be best to change the directory to C:\Users\<username>\Desktop or C:\temp for easy access.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001VoECAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail