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:
0 Comments   [ + ] Show Comments


Please log in to comment



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


Answered 08/24/2012 by: jknox
Red Belt

  • did you see this one

  • 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">

    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
Answer this question or Comment on this question for clarity