Computer hard drive failure when wiping using Jamf Pro

gharley
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.

2 REPLIES 2

shaquir
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 Catalina.app/Contents/Resources/startosinstall' ‑‑eraseinstall --agreetolicense --forcequitapps ‑‑newvolumename 'Macintosh HD'

Some additional info:
https://www.jamf.com/blog/reinstall-a-clean-macos-with-one-button/

https://scriptingosx.com/2018/10/eraseinstall-application/

larry_barrett
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.