Posted on 01-21-2020 07:02 AM
Is there a way to search for a specific user in the Computer Usage Logs? When this batch of laptops was rolled out (before I got here), not all of them got a proper naming convention (Bob's Macbook Pro.) We have a bunch just named Macbook Pro (37) with no information on the user.
Over the last year and a half, we have fixed these as much as we can, but there are still about 150 that still aren't named correctly. This makes locating a laptop difficult when a student loses one.
Thank you!
Solved! Go to Solution.
Posted on 01-21-2020 08:47 AM
Do you use the Extension Attribute to add the Last Logged In User to your inventory? Should help identify who is using the computer.
Posted on 01-21-2020 07:09 AM
you could use a script to change the machine name to something you can use that unique we use the MAC address this give use a clear thing to search in for jamf pro
getMac=$(networksetup getmacaddress en0)
bareMac=$(echo ${getMac:18:17} | tr -d :)
capsMac=$(echo $bareMac | tr '[:lower:]' '[:upper:]')
sudo scutil --set LocalHostName DM$capsMac
sudo scutil --set ComputerName DM$capsMac
sudo scutil --set HostName DM$capsMac
Posted on 01-21-2020 08:47 AM
Do you use the Extension Attribute to add the Last Logged In User to your inventory? Should help identify who is using the computer.
Posted on 01-21-2020 10:27 AM
Those are both really good suggestions. We've been trying to switch to using a unique username for the Computer Name, but the MAC address is a good idea.
I've added the Extension Attribute for Last User and I'm currently trying to make that work. :)
Thank you both!
Posted on 01-21-2020 11:03 AM
You're welcome and good luck!
Posted on 01-21-2020 02:50 PM
I got it all working. Thank you again!
Posted on 01-22-2020 06:25 AM
Is their a script for this Extension Attributes?
Posted on 01-22-2020 06:49 AM
@wjc2a The "Last User" Extension Attribute is one of the ones in the built in templates in the server. When you go to Extension Attributes, you can choose "New From Template" and then search for "Last User".