I am trying to find a way to have a web report also pull Windows 10 Computer Description information. We use that field to add a customized inventory barcode and would like to have it automatically pulled vice the tech adding it after the fact.
You’d need to create an Analysis to retrieve that value into a Property (it’s stored in the Registry), and then add a field in Web Reports to retrieve the property results.
if (exists wmi AND exists selects "description from Win32_OperatingSystem" of wmi AND not ((string value of selects "description from Win32_OperatingSystem" of wmi) = "")) then (string value of selects "description from Win32_OperatingSystem" of wmi) else ("Not Set")
I set it to report every 1 day as this does not change at all.
You could also just make it a managed property if you want.
I would write the relevance like this, which should be more efficient:
(it as trimmed string) whose(it != "") of string values of selects "description from Win32_OperatingSystem" of wmis
This should achieve the same thing but only query WMI once.
This appears to be equivalent using a registry read instead, which should be more efficient than WMI:
(it as string as trimmed string) whose(it != "") of values "srvcomment" of keys "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" of registries