Need help on relevance to get Wmic object details

HI Team,

I am trying to fetch the version detail by running a wmic query which works on the command prompt, but I need to relevance so that I can have this fetched from BigFix analysis. Please suggest!!

Tried few ways but encountering the error as shown:-1:

The error message you get tells the story - % is used to escape some characters, so has, itself, to be escaped.

Swap the % with %25

2 Likes

Thanks a lot, it worked:-1:

WMI queries can be the more costly in respect to time required to process. If you are looking for software versions, 2 other approaches are leaner on the endpoint. There is a “regapp” method which only works for those aps that register an App Path (these are the ones you can run from the Start menu without knowing the full path of the executable).

Q: version of regapp "chrome.exe"
A: 98.0.4758.102
T: 1.253 ms
I: singular version

If the application isn’t a regapp, the you can pull the version from the registry in a fraction of the time it take to process a WMI query.

Q: unique values of (values "DisplayVersion" of keys whose (((it contains "chrome")) of (value "DisplayName" of it as string as lowercase) AND (exists value "Publisher" whose (it as string as lowercase contains "google") of it)) of keys "HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall" of (x32 registries ; x64 registries) as string)
A: 99.0.4844.51
T: 7.595 ms
I: plural string with multiplicity
1 Like