Posted on 12-19-2012 12:39 PM
Is there a way to create a smart group based on if the user has Automatic Proxy Configuration set?
Solved! Go to Solution.
Posted on 12-20-2012 06:39 AM
I just tested this as an extension attribute:
#!/bin/sh
proxystatus=$(cat /Library/Preferences/SystemConfiguration/preferences.plist | grep -A 1 Proxy | grep -o 1)
echo "<result>$proxystatus</result>"
If you make a Smart Group based on proxystatus is 1, it should do what you're needing.
Posted on 12-19-2012 02:16 PM
you'd first need to create an extension attribute that returns the status of that proxy setting. then, you could create your smart group based on the extension attribute.
Posted on 12-20-2012 06:39 AM
I just tested this as an extension attribute:
#!/bin/sh
proxystatus=$(cat /Library/Preferences/SystemConfiguration/preferences.plist | grep -A 1 Proxy | grep -o 1)
echo "<result>$proxystatus</result>"
If you make a Smart Group based on proxystatus is 1, it should do what you're needing.
Posted on 12-20-2012 12:34 PM
Thanks!
Posted on 03-05-2013 12:48 PM
I can't get this to work on mountain lion, any recommendation?