Script: Create a list of Windows Updates installed

I was troubleshooting some issues and I needed a way to collect an overview of Windows Updates installed on a couple of machines and after some digging around I found the following command line:

gwmi Win32_QuickFixEngineering | select Description, Hotfixid

But because I had to run this command on several different machines and wanted the information in one logfile I had to search for the Win32_QuickFixEnginereering properties to see if there’s a property which can make the results unique. On the MS technet site I found the following description:

Table 8.11 Win32_QuickFixEngineering Properties

Property Description
CSName Local name of the computer system.
Description Description of the hot fix.
HotFixID Unique identifier associated with a particular hot fix.
InstallDate Date the hot fix was installed.
InstalledBy Person who installed the update.

So I added the CSName property and a location to write the results to and I had a good listing of all windows updates installed:

gwmi Win32_QuickFixEngineering | select CSName, Description, Hotfixid  >> \\contoso.local\NETLOGON\VersionControl.txt

Get new posts by email

One email when a new post goes up. Nothing else.

I only use your address to send new posts, and every email has an unsubscribe link. See the privacy policy.

ShareLinkedInXEmail
Kees Baggerman

Kees Baggerman

Senior Technical Director at Nutanix · NVIDIA Enterprise Platform Advisor · Former Citrix CTP · 15+ years in EUC

Kees Baggerman is Senior Technical Director, Performance & Solutions Engineering R&D at Nutanix, where he leads a global team responsible for defining how enterprise applications are delivered on the Nutanix platform. An NVIDIA Enterprise Platform Advisor since 2017 and a former Citrix Technology Professional, he has spent 15+ years driving EUC strategy and technical direction across architecture, product, and customer success. He has been writing here since 2011, sharing what he learns at the intersection of platform engineering and enterprise IT.

2 Comments

  1. Jeff, I found that one as well but it doesn’t format the output as nicely as the script above? This was out of the box what I needed while the technet blog needs some work in order to make it useful (for me that is :))

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.