Posted on 02-07-2023 10:57 AM
Does anyone have a script for macOS that functions similar to Jamf Reset for iOS? I'd like to be able to run said script on my MBAs to wipe them, and make them unmanaged in Jamf Pro.
Posted on 02-07-2023 11:07 AM
Would it be better to just send a wipe from the management tab of the mac in question and unassign from a prestage and/or unassign from ABM/ASM so it won't re-enroll?
02-07-2023 11:08 AM - edited 02-07-2023 11:09 AM
try this thread as a start maybe? https://community.jamf.com/t5/jamf-pro/unmanaging-macos-devices-through-api/m-p/282745#M254477
Posted on 02-07-2023 11:32 AM
@jamf-42 The thread @jamf-42 references is a good start, but did you want to delete the Mac from Jamf Pro or just un-manage it? If you're expecting to re-enroll the device you'd probably want to delete it instead of unmanaging it.
For the erase part, you should take a look at the erase-install script which has the option to call your delete/unmanage script right before erasing the Mac.