2022 words
10 minutes

Install Active Directory Domain Services on Windows Server 2019 Server Core

Cover image for Install Active Directory Domain Services on Windows Server 2019 Server Core

This article is for those looking for a detailed and straightforward guide on installing Active Directory Domain Services on Windows Server 2019 Server Core.

IMPORTANT

In this guide, we will consider the case when you already have a server with the Windows Server 2019 Server Core operating system installed on it.

For details on installing Windows Server 2019, read my guide: Install Windows Server 2019.

NOTE

To learn how to install Active Directory Domain Services on Windows Server 2019, read: Install Active Directory Domain Services on Windows Server 2019.

CAUTION

Before installing the Active Directory Domain Services role, make sure to assign the server a proper name according to your organization’s standards. Then, configure a static IP address, subnet mask, gateway, and DNS server address.

We go into the system under an account with administrator rights and start Windows PowerShell using the command:

Terminal window
powershell

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 1

I highly recommend that you think ahead about the name of the servers in your organization.

NOTE

This tutorial will use “heyvaldemar-server-1” as the new server name.

We give the server a new name, and then reboot it for the changes to take effect using the command:

Terminal window
Rename-Computer -NewName heyvaldemar-server-1 -Restart

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 2

Since the selected server name contains more than 15 characters, the system notifies that the NetBIOS name for the server will be truncated to 15 characters.

Press the “y” button, then “Enter”.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 3

After restarting the server, log in again under an account with administrator rights and start Windows PowerShell using the command:

Terminal window
powershell

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 4

Now you need to assign a static IP address, subnet mask, gateway, and DNS server address to the server.

To configure a network interface, you need to find out its index using the command:

Terminal window
Get-NetIPAddress

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 5

In this case, the network interface is indexed “4”.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 6

NOTE

In this guide, the server will be assigned an IP address of 192.168.1.10, a subnet mask of 255.255.255.0 (24), and a gateway of 192.168.1.1.

NOTE

You must understand in advance how your network works and know which IP addresses are available.

We assign the server an IP address, mask, and gateway, specifying the previously obtained index of the network interface, using the command:

Terminal window
New-NetIPAddress -InterfaceIndex 4 -IPAddress 192.168.1.10 -PrefixLength 24 -DefaultGateway 192.168.1.1

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 7

As the DNS server, you must specify the IP address of the current server, since it will have the DNS Server role, which is installed with the Active Directory Domain Services role.

We register the IP address of the DNS server using the command:

Terminal window
Set-DnsClientServerAddress -InterfaceIndex 4 -ServerAddresses 192.168.1.10

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 8

Check that the server is assigned the correct IP address, subnet mask, gateway, and DNS server address using the command:

Terminal window
ipconfig /all

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 9

The server has been assigned the correct IP address, subnet mask, gateway, and DNS server address.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 10

Now let’s connect to the server from a personal computer using Windows PowerShell remote management tools.

NOTE

In this guide, Windows 10 is used as the operating system on a personal computer. For installation instructions, refer to Install Windows 10.

NOTE

To enable Windows PowerShell Remote Management, the user must have local administrator rights on their computer.

On the keyboard, press the key combination “Win” and “x”, then select “Windows PowerShell (Admin)” in the menu that opens.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 11

To connect to the server from a personal computer, you need to change the network category from “Public” to “Private”. To do this, you need to find out the index of the network interface using the command:

Terminal window
Get-NetConnectionProfile

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 12

In this case, the network interface is indexed “6”.

Let’s change the network category from “Public” to “Private” by specifying the previously obtained index of the network interface using the command:

Terminal window
Set-NetConnectionProfile -InterfaceIndex 6 -NetworkCategory Private

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 13

Now let’s enable the tools for remote administration using the command:

Terminal window
Enable-PSRemoting -force

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 14

To trust any computer on the network to make a remote connection, run the command:

Terminal window
Set-Item WSMan:\localhost\Client\TrustedHosts -Value *

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 15

At the next step, the system will notify that the entered command will make changes to the list of trusted hosts.

Press the “y” button, then “Enter”.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 16

NOTE

In this guide, the server is assigned the IP address 192.168.1.10 and the name heyvaldemar-server-1, and uses the Administrator account to manage the operating system on the server.

We connect to the server using the command:

Terminal window
Enter-PSSession -ComputerName 192.168.1.10 -Credential heyvaldemar-server-1\Administrator

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 17

Specify the password for an account with administrator rights and click on the “OK” button.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 18

The connection to the server has been established.

You are now ready to install the Active Directory Domain Services role.

Terminal window
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 19

The installation of the selected role and the components required for it has begun.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 20

In order to increase the role of your server to the level of a domain controller, run the command:

Terminal window
Install-ADDSForest -DomainName "heyvaldemar.net" -CreateDnsDelegation:$false -DatabasePath "C:\Windows\NTDS" -DomainMode "7" -DomainNetbiosName "HEYVALDEMAR" -ForestMode "7" -InstallDns:$true -LogPath "C:\Windows\NTDS" -NoRebootOnCompletion:$True -SysvolPath "C:\Windows\SYSVOL" -Force:$true

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 21

Specify the password for DSRM (Directory Service Restore Mode) and press the “Enter” button.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 22

Specify the previously entered password again and press the “Enter” button.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 23

The process of promoting the server to a domain controller has begun.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 24

Server promotion to a domain controller is complete.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 25

