I can't seem to get the script to work. I'm very new to Jamf and scripting. I want to erase and install my school lab.
I'm on High Sierra and I have the installer in my applications folder. This is the script I am using. I set up a policy to run it to lab scope. I dragged the startosinstall file into a Terminal window.
'/Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall' ‑‑eraseinstall
--agreetolicense
I receive error message -
Executing Policy Erase and Install 3
Running script erase and install 3...
Script exit code: 127
Script result: /Library/Application Support/JAMF/tmp/erase and install 3: line 1: /Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall: No such file or directory
/Library/Application Support/JAMF/tmp/erase and install 3: line 2: --agreetolicense: command not found
Error running script: return code was 127.