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

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0
Hello,

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
Answered 02/17/2016 by: StockTrader
Red Belt

  • 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.
    • 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
Please log in to comment
0
If you want only the logged user you need to use a kscipt that runs as logged in user to create a text file for the CIR to read.

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
Answered 02/17/2016 by: SMal.tmcc
Red Belt

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