Custom Inventory Rule doesn't seem to be working
Do I have a glaringly obvious syntax error here? I'm not sure why this isn't working. Any help would be greatly appreciated.
FileVersionGreaterThan(C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe,16) AND RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration, SharedComputerLicensing,1) AND RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration, Platform,x86)
EDIT: Here's what is showing up in the KAgent.txt file in the logs:
[2018-05-31.11:09:00][KDeploy:CDeployController::Execu] rule ID [55592] : issuing rule [FileVersionGreaterThan(C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe, 16) AND
RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration, SharedComputerLicensing, 1) AND
RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration, Platform, x86);]
[2018-05-31.11:09:00][KDeploy:CDeployController::Execu] rule [55592] statement result: "", FALSE
[2018-05-31.11:09:00][KDeploy:CDeployController::Execu] rule ID [55592] : issuing rule [FileVersionGreaterThan(C:\Program Files\Common Files\Microsoft Shared\ClickToRun\OfficeClickToRun.exe, 16) AND
RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration, SharedComputerLicensing, 1) AND
RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration, Platform, x86);]
[2018-05-31.11:09:00][KDeploy:CDeployController::Execu] rule [55592] statement result: "", FALSE
EDIT 2: I expect this custom inventory rule to return "true", as in, "This
software is installed" but it is not returning true. I'm using this in a managed installation, so once the software is installed it should show up in these three places. I have checked each rule manually and confirmed that each one evaluates to true, and I have even used each one individually instead of all three together, and they still don't work.
5 Comments
[ + ] Show comments
Answers (1)
Answer Summary:
Please log in to answer
Posted by:
pbrandvold
6 years ago
The syntax looks OK, How do you know is not working? - Channeler 6 years ago
This will trigger no entry in the Custom Inventory section. - Nico_K 6 years ago
https://support.quest.com/kace-systems-management-appliance/kb/118892/scripts-or-custom-inventory-rules-not-running-as-expected-on-x64-64-bit-clients - Channeler 6 years ago