Try our new Certificate Revocation List Check Tool
CRLcheck.exe is a tool developed to verify digital signatures of executable files. It collects files from known paths on your client, checks their signature, and checks Certificate Revocation Lists (CRL) and OCSP download. This helps avoid delays in launching files.
Category published:  Deployment WSUS   Click on the Category button to get more articles regarding that product.

How to identify WSUS/Windows Patches installed on a W7 in Batch with WMI

Posted by admin on 20.11.2014

You can’t do this file based often anymore like in XP. Except you know what files or Keys have changed but then you would have to capture an install and review it. You need a little

knowledge of WMI and the rigth classes (Just the name of it) to do this.

http://msdn.microsoft.com/en-us/library/aa394391(v=vs.85).aspx

The Win32_QuickFixEngineeringWMI class represents a small system-wide update, commonly referred to as a quick-fix engineering (QFE) update, applied to the current operating system. Starting with Windows Vista, this class returns only the updates supplied by Component Based Servicing (CBS). These updates are not listed in the registry. Updates supplied by Microsoft Windows Installer (MSI) or the Windows update site (http://update.microsoft.com) are not returned by

Win32_QuickFixEngineering.

Here are some tools we use to get the info we need

How to find a WMI class in WMI when you find it on Technet (How to browse it):

Download WMI Explorer 2.0

You can SEARCH for Classes and see where they are located and how to query them

SELECT * FROM Win32_QuickFixEngineering

SELECT * FROM Win32_QuickFixEngineering where HotFixID = ‘KB2729094’

Test the Query with Paessler WMI Tester

 

Selection from Deployment that uses WMI Querys (Like Frontrange) or Windows GPO:

  1. You could make a WMI GPO Filter that selects the computers which have the patch
  2. Then Uninstall the patch with GPO

SELECT * FROM Win32_QuickFixEngineering where HotFixID = ‘KB2984972’

Or use the Query in Enteo FrontRange Script.

Search the Patch in Batch

c:\windows\system32\wbem\wmic.exe qfe | find “kb2559392”
c:\windows\system32\wbem\wmic.exe qfe | find “KB2860142”
c:\windows\system32\wbem\wmic.exe qfe | find “kb2871803”

Gets all the info

c:\windows\system32\wbem\wmic.exe qfe GET HOTFIXID | find “KB2984972”

Only shows the KB

Uninstall the Patch:

wusa /uninstall /kb:2949927 /quiet /norestart

 

Please see our Post for a list of WMI Hotfixes for Windows 7 (Delay, Slow boot because of WMI, Slow GPO because of WMI, WMI request crash or timeout etc.)

https://www.butsch.ch/post/W7-64BIT-WMI-Hotfixes-do-date-post-SP1.aspx

 


 Category published:  Deployment WSUS   Click on the Category button to get more articles regarding that product.