How to Install and Configure Active Directory in Windows 2019 (Part 2)

CHUONG K. NGUYEN – BSc., MCSEx2, MCSAx2, MCP, MCTS, MCITP, CCNA

In this part of the lab, I will guide you through the following:

1/ Configure basic settings for the Server

2/ Install and configure Active Directory.

The above will be done in PowerShell. So launch Powershell as Administrator.

First, Rename the server to SRV2K19. Enter commands:

Rename-computer “SRV2K19″

Restart-computer

 Set the time zone:

Tzutil /g (this will show the current time zone)

Tzutil /s “Eastern Standard Time” (set the time zone to EST) (Please use your time zone as appropriate. Use command tzutil /l to show all available zones).


Make sure that the time on the server clock is correct. If not, use the Set-Date to set the time.


Now we shall change the IP address of the server to be static. Use command netsh to check for the Interface name. Note that the interface name in my case is Ethernet0.


Now change the IP address to 192.168.1.49, subnet mask is 255.255.255.0, and default gateway is 192.168.1.1


Now we will set the DNS server IP address for our server.

Netsh interface ip add dns “Ethernet0″ 192.168.1.49 (set the DNS server to be this server itself). Note that the output says that DNS server is incorrect. That’s OK because at this point, our server is not itself a DNS server. We will configure this box to be a DNS server later. Also add a second DNS server IP to be 8.8.8.8.


 Install AD-Domain Services and tools:

Install-WindowsFeature AD-Domain-Services –IncludeManagementTools

Look for Success status


Import-module ADDSDeployment

Install-ADDSForest –DomainName “Dalaris.Local” –DomainMode Win2012R2 –ForestMode Win2012R2 –InstallDNS –force

When done, the server will restart automatically. Just wait for it to boot up and login.


Since the server now is an Active Directory server, it might take a longer time to show the home screen as it needs to apply computer settings, group policy client, etc… This is absolutely fine. If you cannot wait, please go out and take some fresh air and come back shortly.

Click Start, Administrative Tools to verify the installation of Active Directory.


Also, launch dnsmgmt.msc to verify that DNS server has been installed successfully.


Congratulations, you have successfully configured your server 2019 to be an Active Directory Domain Controller. We will be doing other advanced labs with this server in the next few labs.