Wiping, reinstalling and enrolling

YLIL
New Contributor II

Hi everyone

Im a total noob to JamF. I recently joined a company and they have about 10 macs which are out of use.

They charged me with writing up a protocol for wiping, reinstalling and re enrolling the macs to JamF.

The company currently uses Jamf but Iv not actually used it myself.

Iv done a bit of research on the subject. I found this video detailing a process for Catalina. However I would like this process to run and be completed through jamf and not need the selfservice part.
Could anyone pls tell me the steps to follow for this process? It would be an amazing help!!
Thanks in advance

1 ACCEPTED SOLUTION

There's no package.  The script will download the installer.  You copy the script from the repo, and paste it as a new script in JAMF.  Then create a Self Service policy and use the parameters specified in section 2 of this part of the Wiki.  

https://github.com/grahampugh/erase-install/wiki/8.-Use-in-Jamf-Pro

For example, I have a policy that will download the latest production version of macOS, overwrite any existing installer, then format the hard drive and re-install the OS.  My parameters are:

Parameter 4 --force-curl

Parameter 5 --erase

Parameter 6 --overwrite

View solution in original post

7 REPLIES 7

daniel_behan
Contributor III

This script is very helpful.  There's a detailed Wiki on how to use it with JAMF.

https://github.com/grahampugh/erase-install

YLIL
New Contributor II

Thanks for this Daniel. Looks pretty detailed and powerful.

2 questions:

1) I read through most of the wiki. But being a noob im still not clear where all this goes in jamf pro? At what stage does this happen? I would create a group of macs with the scope and then what? Add this code as a package? How would i go about sending this to the machines? If you could help me with these baby steps it would be greatly appreciated!!

2) Is there a better option for me? Maybe the wipe and reinstall option is going to far? Is there a way to just delete the user data from the machine? I think each mac has an admin user account aswell as the employee account. Does this help at all?

If you could answer both questions that would be amazing!!!

Thanks so much

There's no package.  The script will download the installer.  You copy the script from the repo, and paste it as a new script in JAMF.  Then create a Self Service policy and use the parameters specified in section 2 of this part of the Wiki.  

https://github.com/grahampugh/erase-install/wiki/8.-Use-in-Jamf-Pro

For example, I have a policy that will download the latest production version of macOS, overwrite any existing installer, then format the hard drive and re-install the OS.  My parameters are:

Parameter 4 --force-curl

Parameter 5 --erase

Parameter 6 --overwrite

erase_install.png

YLIL
New Contributor II

Thanks for taking the time to help me out. 

Really appreciate it.
Will experiment with this.

One of the best tools around!

jcarr
Release Candidate Programs Tester

It sounds like you are trying to do this: Reinstall macOS Monterey with one button ...but without the button.

If you opt to use the 'recurring check in' trigger rather than the Self Service option, there will be no user interaction.  This can be dangerous however, so you'll want to double and triple check the scope to make sure you don't erase a user's device.

 

Honestly, for such a small subset of devices, I'd probably opt to make a USB installer and wipe them manually.

 

The good news is that once you get these devices upgraded to macOS Monterey, you can just use the Erase all content and settings option.