We have some users who have long since received a new Mac but for what ever reason they won't return the old Mac. I see in Jamf Pro that they are still using these old Macs and the new ones. We could send a remote lock command to the old Macs but I think that would complicate matters with our remote users. Instead, I want to use Swift Dialog to launch a full screen alert to the users that they need to return the old Mac. The only option that will be provided will be to shut the Mac down. I will include a 60 second timer. When it runs out, the Mac will shut down. I want to use a launch daemon to launch a script that I will install locally on these old Macs. I'm having trouble getting the script to launch using the launch daemon. The script does launch immediately after the launch daemon gets installed and loaded, but it does not launch when the computer is restarted/shut down and then started up again. I see in the error log an entry that says "id: : no such user". It appears that the script is being launched as a user that doesn't exist. I added the user key in the launch daemon to run as root. This has had no effect. I have used launch daemons to do a lot of things at start up in the past but launching a script eludes me. How do I make this happen? The launch daemon does launch the script right after my Jamf policy installs it. It's just not launching the script at the time I need it to. I could have the launch daemon run a Jamf policy that would show the Swift Dialog alert, but I want this to work even if the Mac is offline.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.