You can automate from various options. You should look at the documentation. Database enrollment and ldap enrollment are both viable solutions.
Enrolment
Automating enrolments
This discussion has been locked so you can no longer reply to it.