Setting LDAP connection credentials is one command: "installutil setldapinit"If you would like to automate entire configuration procedure, you can create a script that would call all required commands for you.