How to Install and Configure Active Directory Domain Services

Active Directory Domain Services (AD DS) provides centralized authentication and management for a network of Windows machines — commonly deployed for businesses needing unified user/computer management across multiple servers.

When You Need Active Directory

Genuinely useful when managing multiple Windows servers/workstations needing centralized authentication, group policy management, and unified access control — overkill for a single standalone VPS with no additional domain-joined machines.

Prerequisites

  • Windows Server 2019/2022
  • A static internal IP address configured on the server

Step 1 — Install the AD DS Role

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

Step 2 — Promote the Server to a Domain Controller

Install-ADDSForest \
  -DomainName "yourcompany.local" \
  -DomainNetbiosName "YOURCOMPANY" \
  -InstallDns \
  -SafeModeAdministratorPassword (ConvertTo-SecureString "CHANGE_ME_STRONG_PASSWORD" -AsPlainText -Force)

Creates a new forest and domain — the server automatically reboots after this completes.

Step 3 — Verify AD DS Is Running

Get-ADDomain

Step 4 — Create an Organizational Unit Structure

New-ADOrganizationalUnit -Name "Employees" -Path "DC=yourcompany,DC=local"
New-ADOrganizationalUnit -Name "Servers" -Path "DC=yourcompany,DC=local"

OUs organize users/computers logically, letting you apply different Group Policy settings to different organizational segments.

Step 5 — Create User Accounts

New-ADUser -Name "Jane Doe" -SamAccountName "jdoe" -UserPrincipalName "[email protected]" -Path "OU=Employees,DC=yourcompany,DC=local" -Enabled $true -AccountPassword (ConvertTo-SecureString "CHANGE_ME" -AsPlainText -Force)

Step 6 — Create Security Groups

New-ADGroup -Name "IT-Admins" -GroupScope Global -Path "OU=Employees,DC=yourcompany,DC=local"

Joining Additional Servers to the Domain

Add-Computer -DomainName "yourcompany.local" -Credential (Get-Credential) -Restart

Run on each additional Windows machine you want centrally managed under this domain.

Setting Up Group Policy

Group Policy Management Console (accessible after installing the AD DS role) lets you define and apply configuration policies across domain-joined machines — a significant topic in its own right, worth dedicated study if you're managing many domain-joined systems.

Backing Up Active Directory

See How to Set Up Automated Backups on a Windows VPS, with specific attention to AD DS's system state backup requirements — losing your domain controller without proper backup is a genuinely severe operational risk for any AD-dependent infrastructure.

Security Considerations

A domain controller is a high-value target — apply particularly rigorous hardening (see Windows Server Security Checklist for a New VPS) and never expose AD DS-related ports directly to the public internet.

Common Errors

DNS resolution issues after promoting to domain controller — AD DS typically installs and configures DNS as part of the process; verify client machines are pointed at the domain controller's IP for DNS resolution.

Continue Reading

Browse more articles in Windows Server Administration.

  • active directory setup, windows domain controller, ad ds installation, windows server domain services
  • 0 brukere syntes dette svaret var til hjelp
Var dette svaret til hjelp?

Relaterte artikler

How to Connect to a Windows VPS via Remote Desktop (RDP)

Remote Desktop Protocol (RDP) provides full graphical access to a Windows Server VPS, letting you...

How to Secure RDP on a Windows VPS

RDP's default configuration (standard port, password authentication, unlimited login attempts)...

How to Create a New Administrator User on Windows Server

Using only the built-in Administrator account for all management tasks is risky. Creating a...

How to Install Windows Updates on a Windows VPS

Keeping Windows Server updated is essential for security and stability. This guide covers...

How to Configure Windows Firewall on a Windows VPS

Windows Defender Firewall controls which network connections are allowed to and from your server....