please help me create my relevance correct. i need to monitor if ram brand will change. i have tried below relevance with no luck.
action:
regset “[HKEY_LOCAL_MACHINE\SOFTWARE\BigFix]” “RAMbrand”="{string values of selects (“Manufacturer from WIN32_physicalmemory”) of WMI}"
relevance:
q: if ((exists value “Rambrand” of key “HKEY_LOCAL_MACHINE\SOFTWARE\BigFix” of registry) AND (value “RAMbrand” of key “HKEY_LOCAL_MACHINE\SOFTWARE\BigFix” of registry as string) = string values of selects (“Manufacturer from WIN32_physicalmemory”) of WMI) then “changed” else “No Change”
Looking at the relevance the issue is it is trying to compare a single value with multiple. To resolve this you will need to use concatenation to get the multiple values on the same line.
Try this:
if (exists key “HKLM\SOFTWARE\BigFix” whose (value “RAMbrand” of it as string = concatenation of string values of selects (“Manufacturer from WIN32_physicalmemory”) of WMI) of registry) then “Changed” else “No Change”
q: (if it < 10 then “0-10” else if it >= 10 AND it < 80 then “10-80” else if it >= 80 AND it < 90 then “80-90” else if it >= 90 then “90-100” else “”) of ((100 * used amount of ram) / total amount of ram) & " percent used"