/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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

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.
Answer Summary:
Cancel
5 Comments   [ - ] Hide Comments

Comments

  • What do you expect it to return ?
    • True. The software is installed, and those keys/values/files exist if you look manually.
  • What are you expecting to validate here?

    The syntax looks OK, How do you know is not working?
    • I updated the question to reflect what I expect and why I know it's not working.
  • All the queries are BOOLEAN (yes or no), so the result is only a count in the software item (for how many devices this is true) and you can check it in the software item directly (or a report querying this item)
    This will trigger no entry in the Custom Inventory section.
  • Try using HKLM instead of the full Hkey_local etc
    • Mmmmmm , he may want to check this as well

      https://support.quest.com/kace-systems-management-appliance/kb/118892/scripts-or-custom-inventory-rules-not-running-as-expected-on-x64-64-bit-clients
  • I've had an open ticket for a few months now, as I have some CI rules that are just not populating the inventory of some systems. Hopefully I'll get it resolved, and I'll report back here of any resolution.
Please log in to comment

Answer Chosen by the Author


Answers

1
@channeler had it right. Following the instructions at this link resolved my problem immediately:
https://support.quest.com/kace-systems-management-appliance/kb/118892/scripts-or-custom-inventory-rules-not-running-as-expected-on-x64-64-bit-clients
Answered 06/12/2018 by: pbrandvold
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Answers

Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share