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.
Unfortunately RES Automation Manager doesn’t give us an option to export Global Variables while exporting Building Blocks. We need to create these first before importing the building block. Don’t worry about the module parameters because those are all in the building block. As of RES Automation Manager SR2 exporting global variable is possible so no need to worry about this. Will leave this in the article for those of you who didn’t upgrade!
InstallScripts Directory to place the install script – Something like C:\Scripts (No \ after directoryname)
DOMAINUSERNAME Domain username with domain admin credentials
SAFEMODEADMINPASSWORD Admin password to configure for safe mode
Please let me know if you run into any problems with the scripts. I might be able to help you out:).