Windows Command Line To View Installed Software Hotfixes/Patches

1.5k Views Asked by At

On Windows, navigating into the Control Panel > Programs and Features > View installed updates page, I can see all of the software hotfixes applied including the Windows updates.

I would like to view this information using a command. Using the following command, I can view all of the Windows updates applied:

wmic qfe list full

The only problem is, the command above does not list software appliance patches applied to the machine. For example, on the view installed updates page, I can see a patch applied for SolarWinds and I cannot see the same information in the command line.

1

There are 1 best solutions below

0
On

Refer to Skipping last empty line of WMIC command output in batch

@echo off
Title wmic to get HotfixID
Setlocal EnableDelayedExpansion
echo "patches" : {
set "patches=wmic qfe get HotfixID"
for /f "skip=1" %%i in ('%patches%') do for /f "delims=" %%j in ("%%i") do (
    set /a count=count+1
    echo "!count!" : "%%j",
)
echo }

With Powershell 7.1 and refer to Get-Package , You can give a try with Powershell :

Get-Package -AllVersions

Getting List of Installed Applications that Matches Add/Remove Programs List


Refer to group all installed software in one cell by PowerShell

(Get-Package | Where-Object {$_.ProviderName -in @('Programs','msi','Chocolatey')} | Select-Object -ExpandProperty Name)