Computer hard drive failure when wiping using Jamf Pro

New Contributor

This has happened 3 times already on different computers. When I send the "Wipe Computer" command, it asks for a 6 digit code which I put into the device to be wiped, but then the hard drive fails and I have to reinstall the OS manually.


Contributor III

The Wipe Machine command erases all data on the machine.

If you'd like to wipe the data and have a fresh OS, you should utilize the startosinstall ‑‑eraseinstall command that comes bundled in macOS installers.

Simplified workflow:

Deploy macOS installer to machine.

Run this command:

 '/Applications/Install macOS' ‑‑eraseinstall --agreetolicense --forcequitapps ‑‑newvolumename 'Macintosh HD'

Some additional info:

Valued Contributor

I wipe mine using a bootable USB, wipe via Disk Utility and then complete the Catalina installer.

starttoinstall is great for most wipe/installs.