/build/static/layout/Breadcrumb_cap_w.png

device custom inventory item for Mac

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

Answers (3)

Posted by: chucksteel 7 years ago
Red Belt
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.

Posted by: markc0 7 years ago
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

Posted by: markc0 7 years ago
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

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