We have discovered a large number of Macs in our fleet that appear to no longer have the Jamf agent installed on them. This may be because users used the "jamf removeFramework" command on them. I have been working on figuring out how we can get these systems re-enrolled. For years I have used the command "sudo profiles renew -type enrollment" command to re-enroll Macs that are in Apple Business Manager. Running this command requires me to interact with the Mac to complete the enrollment process. I tested this a few days ago on my test Mac to take note of everything that happens after the profiles command is ran. We would like to do this in the background silently. We have an agent called Aternity installed on all of these Macs. We know they're in use and active. They're just not connecting to Jamf Pro. Aternity can send scripts to the Mac, and my thought was that we could run the profiles renew command in a script pushed out to these Macs. Are there any options that can be used with this command to make it silent? I did look at the man page for profiles. I saw a lot of options that will probably be useful in the future but I saw nothing that would re-enroll a Mac silently. Are there any ways to do this without alerting the user? I would love some suggestions.
Solved
Can we silently re-enroll Macs?
Best answer by talkingmoose
If you enrolled the devices using Automated Device Enrollment and disabled Allow MDM Profile Removal, then the end user cannot completely remove management, which is to your advantage.
Jamf Pro 10.36.0 introduced a new API endpoint /v1/jamf-management-framework/redeploy/{id} to self-heal enrollments.
https://www.modtitan.com/2022/02/jamf-binary-self-heal-with-jamf-api.html
You can test with it directly in the API documentation without needing to script.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
