319 words
2 min read

Join Windows Server 2019 Server Core to a Domain: One PowerShell Line

By · Docker Captain · CNCF Ambassador · IBM Champion
Cover image for the post '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.

IMPORTANT

We 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.

IMPORTANT

To 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.

IMPORTANT

Before 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:

Terminal window
powershell

Join Windows Server 2019 Server Core to a Domain - Step 1

NOTE

In 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:

Terminal window
Add-Computer -DomainName heyvaldemar.net -Credential heyvaldemar\Administrator -Restart -Force

Join Windows Server 2019 Server Core to a Domain - Step 2

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

Join Windows Server 2019 Server Core to a Domain - Step 3

After a reboot, the server will apply the security policies used in your domain.

Join Windows Server 2019 Server Core to a Domain - Step 4

After applying the security policies, the server will be ready to work.

Join Windows Server 2019 Server Core to a Domain - Step 5


Vladimir Mikhalev

Docker Captain  ·  CNCF Ambassador  ·  IBM Champion

The Verdict — production-tested analysis on YouTube.

The Verdict

Inconvenient truths about shipping in the AI era

Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.

Related Posts

Same category
  1. 1
    Recovering a Corrupt Exchange Database with Stellar Repair — Real-World Lab Test
    SysAdmin & IT Pro · We deliberately broke an Exchange 2019 server to test Stellar Repair on a dirty-shutdown EDB file. The recovery process, lab setup, and lessons learned.
  2. 2
    Terminal, Shell, Command Line, Prompt: Four Words, Four Things
    SysAdmin & IT Pro · The terminal is the window, the shell runs your commands, the prompt says it is ready, the command line is the idea. Plain definitions, examples, a cheat sheet.
  3. 3
    Install Ubuntu Server 22.04 LTS
    SysAdmin & IT Pro · Step-by-step guide to install Ubuntu Server 22.04 LTS. Covers language, disk setup, OpenSSH, user creation, and system configuration for beginners.
  4. 4
    Install OTRS on Ubuntu Server
    SysAdmin & IT Pro · Guide to installing OTRS Community Edition on Ubuntu Server — configure PostgreSQL, Apache, and SSL with Let's Encrypt, and launch OTRS securely.

Random Posts

Random
  1. 1
    Why Snyk is a Great Tool to Use with Docker
    DevOps & Cloud · Secure your Docker containers with Snyk - deep scans, CI/CD integration, and automated fixes for fast, reliable app delivery.
  2. 2
    Install Minecraft Server Using Docker Compose
    Self-Hosting · Learn how to install a Minecraft Server using Docker Compose. Set up your own secure multiplayer server on Ubuntu with ease using this step-by-step guide.
  3. 3
    Install Active Directory Domain Services on Windows Server 2019
    SysAdmin & IT Pro · Step-by-step guide to install and configure Active Directory Domain Services (AD DS) on Windows Server 2019 using Server Manager.
  4. 4
    Terraform ignore_changes: Stop Plans Fighting Over What You Don't Own
    DevOps & Cloud · What ignore_changes does, when it is right, where it hides real drift, and real examples of attributes you should and should not ignore.
Join Windows Server 2019 Server Core to a Domain: One PowerShell Line
https://heyvaldemar.com/join-windows-server-2019-server-core-to-a-domain/
Author
Vladimir Mikhalev
Published
2019-09-06
Updated
2026-11-05
License
CC BY-NC-SA 4.0