Join Windows Server 2019 Server Core to a Domain

This article is for those looking for a detailed and clear guide on how to join Windows Server 2019 Server Core to a Domain.
IMPORTANTWe will consider the case when you already have two servers with the Windows Server 2019 operating system installed on them. In addition, one of the servers must have the Active Directory Domain Services role installed.
You can read more about how to install Windows Server 2019 in my guide Install Windows Server 2019 Server Core.
IMPORTANTTo learn how to install Active Directory Domain Services on Windows Server 2019, read: Install Active Directory Domain Services on Windows Server 2019.
To learn how to install Active Directory Domain Services on Windows Server 2019 Server Core (without a GUI), see my guide: Install Active Directory Domain Services on Windows Server 2019 Server Core.
IMPORTANTBefore joining a server to a domain, you must give the server a correct name according to your organizationβs standards, and then assign a static IP address, subnet mask, gateway, and the IP address of the domain controller as a DNS server in the network interface settings.
We go into the system under an account with administrator rights and start Windows PowerShell using the command:
powershell
NOTEIn this guide, the server joins the
heyvaldemar.net
domain using an Administrator account that has domain administrator rights.
Join the server to the domain using the command:
Add-Computer -DomainName heyvaldemar.net -Credential heyvaldemar\Administrator -Restart -Force
Specify the password for an account with domain administrator rights and click on the βOKβ button.
After a reboot, the server will apply the security policies used in your domain.
After applying the security policies, the server will be ready to work.
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.