Skip to main content
Question

Extension Attribute Script

  • September 9, 2026
  • 1 reply
  • 28 views

Forum|alt.badge.img+4

I am trying to create a EA to report the status of the the following key in the Clients.plist.  This is what I have so far but it is not reporting properly.  Any help is appreciated.  TY

 

#!/bin/bash

ABSlocationServices=$(sudo defaults read /var/db/locationd/clients.plist 2C4E4FD5-F029-XXXX-XXXX-XXXXXXXXXXXX:icom.absolute.ctesservice.ase:Authorized)

if [[ "$ABSlocationServices" == "True" ]]; then

    echo "<result>Enabled</result>"
else
    echo "<result>Disabled</result>"
fi

1 reply

agungsujiwo
Forum|alt.badge.img+10
  • Valued Contributor
  • September 10, 2026

Have you tried running this script in Terminal
sudo defaults read /var/db/locationd/clients.plist 2C4E4FD5-F029-XXXX-XXXX-XXXXXXXXXXXX:icom.absolute.ctesservice.ase:Authorized

If so, what result did you get.