/build/static/layout/Breadcrumb_cap_w.png

Trouble with custom inventory rule not identifying desktop shortcut to website

Hi All-

K1000 v6.4 with Windows 7 x64 clients. Previously had deployed a custom shortcut to C:\Users\Public\Desktop so any user logged in to the system would have this shortcut to a website available to them. Works with no problems.

I'm trying to build a custom inventory rule that will identify if this shortcut file exists and then use the results to pull devices into a smart label. I've setup my CIR rule such as FileExist(C:\Users\Public\Desktop\shortcut name) but when I run an Inventory (against my own system as an example), the CIR does not identify the shortcut.

In Windows Explorer, the shortcut just appears as "Name of shortcut" (no file extension or anything). If I look at the General tab of the file, it does specify .URL as the extension but adding it to my CIR doesn't seem to make a difference.

Looking to see if anyone has had similar issues or maybe has any ideas.

Thank you all

0 Comments   [ + ] Show comments
This question is locked

Answers (2)

Posted by: flip1001 6 years ago
Black Belt
1
You have to specify the file extension such as .lnk or .url and the CIR function is FileExists not FileExist.

Comments:
  • Thanks, Flip. The FileExist(s) was a typo. The full CIR I'm using reads as

    FileExists("C:\Users\Public\Desktop\Sullivan On Comp.url")

    Still, unfortunately, not being picked up. I'm not sure if it's because I have spaces in the shortcut name (I thought the double quotes would help me on that front). - dtobias_keenan 6 years ago
Posted by: dtobias_keenan 6 years ago
Third Degree Green Belt
0
I think I answered my own question and it may have to do with a misunderstanding of custom inventory rules. After enabling debugging, I did see the rule being evaluated and returned as True. I assumed, that I would be able to go to one of my devices and verify this in the Custom Inventory Rule section but nothing was showing there.

When I looked at the CIR in the Inventory/Software module, I did see ~50 systems had checked in and inventoried the CIR properly so it may have just been me not understanding where to go to look for the rule.

Thanks everyone for the help!

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