Installing a Domain Controller on Windows Server 2012 R2 Core

In my previous post I showed how you can install Active Directory Domain Services on Windows Server Core and in this post I´m going to show how you can add an additional Domain Controller to your environment because best practice recommends that you have at least two of them.

To add an additional Domain Controller we need to do following:

1. Rename the server

2. Set the IP and DNS address

3. Join the server to domain

4. Install Active Directory Domain Services Server Role

5. Deploy the Domain Controller


Before you continue I recommend to read my first post.


Here are steps that we need to do

Step 1

First thing we need to do is to change the server name and after that reboot the server using Restart-Computer –Force cmdlet


Verify server name after reboot using PowerShell built-in environment variable


Step 2

Our next step is to set static IP address and we for that task we can use Net-NetIPAddress cmdlet and for DNS Set-DNSClientServerAddress cmdlet


DNS address configuration with Set-DNSClientServerAddress cmdlet


Step 3

Now we need to add the server to domain. In this example my domain name is ViaMonstra. You can use Add-Computer cmdlet to add the computer to domain. After domain join restart the server.


Step 4

After server reboot lets install Active Directory Domain Services server role


Step 5

Our last step is to invoke Domain Controller deployment with Install-ADDSDomainController cmdlet.


As you see it is really easy to deploy additional Domain Controllers with PowerShell. You can query all the Domain Controllers with Get-ADGroupMember cmdlet



Here are all the commands

By | 2014-01-21T14:18:27+00:00 January 21st, 2014|Powershell, Windows Server|2 Comments

About the Author:

Kaido Järvemets
Configuration Manager MVP


  1. Jason February 9, 2014 at 22:51 - Reply

    Thanks! GREAT writeup. I keep forgetting to join the computer to the domain before adding it as a dc.

  2. Adrian April 30, 2015 at 14:38 - Reply

    Thank you very much. Great article.

Leave A Comment