(imported topic written by jpeppers91)
I need some help here. I had a property that would tell me the install date of of windows patches. This was only good for 32bit machines. Since the increase with x64 bit machines this property is becoming less efficient. I’ve since tried to use wmic and write it out to a text file but Bigfix writes it in some weird format that can’t be read. I’m out of ideas. Anyone else can think of something to get this info for both 32 and 64 bit machines?
Here is what I was using before for the past 6 years but this is no longer feasible.
(
if
(
exists
value
“DisplayName”
of
it
AND
(length
of
(value
“DisplayName”
of
it
as
string)
0
)
AND
(
number of
substrings
" "
of
(value
“DisplayName”
of
it
as
string)
<
(length
of
(value
“DisplayName”
of
it
as
string))))
then
(value
“DisplayName”
of
it
as
string
&
(
if
(
exists
value
“Installdate”
of
it
)
then
(
" - "
&
value
“Installdate”
of
it
as
string)
else
(
“”
)))
else
(name
of
it
&
(
if
(
exists
value
“Installdate”
of
it
)
then
(
" - "
&
value
“Installdate”
of
it
as
string)
else
(
“”
))))
of
keys
whose
(
exists
value
“UninstallString”
of
it
AND
exists
value
“DisplayName”
of
it
AND
value
“DisplayName”
of
it
as
string
as
lowercase
contains
“window”
)
of
key
“HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall”
of
registry
I tried using wmic qfe command that produces a text file but Bigfix doesn’t read it properly with the lines of file c:\temp\file.txt relevance