We return to the server and reload it using the command:

Terminal window
shutdown -r

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 26

Before the server starts to reboot, you will see a warning.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 27

We will now reconnect to the server from our personal computer using the Windows PowerShell remote management tools to confirm the successful installation of the services.

NOTE

In this manual, the server is assigned the IP address 192.168.1.10, in addition, the server is a domain controller heyvaldemar.net, and the Administrator account is used to manage the operating system on the server.

We connect to the server using the command:

Terminal window
Enter-PSSession -ComputerName 192.168.1.10 -Credential heyvaldemar\Administrator

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 28

Specify the password for an account with domain administrator rights and click on the “OK” button.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 29

The connection to the server has been established.

Check the status of the services required for the domain controller to work using the command:

Terminal window
Get-Service adws,kdc,netlogon,dns

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 30

The services required for the domain controller are running.

To view detailed information about configuring a domain controller, you can run the command:

Terminal window
Get-ADDomainController

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 31

To view detailed information about the Active Directory domain, you can run the command:

Terminal window
Get-ADDomain heyvaldemar.net

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 32

To view detailed information about the Active Directory forest, you can run the command:

Terminal window
Get-ADForest heyvaldemar.net

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 33

To check the availability of the SYSVOL shared folder, you can run the command:

Terminal window
Get-smbshare SYSVOL

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 34

The shared folder “SYSVOL” is available. It is used to provide clients with Group Policy settings and logon and logon scripts.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 35

We return to the workstation.

Now you can install the remote administration tools on your personal computer to manage the roles available on the server using a graphical interface.

NOTE

In Windows 10 (version 1903), the installation of the RSAT (Remote Server Administration Tools) components can be performed through the Windows graphical interface.

For earlier versions of Windows 10, the RSAT installer must be downloaded from the Microsoft download page.

On the keyboard, press the key combination “Win” and “x”, then select “Apps and Features” in the menu that opens.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 36

Next, select “Optional Features”.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 37

Now choose “Add a feature”.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 38

To install Active Directory remote administration tools, select “RSAT: Active Directory Domain Services and Lightweight Directory Services Tools” and click on the “Install” button.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 39

To install the remote DNS administration tools, select “RSAT: DNS Server Tools” and click on the “Install” button.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 40

To install the Group Policy remote administration tools, select “RSAT: Group Policy Management Tools” and click on the “Install” button.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 41

Now you will be able to manage the roles available on the server using a graphical interface.

Installed remote administration tools can be found in the Start menu under Windows Administrative Tools.

Install Active Directory Domain Services on Windows Server 2019 Server Core - Step 42


Patreon Exclusives#

🏆 Join my Patreon and dive deep into the world of Docker and DevOps with exclusive content tailored for IT enthusiasts and professionals. As your experienced guide, I offer a range of membership tiers designed to suit everyone from newbies to IT experts.


Tools I Personally Trust#

If you’re building things, breaking things, and trying to keep your digital life a little saner (like every good DevOps engineer), these are two tools that I trust and use daily:

🛸 Proton VPN - My shield on the internet. It keeps your Wi-Fi secure, hides your IP, and blocks those creepy trackers. Even if I’m hacking away on free café Wi-Fi, I know I’m safe.

🔑 Proton Pass - My password vault. Proper on-device encryption, 2FA codes, logins, secrets - all mine and only mine. No compromises.

These are partner links - you won’t pay a cent more, but you’ll be supporting DevOps Compass. Thanks a ton - it helps me keep this compass pointing the right way 💜


Gear & Books I Trust#

📕 Essential DevOps books
🖥️ Studio streaming & recording kit
📡 Streaming starter kit


Social Channels#

🎬 YouTube
🐦 X (Twitter)
🎨 Instagram
🐘 Mastodon
🧵 Threads
🎸 Facebook
🦋 Bluesky
🎥 TikTok
💻 LinkedIn
📣 daily.dev Squad
✈️ Telegram
🐈 GitHub


Community of IT Experts#

👾 Discord


Refill My Coffee Supplies#

💖 PayPal
🏆 Patreon
🥤 BuyMeaCoffee
🍪 Ko-fi
💎 GitHub
Telegram Boost

🌟 Bitcoin (BTC): bc1q2fq0k2lvdythdrj4ep20metjwnjuf7wccpckxc
🔹 Ethereum (ETH): 0x76C936F9366Fad39769CA5285b0Af1d975adacB8
🪙 Binance Coin (BNB): bnb1xnn6gg63lr2dgufngfr0lkq39kz8qltjt2v2g6
💠 Litecoin (LTC): LMGrhx8Jsx73h1pWY9FE8GB46nBytjvz8g


Is this content AI-generated?

No. Every article on this blog is written by me personally, drawing on decades of hands-on IT experience and a genuine passion for technology.

I use AI tools exclusively to help polish grammar and ensure my technical guidance is as clear as possible. However, the core ideas, strategic insights, and step-by-step solutions are entirely my own, born from real-world work.

Because of this human-and-AI partnership, some detection tools might flag this content. You can be confident, though, that the expertise is authentic. My goal is to share road-tested knowledge you can trust.

Install Active Directory Domain Services on Windows Server 2019 Server Core
https://www.heyvaldemar.com/install-active-directory-domain-services-on-windows-server-2019-server-core/
Author
Vladimir Mikhalev
Published at
2019-08-30
License
CC BY-NC-SA 4.0