The RES Automation Manager Active Directory Building Block consists of two modules. The first module will configure the server in a new domain in a new forest where the second module will add a server to a already existing domain. Remember to first install prerequisites like DNS before executing these jobs.
To automatically configure Active Directory we need to call an answer file while executing dcpromo.exe. This answer file is just a text file which I like to create dynamically so I can use this modules in a multi tenancy environment. To do this we just run some Powershell echo’s to a text file based on global variables and parameters.

