This script is very helpful. There's a detailed Wiki on how to use it with JAMF.
https://github.com/grahampugh/erase-install
This script is very helpful. There's a detailed Wiki on how to use it with JAMF.
https://github.com/grahampugh/erase-install
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
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.
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
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

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
Thanks for taking the time to help me out.
Really appreciate it.
Will experiment with this.
This script is very helpful. There's a detailed Wiki on how to use it with JAMF.
https://github.com/grahampugh/erase-install
One of the best tools around!