OsinstallLogfile="/var/log/startosinstall.log"Įval /usr/bin/nohup ""$OSInstaller/Contents/Resources/startosinstall"" "$eraseopt" -agreetolicense -nointeraction -pidtosignal "$jamfHelperPID" > "$osinstallLogfile" &Įval /usr/bin/nohup ""$OSInstaller/Contents/Resources/startosinstall"" "$eraseopt" -applicationpath ""$OSInstaller"" -agreetolicense -nointeraction -pidtosignal "$jamfHelperPID" > "$osinstallLogfile" & bin/echo "Script is configured for Erase and Install of macOS." OsMajor=$( /usr/bin/sw_vers -productVersion | /usr/bin/awk -F. # Outputting a Dotted Line for Reporting Purposes bin/echo Ending Script '"'$ScriptName'"' # Outputting a Blank Line for Reporting Purposes ![]() # SCRIPT CONTENTS - DO NOT MODIFY BELOW THIS LINE #Requires macOS Installer 10.13.4 or later #Erase & Install macOS (Factory Defaults) ![]() #Example: /Applications/Install macOS High Sierra.app ScriptName="ZZ 21 - Management - Upgrade Operating System" I have Multiple Policies that call it that just parse different values to the 2 Variables depending on the OS I want and if we want an upgrade or a clean build. This is the script I wrote to do this, not had it fail yet, but cant be 100% if i have tested it in the specific set of circumstances you have, but I am fairly sure i did.
0 Comments
Leave a Reply. |