Test macOS ADE (DEP) Enrolments with a Virtual Machine
Description
Testing macOS device enrolments can be very time consuming, since a device must be erased and OS reinstalled on each attempt. A Virtual Machine (VM) may be used to substantially reduce the amount of testing time. Although VMware has been used in this example, other Virtualisation software could be used, e.g Parallels.
Requirements
Obtain a serial number for a device that is registered in ABM or ASM.
Any one serial number of a device should only occur once in FileWave. Therefore, if there is an old or broken device which is registered in ABM/ASM, consider using the serial number from this device otherwise a serial number from a usable, physical device will need to be taken, meaning that physical device cannot be used within FileWave otherwise.
Mactracker may be used to show the Model Identifier of devices, since ASM/ABM only provides the Model Name
Directions
serialNumber = "[Serial Number]"
hw.model = "[Model Identifier]"
ioreg -l | grep "IOPlatformSerialNumber"
A device receives an associated DEP profile before the option to select the language appears after installing the operating system. Once in place, the device will maintain this profile across reboots. If the network is not disabled before receiving the Enrolment profile, then changes to the Enrolment profile associated or assigning a new DEP profile subsequently, will have zero impact on a fresh Enrolment; the original Enrolment settings will continue to apply.
By disabling the network before the Enrolment profile is in place and then taking the snapshot, multiple Enrolment profiles or changes may be tested with each restore of the snapshot. On each restore, the network should require enabling.
Tested on VMware Fusion 10, 11 and 12