[Step By Step] Server Core in Windows Server 2012 R2: Creating a New Active Directory Domain Services Forest

Hello friends!! In previous posts, we saw how to install a Windows Server 2012 R2 server in Server Core Mode from scratch. This time, we will look at a Step by Step guide on how to create a new Active Directory Domain Services forest via Po

AI-assisted translation, approved by Mateo.

Hello friends!! In previous posts, we saw how to install a Windows Server 2012 R2 server in Server Core Mode from scratch. This time, we will look at a Step by Step guide on how to create a new Active Directory Domain Services forest via PowerShell. I hope it helps you!!

Objective

The objective of the following article is to detail the step-by-step process for creating a new ADDS forest in Windows Server 2012 R2 Server Core mode.

Scope

The scope of the following step-by-step guide is detailed below:
  • The activity will be carried out on Windows Server 2012 R2 Server Core
  • We will base it on Windows Server 2012 R2 PowerShell cmdlets.
  • No configurations will be made to the forest; only its creation will be carried out.

Introduction

The main characteristic of the Server Core version of Windows Server is that it has no GUI (Graphical User Interface); because of this, the management and administration of roles must be carried out from the command line. In this case, we will use the PowerShell command line to install roles in Windows Server and administer them [using the available modules]. The work plan to follow in this Step by Step guide will be the same [in concept] as the one we use for the GUI version, but we will have to perform all configurations from the command line.

Check network configurations

To create our new forest, we will begin by configuring the server's network adapter. We must do this through Sconfig (here you can see how to configure the network adapter) We must make sure to configure:
  • A static IPv4/IPv6 [IP Address, subnet mask]
  • DNS Servers X: they can be internal or external; we will not consider them important, since when promoting the server it will be necessary to change them.
Picture1

Install the ADDS role

Second, we must install the ADDS role. To do this, we will use the following PowerShell command:
  • Install-WindowsFeature ad-domain-services –IncludeManagementTools
Install-WindowsFeature cmdlet: http://technet.microsoft.com/en-us/library/jj205467.aspx Picture2

Create the New forest

Based on Microsoft's documentation on Active Directory Domain Services, when creating the forest, we will be creating the first domain in the forest [Forest root Domain]. This first domain will give our forest its name. To create the new forest, we must use the following command:
  • Install-ADDSForest -DomainName MadCorp.local -InstallDns
Install-ADDSForest cmdlet: http://technet.microsoft.com/en-us/library/hh974720.aspx Picture3 After creating the domain, we must change the DNS configuration on the network adapter: we must set the server's IPv4 address as the primary DNS. Picture4 Finally, through some PowerShell cmdlets, we can confirm that the forest and forest root domain have been created:
  • We confirm the successful creation of the "Madscorp.local" Forest through the Get-ADForest cmdlet
Picture5
  • Through PowerShell, we can see the forest root domain using the Get-ADDomain command
Picture6
  • We can also see the existing controllers, where our promoted server will appear as the only DC through the command Get-ADDomainController
Picture7 After creating the forest, it would be necessary to carry out subsequent configurations on it. These will be covered in another #Madsblog post

ADDS Administration in Server Core

Microsoft provides us with commands for administering ADDS from PowerShell in Windows Server 2012 R2: http://technet.microsoft.com/en-us/library/hh852274.aspx At this link, we can see the 76 cmdlets available to administer ADDS from PowerShell.

Thanks for reading. The learning continues in the next article.