/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


device custom inventory item for Mac

02/28/2017 730 views
hello

Im trying to write a device custom inventory item
PlistValueEquals(~/Library/Preferences/GlobalPreferences.plist, AppleLocale, en_GB)
However this is not displaying any devices although the result of a command 
defaults read ~/Library/Preferences/.GlobalPreferences.plist AppleLocale is
en_GB

Any ideas?
Thanks
0 Comments   [ + ] Show comments

Comments


All Answers

0
The ~/Library will refer to the user's Library folder. Since the KACE agent runs in the root context it probably won't return the expected result.

Answered 02/28/2017 by: chucksteel
Red Belt

0
I tried also the full path , but still the same
I was able to get this working
ShellCommandTextReturn(Defaults read ~/Library/Preferences/.GlobalPreferences.plist AppleLocale | grep en_GB)
So i have gone with this

Answered 02/28/2017 by: markc0
Blue Belt

0
I tried also the full path , but still the same
I was able to get this working
ShellCommandTextReturn(Defaults read ~/Library/Preferences/.GlobalPreferences.plist AppleLocale | grep en_GB)
So i have gone with this

Answered 02/28/2017 by: markc0
Blue Belt

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