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
Kees Baggerman
Latest posts by Kees Baggerman (see all)
- Nutanix AHV and Citrix MCS: Adding a persistent disk via Powershell – v2 - November 19, 2019
- Recovering a Protection Domain snapshot to a VM - September 13, 2019
- Checking power settings on VMs using powershell - September 11, 2019
- Updated: VM Reporting Script for Nutanix with Powershell - July 3, 2019
- Updated (again!): VM Reporting Script for Nutanix AHV/vSphere with Powershell - June 17, 2019
Good script!
And for the ones that rather use PowerShell : http://blogs.technet.com/b/tmintner/archive/2006/07/07/440729.aspx
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 :))