/build/static/layout/Breadcrumb_cap_w.png

Custom Inventory Rule - checking file version in 2 paths

I am having an issue trying to confirm the file version when it could be in one of two paths.  I am trying to find the confirm the Lync.exe file and it could be in either the PF or PFx86 folder.  In the rule below either works by itself, but when I put in the OR statement it fails when checking either the PF or PFx86 folder paths.

FileVersionEquals(C:\Program Files (x86)\Microsoft Office\Office15\lync.exe, 15.0.4711.1002) or
FileVersionEquals(C:\Program Files\Microsoft Office\Office15\lync.exe, 15.0.4711.1002)

Is there a special bracketing or anything I need to do?


0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
Posted by: jknox 9 years ago
Red Belt
1

Top Answer

The OR should be capitalized and both arguments should be on the same line.  Don't press Enter/Return.  Past that, it should work.

To troubleshoot, you can see what the custom inventory rule returns most of the time by running "kdeploy -custominventory" in the c:\program files (x86)\dell\kace directory.


Posted by: JordanNolan 9 years ago
10th Degree Black Belt
0
I will give that a try. I know I had lower case OR and I did have a new line

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