Question: how to setup and configure a domain controller on windows server 2012 r2?
Answer: First of all login to your Windows Server 2012 and open the Server Manager. Click on "Add Roles and Features" in your Server Manger. Once the Add Roles and Features Wizard has started up, select Next on the “Before you begin” screen. Click Active Directory Domain Services.