Hello There,
I am trying to get usernames and Full Names of Mac users within our environment that have Admin Access to their computer. i have a one line script that gets a username name but I need that result to be exported to a file including name of the computer.
I really appreciate if anyone can help me about this.
The script that right now i have is:
dscl . -read /Groups/admin GroupMembership
I know above script doesn't get the computer name but i am hoping someone out there can let me know how I can include that to the script too.
Thank you in advance.