Skip to main content
Question

I need to create a script that shows the last login in a windows on the finder

  • Apr 26, 2024 3:55 PM UTC
  • 3 replies
  • 82 views

Ferran_Sogas
Forum|alt.badge.img+2

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?

3 replies

Forum|alt.badge.img+9
  • Valued Contributor
  • Apr 27, 2024 4:52 AM UTC

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.


RaxiaDK
Forum|alt.badge.img+10
  • Valued Contributor
  • Apr 27, 2024 5:52 AM UTC

AJPinto
Forum|alt.badge.img+26
  • Legendary Contributor
  • Apr 29, 2024 1:45 PM UTC

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.