Query Installed HotFixes (Windows)

Hello,
I need to makes an inventory of system patches installed on a group of machines.

I thought of writing an action that writes on a file the list of hotfixes and then read it with an analyse.

The action must be runnable on machines where PowerShell is not installed.

Regarding the action I tried something like this:

dos wmic /OUTPUT:HotfixList.temp qfe get Hotfixid
dos TYPE HotfixList.temp | FIND /V /I "HotFixID" > HotfixList
delete HotfixList.temp

but when I try it in the Fixlet Debugger it does not seem to produce any output.

Where am I wrong?

Maybe try this:

string values of selects "HotFixID from win32_quickfixengineering where Description = 'Hotfix'" of wmi
1 Like

Thanks TheTick,
your proposal is a solution to my problem.
With regard to my question do you have any idea why my script is not working?

Try the first part by itself to see if it works as is before manipulating it.

dos wmic qfe get Hotfixid > hotfixlist.txt