Report DAT version - Custom Data field
I am trying to create a report which shows the Machines, McAfee Software installed and DAT version.
So far, I have created the custom data field for retrieving the DAT version as follows:
RegistryValueReturn(HKEY_LOCAL_MACHINE\SOFTWARE\McAfee\AVSolution\AVS\AVS\, szAMCoreVersion, TEXT) which works as expected; Howerver I don't know how to include this value on my SQL query:
M.NAME as MACHINE_NAME,
S.DISPLAY_NAME as SOFTWARE_NAME,
S.DISPLAY_VERSION as VERSION
MACHINE_SOFTWARE_JT MSJ ON S.ID = MSJ.SOFTWARE_ID
MACHINE M ON MSJ.MACHINE_ID = M.ID
((S.DISPLAY_NAME like 'McAfee T%' or S.DISPLAY_NAME like 'McAfee L%')
and not IS_PATCH)
How do I suppose to include the value of that registry key, in order to show apart from the values listed (Hostname, IP, OS, McAfee Software and Version) above the DAT version?
Thanks in advance.