Setting up a new Active Directory Network on a Physical Server with Windows Server 2019 License

Abstract: Configure Windows Server 2019 as a Domain Controller with static IP, DNS, and VLAN support for multi-building Active Directory deployment.

Created: 2026-09-10 by
Establishing a new Active Directory domain on physical hardware running Windows Server 2019 requires careful planning of IP addressing, DNS configuration, and network segmentation. This guide walks you through promoting the server to a Domain Controller, configuring static IPs, and establishing secure connectivity between your main LAN and neighboring building infrastructure using VLANs.

Prerequisites and Network Planning

Before installing the operating system or attempting to join a domain, you must define your network topology. Since you are dealing with a physical server and potentially multiple buildings, consistency is key. You need a dedicated static IP address for the Domain Controller that will not change. Dynamic IP assignments via DHCP can cause significant issues when the server tries to register its DNS records after a reboot if it receives a different address. You should also decide on your naming convention early. For example, use corp.local for internal resolution or a reverse public domain like internal.company.com. Avoid using .local unless necessary, as mDNS conflicts can arise. Ensure your physical server has at least two network interfaces if you plan to separate management traffic from user data, though a single interface with VLAN tagging is often sufficient for smaller deployments.

Installing Windows Server 2019 and Initial Configuration

Begin by installing Windows Server 2019 Standard or Datacenter edition from your licensed media. During installation, select the "Server with Desktop Experience" if you require a GUI for easier management, or the minimal installation for better security and performance. Once installed, log in locally with the Administrator account. Navigate to Server Manager and then to Local Users and Groups. Rename the local Administrator account to something less obvious, such as SvrAdmin, to reduce brute-force attack vectors. Set a strong password immediately. Next, configure the network adapter properties. Right-click the network icon, go to Internet Properties, and select IPv4. Assign a static IP address, subnet mask, and default gateway. Crucially, set the Preferred DNS server to point to the server's own IP address (e.g., 127.0.0.1 or its specific static LAN IP). This ensures the server resolves its own name correctly during promotion. If you have a neighboring building scenario, ensure that the physical cabling or fiber links between the buildings are configured on your core switches to support VLAN trunking. This allows traffic from different logical networks to traverse the same physical cable while remaining isolated.

Promoting the Server to a Domain Controller

Open Server Manager and click on Add roles and features. Proceed through the wizard until you reach the Server Roles section. Check the box for Active Directory Domain Services. A popup will appear warning you about dependencies; click Add Features. Complete the wizard and install the role. After installation, you will see a yellow flag in the notification area of Server Manager. Click this flag and select Promote this server to a domain controller. Choose Add a new forest and enter your root domain name (e.g., mycompany.local). Set a DSRM (Directory Service Restore Mode) password, which is critical for recovery scenarios. Select Domain Name System to install DNS automatically. Specify the NetBIOS domain name, usually the first part of your FQDN. In the paths section, accept the default locations for the AD database and logs. Review the prerequisites; if any fail, resolve them before proceeding. Finally, restart the server. Upon reboot, you will be prompted for credentials. Use DOMAIN\Administrator to log in, confirming that the domain controller is operational.

Configuring VLANs and Inter-Building Connectivity

For the neighboring building scenario, you must configure your network switches to handle VLANs. Create a VLAN ID for the corporate network (e.g., VLAN 10) and another for guest or IoT devices if needed. On the switch ports connecting the two buildings, configure them as trunk ports to allow multiple VLANs to pass through. On the Windows Server, you do not necessarily need to create sub-interfaces unless you are routing between VLANs on the server itself. Typically, a Layer 3 switch handles the routing. However, if you need the DC to respond to requests on multiple subnets, ensure your DHCP scopes are configured on the router or firewall to offer addresses within the correct subnet for each VLAN. Test connectivity by pinging a client machine in the neighboring building using its IP address and then its hostname. If hostname resolution fails, check the DNS zones on the DC to ensure forward lookup zones are replicating correctly. It is also important to verify that firewalls between the buildings allow necessary AD traffic: TCP/UDP 53 (DNS), TCP 88 (Kerberos), TCP 389 (LDAP), and TCP 445 (SMB). Without these, clients cannot authenticate against the central DC.

Ongoing Management and Best Practices

Once the environment is stable, focus on maintenance. Install updates regularly via Windows Update or WSUS if you deploy it later. Enable auditing policies to track logon events and privilege usage. Regularly back up the system state, which includes the AD database, using Windows Server Backup or a third-party solution. Store backups off-site or on a separate volume to protect against ransomware. Consider integrating other services gradually. For instance, if you need file sharing across the LAN, ensure permissions are set via NTFS and Share permissions rather than relying solely on host-based firewalls. Understanding how these permissions interact is vital for securing sensitive data. For more details on managing local network resources, see our guide on Enable WIN10/11 LAN File Sharing. Additionally, if you plan to extend access outside the local network, understanding SSH and remote management protocols is essential, as outlined in Windows Computer: Gaining SSH Access Outside Local Network Using PowerShell.

Frequently Asked Questions

Can I use a dynamic IP address for my Domain Controller?

No, you should never use a dynamic IP for a Domain Controller. AD relies heavily on DNS registration, and if the IP changes, clients may fail to locate authentication services, leading to login failures and replication errors. Always assign a static IP reserved in your DHCP scope if you must use DHCP, but static assignment is preferred.

How do I connect two buildings without running new cables?

You can use wireless bridges or fiber optic transceivers over existing conduit if available. Ensure your core switches support VLAN tagging so that traffic from both buildings remains logically separated. The physical link must be treated as a trunk port carrying all necessary VLAN IDs between the sites.

What happens if I lose the DSRM password?

The DSRM password is required to restore the Active Directory database in emergency situations. If you lose it, you cannot perform an authoritative restore of AD. It is highly recommended to store this password securely in a password manager or write it down in a physically secure location during initial setup.

Is it safe to expose the Domain Controller to the internet?

Never expose the Domain Controller directly to the internet. It should always sit behind a firewall. If remote access is needed, use a VPN or Remote Desktop Gateway (RDG) with multi-factor authentication. Direct exposure invites brute-force attacks and exploitation of known vulnerabilities.

How do I add a client computer to the domain?

On the client PC, go to System Properties, click Change, and enter the domain name. You will need credentials for an account with permission to join computers to the domain, typically the Administrator or a delegated helpdesk account. Ensure the client can resolve the DC's IP via DNS before attempting to join.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More