erase-install not working on self service for Jamf (December 2023)

Tmmitchell
New Contributor

Hello can someone please send me pictures of how your erase-install script is set up inside of Jamf Pro. I can get the script to execute locally on the test machine, but when I try to add it via self service it will not execute.. I have the Package downloaded and added to a Policy as well as the script attached and the Execute command of: /Library/Management/erase-install/erase-install.sh --update --reinstall --cleanup-after-use --check-power ...

I have tried it with just the package, I have tried it with the script and the package, and the script alone and still no success. 

I have read the Jamf Pro section of the script  GitHub about 30 times and still can't find a solution trying to execute it on a computer with Sonoma 14. via the self service... the icon will show but when click nothing happens 

If you have it running Properly I would appreciate if I could get pictures because Im stumped. 

1 ACCEPTED SOLUTION

McAwesome
Valued Contributor

I've had issues lately using the --update flag, and it wasn't a big enough time saver for me to keep using it.  I dropped that flag and it generally fixed the issue.

I have since started using the official launcher script to make sure policy logging works.  The parameters I use are:

  • Parameter 4: --os 14
  • Parameter 5: --reinstall
  • Parameter 6: --rebootdelay 30
  • Parameter 7: --confirm
  • Parameter 8: --check-power
  • Parameter 9: --no-fs
  • Parameter 10: --cleanup-after-use

View solution in original post

3 REPLIES 3

McAwesome
Valued Contributor

I've had issues lately using the --update flag, and it wasn't a big enough time saver for me to keep using it.  I dropped that flag and it generally fixed the issue.

I have since started using the official launcher script to make sure policy logging works.  The parameters I use are:

  • Parameter 4: --os 14
  • Parameter 5: --reinstall
  • Parameter 6: --rebootdelay 30
  • Parameter 7: --confirm
  • Parameter 8: --check-power
  • Parameter 9: --no-fs
  • Parameter 10: --cleanup-after-use

This looks good I also have a few questions..

1. Do you have the .pkg file of the erase-install-32 attached to the policy? If so what action do you have selected for it? 

2. Do you have any other scripts running in the policy before the erase-install script, and what do you have the priorities set for in both?

3.Also does your execute command look as follows:

/Library/Management/erase-install/erase-install.sh --reinstall --cleanup-after-use --check-power

2. 

agyekum28
New Contributor III

i have the earlier version of the script,  --(OS specified) --update --reinstall --confirm