If you get the following while booting a fresh mac and seeing the "An error occurred while obtaining automatic configuration settings."

Solution (reset the mac PRAM):

  1. Shut down that Mac - hold the power button until shutdown
  2. Power on the Mac -  single press the power button
  3. Immediately hold the following keys: OPTION-COMMAND-P-R
  4. Wait about 20 seconds / until the Mac reboots
  5. PRAM should be reset and JAMF enroll should work