Custom Inventory Rules not running
I am looking to query the contents of %userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites on each client machine. At one point in history it has come up and successfully pulled this information from 2 computers. These 2 machines have no similarities that I can see. I want to confirm what machines that a script ran successfully on. We have a script in place to add one of our local sites to exception.sites. I have selected all Window's OS's in the custom inventory rule. I also tried to add a label for it to look at with no success. It is currently inventorying no machines. Thanks.
Rule:
ShellCommandTextReturn (cmd.exe /c type %userprofile%\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites)
Dell Kace Server: 6.3
Dell Kace Agents: 6.2.1025
Answers (2)
The problem with your rule is that the Agent is working in the LocalSystem context so it does not have a proper %userprofile%.
Kind regards,
Marco - StockTrader
Comments:
-
Understood. Do you know of a way to accomplish this task? I guess I would need a script to read the files. My ultimate goal is to generate a report of which machines this file has been updated on. - dabeava 8 years ago
-
You can run with KACE a simple batch that looks in all the C:\users\*\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites of the computer and put the content in a text file.
Then catch the content of the text file with a Custom Inventory Rule.
Something like that.
Kind regards,
Marco - StockTrader - StockTrader 8 years ago
see this as an example
http://www.itninja.com/question/retrieve-list-of-mapped-network-drives-printers-via-kace?utm_source=itn_email&utm_medium=comment_alert_answer&utm_campaign=notifications&utm_content=question_permalink