Use PowerShell to add an additional Domain Controller to an existing Windows Server 2012 Active Directory Domain

Recently, I decided to add a second domain controller to my mikefrobbins.com domain. The existing server and this new server that will become a domain controller both run the Microsoft Windows Server 2012 operating system and both were installed with the default installation type of server core (no GUI).

Even though the GUI can be turned on and off in Windows Server 2012 (unlike in Windows Server 2008 and 2008 R2), I prefer not to add the GUI unless absolutely necessary.

You’ve already loaded the base operating system, added it to the domain, and configured the server as per your organization’s standards. Log into the new server you want to add as an additional domain controller and launch PowerShell by typing “powershell.exe”. You’ll need to first add the AD-Domain-Services role to the server:

PoSH-newADForest0

The installation of this role completes and a restart is not required:

PoSH-newADForest1

Now to make this server an additional domain controller in the mikefrobbins.com domain:

add-dc1

The installation will go through several steps:

add-dc2

A restart is required when the installation is complete:

add-dc3

If you’re looking to install the first domain controller in a new Active Directory forest instead of adding an additional domain controller in an existing domain, see my blog article titled “Use PowerShell to Create a New Active Directory Forest on Windows 2012 Server Core Installation (no-GUI)“.

µ

4 Comments

  1. Alejandra Gutierrez

    Hello,

    Can you tell me how do I can configure both DNS of each DC in Powershell, I know how to do it because when I tried to do it with GUI, and I had an error, when I searched I got this and I cold resolved the problem: http://technet.microsoft.com/en-us/library/cc735720(v=ws.10).aspx. But I want to know if there is a way to do it on Powershell.

    Thank you

    Reply
  2. Chamil Dilhan

    Hi Mike,
    Im completely oblivious to powershell. These step by step information was really useful for my training.
    Thank you
    Chamil

    Reply
  3. louies

    Hi Mike,

    Thank for the tutorial. Its really useful, if anyone comes into trouble with the credentials
    just add on the last line the command below. It will ask credential for DC01 domain
    -Credential (Get-Credential)

    Reply

Leave a Reply

%d bloggers like this: