Posted on 04-26-2024 08:55 AM
I have a script that save in a text file the last logins, but I need to show the text file content in a popup window on the finder, with an OK button to close it.
Any idea?
Posted on 04-26-2024 09:52 PM
You can use the last command in Terminal to list the last sessions of specific users. As for showing the information in the Finder, you can use Jamf Helper to display the list to users.
Posted on 04-26-2024 10:52 PM
I use this EA to get lasted logged in user
https://github.com/and992/Jamf-EA/blob/main/Last%20Logged-In%20Use.sh
Posted on 04-29-2024 06:45 AM
I would probably use Jamf Helper, calling the script with a Launch Agent to display the info you want with the action buttons you desire. Assuming you are wanting the user to see this which is seems like you are wanting.