RES Automation Manager Building Block – Create and configure Active Directory domains

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)
DOMAINFQDN Domain.local
DOMAINNETBIOS Domain
DOMAINUSERNAME Domain username with domain admin credentials
DOMAINUSERNAMEPASSWORD
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:).

Create Active Directory domain

Tagged , , . Bookmark the permalink.

About Barry Schiffer

Barry is an IT Architect with 15 years of IT experience. He has gained both a broad and deep knowledge in the sphere of IT. Throughout the years, Barry has developed into a specialist in the field of Microsoft Windows, Server Based Computing, desktop and server virtualisation.Barry is co-founder and member of the Board of the Dutch Citrix User Group.Barry is awarded with the Citrix Technology Professional award in 2015 and received the RES Software Valued Professional award in 2012.

2 Responses to RES Automation Manager Building Block – Create and configure Active Directory domains

  1. Rob says:

    Hi Barry,

    Je schrijft “Unfortunately RES Automation Manager doesn’t give us an option to export Global Variables while exporting Building Blocks”

    Global variables worden echter wel degelijk meegenomen bij het aanmaken van buildingblock.

    (je kunt global variables wel niet selecteren bij het selecteren van items voor buildingblocks).

    Grtn,
    Rob

Leave a Reply