Currently trying to use a script (preferably shell) to setup the firmware password on a fresh OSX install. I obviously found this:
http://osxdaily.com/2014/01/06/set-firmware-password-mac/
which would work during a manual install, but we would like to automate this as much as possible. I can't seem to find any documentation on writing a script to setup a (dynamic) firmware password.
My question is:
Is it possible to use a script or program to setup a dynamic firmware password on OSX 10.8/10.9? If so, do you know how? Do you know of any documentation?
Best Answer
If you mount the hidden "Recovery HD" partition in Terminal:
and then again mount the "BaseSystem.dmg" by double clicking it:
then you should be able to use the
setregproptool
, located inside "Firmware Password Utility.app":To get to the folder containing
setregproptool
right-click (or Control click) "Firmware Password Utility.app", select "Show Package Contents" and navigate to Contents/Resources.Alternatively to the description in this link:
Set a firmware password from the command line - (see post from "Sep 13, '11 05:04:00AM ")
you can copy the "Firmware Password Utility.app" to a more acceptable location (for example on your local drive) and then use it from there.
These are the options of
setregproptool
: