Hi Everyone. I could use some help here. I have looked all around JN (other sites as well) and I have not come across the answer.
I am currently using this EA to report Admin Accounts on a computer.
!/bin/sh
################################################################
# Extension Attribute checks to display Admin Accounts on the computer.
################################################################
AdminAccount=dscl /Local/Default -list /Users UniqueID | awk '$2 >= 500 { print $1 }' | grep -v "^_"
echo "<result> $AdminAccount </result>"
exit 0
It will report all accounts that have the local admin rights checked in the GUI. This includes mobile accounts that gain their admin rights via and AD Security group when the computer in connected to the corporate network. Can anyone assist me in modifying the script above to report "truly" local admins? In other words, only those accounts that gain their rights by manually checking the the box Allow user to administer this computer?