AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Clean wipe mac os high sierra r11/23/2023 ![]() The script is now available as a GitHub repository. I have written a script that can be deployed to a client that you wish to wipe, which will, without any required interaction, download and run installinstallmacos.py, download the Install macOS High Sierra.app and place it in a sparseimage, mount the sparseimage and run the startosinstall -eraseinstall which creates a temporary new volume on which to place the installer, reboots the Mac and proceeds to install the vanilla image. In a DEP environment, nothing more will be required to get the device ready for the next user. With Install macOS High Sierra.app on the client, the startosinstall -eraseinstall command can be run in order to set off the rebuild of the device. Using this command means that you don’t need to host the Install macOS High Sierra.app on your management system, you can just run this when required on the device itself. $ yes 1 | sudo python installinstallmacos.py If you know in advance which value you want (in tests, it does consistently provide the list in the same order), you can supply the required value in a shell script with the following syntax, which will make the script proceed without interaction: By default the Install macOS High Sierra.app is saved into a sparse disk image. At the time this post was written, option 1 gives you the latest official 10.13.4 build. ![]() It is not quite non-interactive, because you have to choose which version of the app to download, but this can be circumvented - see below.Īs detailed in another blog post by Rich Trouton, all that is required to obtain the Install macOS High Sierra.app in a disk image is the following command, which requires root privileges:ġ 091-76233 10.13.4 17E199 Install macOS High SierraĢ 091-62779 10.13.3 17D2047 Install macOS High Sierraģ 091-71284 10.13.4 17E160g Install macOS High Sierra BetaĪt this point you select 1, 2 or 3, and the download proceeds. Greg Neagle published a script named installinstallmacos.py which makes obtaining Install macOS High Sierra.app even simpler than via the Mac App Store. This is of course done normally via the Mac App Store. All you need to do is ensure the latest Install macOS High Sierra.app is available on the device. Jamf Pro), or package the command up as a payload-free package to run in Munki. Since this command requires no interaction, it is easy to run this as a command on your management tool (e.g. You cannot specify a volume with the -volume flag in combination with the -eraseinstall flag, since it is implied that the command will be run on the volume to be erased. It is also only present in versions of the Install macOS High Sierra.app that install macOS 10.13.4 or above. The -eraseinstall flag only works on APFS volumes, and only works on devices that already have macOS 10.13.4 installed. It may just be that we get a wrapper for the startosinstall mechanism perhaps a new check-box in the GUI of Install macOS High Sierra.app that says “Erase my Boot Drive and reinstall macOS High Sierra”. Many think that will come in the future, but I’m not so sure it would make sense for Apple to provide this. It’s as near as you can get to “Erase All Contents And Settings” without some sort of built-in special APFS-snapshot-plus-software-updates mechanism. eraseinstall -agreetolicense -nointeraction Using the new flag, the following command erases the system disk in situ, without need to boot from a network drive, or Recovery Partition, or connect to another computer using Target Disk Mode: ![]() You can use the -installpackage flag to specify additional packages to apply after installing macOS. The startosinstall command inside the macOS Installer app at Contents/Resources/startosinstall lets you erase your boot volume and install macOS to it using the new -eraseinstall flag. In the Apple Knowledge Base article Prepare your institution for macOS High Sierra 10.13.4, Apple revealed a new flag for the startosinstall command, the -eraseinstall flag: The -nointeraction flag is undocumented, as described in Rich Trouton’s post, and allows the command to be run without interaction, meaning it can be scripted. agreetolicense -nointeraction -volume /Volumes/External\ Macintosh\ HD applicationpath /Applications/Install\ macOS\ High\ Sierra.app \ Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/startosinstall \
0 Comments
Read More
Leave a Reply. |