/bundles/itninjaweb/img/Breadcrumb_cap_w.png

Has anyone successfully used PlistValueReturn in Kace? I checked the admin guide, and other posts and it doesn't seem to be documented very much. I'm currently using PlistValueReturn(/Library/Preferences/department.plist, KEY, TEXT). I think my problem lies in the "KEY" field. I've created a department.plist file to run a custom inventory so that I can use this for my reporting. It works fine in Windows. Unfortunately my Mac knowledge is lacking.

Also has anyone used RegistryValueReturn(HKEY_LOCAL_MACHINE\SYSTEM\Department, Dept, TEXT) OR PlistValueReturn(/Library/Preferences/department.plist, KEY, TEXT) in a custom inventory field? I was going to test once I got the Plist working, but thought I would just add it to this question.

Answer Summary:
Cancel
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Answer this question or Comment on this question for clarity

Answers

2

I don't have that particular plist, but for Apple Remote Desktop, it would look something like this:

PlistValueReturn(/Library/Preferences/com.apple.RemoteDesktop.plist,Text1,TEXT)

Answered 08/24/2012 by: jknox
Red Belt

  • did you see this one
    http://trn-kickoff.kace.com/help/doc/Administration/wwhelp/wwhimpl/common/html/wwhelp.htm#href=CustomInventoryID.18.5.html&single=true

    http://www.wallcity.org/category/kbox/
    http://www.wallcity.org/2011/02/kbox-integrate-apple-remote-desktop/comment-page-1/
  • Thank you. I was just making sure my syntax was correct. I also had some issues with the layout of my plist file. I ended up using this for my plist:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Department</key>
    <string>1000</string>
    </dict>
    </plist>

    Custom Inventory:
    PlistValueReturn(/Library/Preferences/department-info.plist, Department, TEXT)

    Using the OR in my custom inventory only returned the value for my PCs and not my Macs.
  • :-)
  • We've been using this fairly successfully as long as there is no space in the Key name. If there is, it just fails.
Please log in to comment