/build/static/layout/Breadcrumb_cap_w.png

Mac Plist Value Return

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.


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: jknox 11 years ago
Red Belt
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)


Comments:
  • 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/ - SMal.tmcc 11 years ago
  • 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. - dugullett 11 years ago
  • :-) - SMal.tmcc 11 years ago
  • We've been using this fairly successfully as long as there is no space in the Key name. If there is, it just fails. - rbarkmei 11 years ago

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