What's the best workflow for wiping a large number of MacBooks using JAMF?
Is the wipe code an absolute requirement or is there a way around that?
We would be selling these on the secondary market after the wipe if that matters.
Hey @johnnyg08 , If you are on High Sierra or Mojave, you are likely on APFS. Mojave Requires APFS. If I remember correctly you stated earlier that you are on Sierra. This is what a workflow would look like for you then:
1) Policy that copies HS or Mojave installer to computer
2) Policy to run OS upgrade (/path/To/OS/Installer.app/Contents/Resources/startosinstall --nointeraction --converttoapfs YES 3) Policy to Copy Mojave Installer back to the computer
4) Policy to run /path/To/OS/Installer.app/Contents/Resources/startosinstall --nointeraction --eraseinstall
Here is a link to a HS (10.13.6) installer I had. The link will expire at the end of today.
In order to upgrade our aging MacBook Air fleet, I created Installer USB drives. Booted to them, ran the disk utility first and erased the drive to bring it up to APFS. Then Install Mojave. I opt to delete the record from my Jamfcloud and enroll the system fresh which kicks off the mandatory app downloads.
Apple has told me booting from Installer USB wouldn't be allowed on the new T2 chips. And in the next breath indicated there was already a workaround to their new security measures.
@johnnyg08 , use this as a template.. I've made ALOT of adjustments on the script, but the link itself will give you what you want. The script shows you what parameters are needed for the erase and install.. Currently used this guideline for our wipe computer/reinstall.. And upgrade process..
You're basically caching the OS install in a separate(master) policy, and placing the script in SS to run the trigger and do whatever else you need.. Like I said, I made some major changes to this script for preference purposes, however, this by itself will do the job