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):
- Shut down that Mac - hold the power button until shutdown
- Power on the Mac - single press the power button
- Immediately hold the following keys: OPTION-COMMAND-P-R
- Wait about 20 seconds / until the Mac reboots
- PRAM should be reset and JAMF enroll should work