Posted on 07-30-2018 08:01 AM
We are finally moving away from imaging,
In the US and UK, we are leveraging the startosinstall --eraseinstall --> DEP method for repurposing older laptops, we but still have Mac users in Singapore and China...two regions where DEP is not available.
We'd like to forgo having the users in Asia do a manual JSS enrollment after they run the Setup Assistant and login to their Macs, so am curious if anyone has any ideas as to how to get the macs to enroll automatically?
I thought about using Rich's article below and including a QuickAdd package, but don't know if it would work if we have the installer erase the drive.
https://derflounder.wordpress.com/2017/09/26/using-the-macos-high-sierra-os-installers-startosinstall-tool-to-install-additional-packages-as-post-upgrade-tasks/
Any ideas?
Posted on 07-30-2018 09:03 AM
It would work. I do something similar. You may run into a problem since UAMDM, you have to click "Accept" or whatever on the profiles to install them and get it to really enroll.
Posted on 07-31-2018 04:02 PM
I keep getting the following error when I try to install quickadd package with startosinstall "Error: An internal error occurred while starting the installer"
"/Applications/Install macOS High Sierra.app/Contents/Resources/startosinstall" --eraseinstall --newvolumename "Macintosh HD" --agreetolicense --installpackage "/Users/Shared/QuickAd.pkg"
It'll erase the drive and reinstall the OS just fine if I remove --installpackage "/Users/Shared/QuickAd.pkg"
Any tips or tricks to get this working...?
Posted on 07-31-2018 05:27 PM
Not 100% sure. But it’s possible the pkg isn’t the right type.
In terminal run
productbuild —package targetpkg outputpkg
I may have that command wrong so man it first
Posted on 08-01-2018 12:36 PM
you were so close, an extra dash. I had tried that and still no dice
productbuild --package QuickAdd.pkg ~/Desktop/QuickAdd.pkg
Posted on 12-19-2018 03:19 PM
I'm also puzzled by this. I had to convert our quickadd.pkg as mentioned about to flat file as it through an error at first. Then it didn't throw error but it reloaded the OS and it wasn't joined to JamF. Hmm.... Anyone solve this.