Configuring a Single Windows Server 2012 R2 Active Directory Domain Controller in a new Forest.

Pre-Windows Server 2012 and PowerShell 4.0, the primary tool/command for Active Directory Domain Controller promotion and demotion has always been the Dcpromo command. With Windows Server 2012, it’s been replaced by a suite of PowerShell cmdlets contained in the ADDSDeployment module.

In this post, I’ll talk about my experience setting up a single WS2012 R2 Active Directory Controller in the following steps:

Install the Active Directory Domain Services:

The ADDS server role needs to be installed as a prerequisite to enable the ADDSDeployment module and it’s corresponding cmdlets. This could be achieved via the Server Manager GUI or directly using PowerShell cmdlets since the GUI engine basically runs on PowerShell . The ADDomain Service role installation enables the ADDSDeployment module and it’s cmdlets as shown in the next screenshot::

Addsdeploy

Validate your environment before Active Directory installation and Test for prerequisites:

Running the Test-ADDSForestInstallation cmdlet spares me the headache of a failure during AD installation. The results gives me an indication of issues I might need to be aware of and resolve before continuing the installation process as shown in the next screenshot:

TestAddsforest02

Install Active Directory:

To start the Active Directory installation, I used the Install-ADDSForest cmdlet with the required Domainname parameter and the InstallDns parameter. You will be prompted for the SafeModeAdministratorPassword and confirmation for the install to continue:

Install-Adforest

The process will start a server reboot to complete the installation:

Install-Adforest02

After the restart, I verified that AD is fully installed with DNS fully configured.

dcdiag

dcdiag01

get-adrootdse

The Domain diagnostics test showed no errors and the Get-ADRootDSE indicates this is a Windows2012R2 domain controller running in a Windows2012R2 domain and forest functional level.

Advertisement
This entry was posted in Active Directory, Active Directory Domain Services, AD Forest, PowerShell, PowerShell 3.0, Powershell 4.0, Windows Server 2012, Windows Server 2012 R2 and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s