I’m trying to return the data inside the UninstallString value for Symantec Antivirus. I don’t know what I’m doing wrong here, it seems so straigt forward.
(values “DisplayName” of it, values “UninstallString” of it) of keys whose ((it contains “Symantec Antivirus”) of (value “DisplayName” of it as string as lowercase)) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry
All 64 computers come back with . Any help would be appreciated.
On your DisplayName check, you have “as lowercase” on one side, but not the other. This should work:
(values "DisplayName" of it, values "UninstallString" of it) of keys whose ( (value "DisplayName" of it as string as lowercase) contains "Symantec Antivirus" as lowercase) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" of registry