Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Tech News
  • Contact
  • Toggle search form

Active Directory: How to Setup a Domain Controller

Posted on 08/01/202017/08/2026 IT Expert By IT Expert No Comments on Active Directory: How to Setup a Domain Controller
  1. Home
  2. Windows Server
  3. Active Directory: How to Setup a Domain Controller
Active-Directory-Setup

In this article, we will discuss Active Directory: How to Setup a Domain Controller. A domain controller (DC) is a server computer that responds to authentication requests. It participates in the replication and contains a complete copy of all directory information for its domain. Please see this guide for how to add a second DC to the existing environment, how to set up VMs in Hyper in order to have Domain Controllers running as Virtual Machines, and “Post OS configuration of Windows Server 2019 Properties.

If your environment requires high availability of IT systems when one DC fails, another takes over to ensure successful login, etc. This is why a second DC is paramount.

Here are some related articles that might interest you. What are Active Directory Forest, Trees, Domain, and Sites, and how to synchronize your on-premises AD with Azure Active Directory using the Azure AD Connect tool. Here is a video on how to YouTube video on how to demote and remove a Domain Controller

Setup your first Domain Controller

Note: On the VMs, ensure you have searched rigorously and applied all updates: Click on Manage on the First VM you wish to use as the First DC. Select Add Roles and Features as shown below.

Screenshot of the Server Manager interface showing the 'Manage' menu with 'Add Roles and Features' highlighted.

Click on next as shown below. You can optionally click on the check box to skip through this window in the future.

A screenshot of a software installation wizard displaying a checklist of prerequisites before proceeding with the installation of roles or features. The left panel shows navigation options, while the right panel outlines tasks that need to be completed, including checking administrator account settings and ensuring network configurations are in place. Buttons for 'Previous', 'Next', 'Install', and 'Cancel' are visible at the bottom.

Select Role-based or Feature-based installation and click on next

Installation type selection screen for a server setup, with options for role-based or feature-based installation and Remote Desktop Services.

Please see how to fix “Enter connection information for your on-premise directory or forests: Azure AD connect unable to connect directory, forest not available“, and Active Directory Forest – Trees and Domain and Sites.

Select Active Directory Domain Services

Select the right server you wish to install the role on. Here I have just one server, so I will click on next. Under the Server role, Select Active Directory Domain Services

Screenshot of a server roles selection window for installing Active Directory services, with options for various server roles highlighted.

Note: When you click on Active Directory Domain Services (AD DS), it will prompt with a window to add features required for AD DS role

Screenshot of the 'Add Roles and Features Wizard' in Windows Server, showing the required features for Active Directory Domain Services including Group Policy Management and Remote Server Administration Tools with an option to add features.

Note: There is no need to install the DNS server role alongside AD DS. This is because; you must not necessarily use the built-in DNS server. So I will be using a 3rd party DNS Server.

Screenshot showing the server roles selection interface in Windows Server setup, highlighting 'DNS Server' and 'Active Directory Domain Services' roles.

Click on Next without selecting to install the DNS server. Under the features, Windows, click next and do not select anything as no feature is needed at this moment by me.

If you do, you can select any and click on next. On the Active Directory Domain Services window, Click on next

Screenshot of Active Directory Domain Services setup page, detailing information storage, DNS requirements, and providing links to learn more about Azure Active Directory.

On the confirmation tab, click on Install. Usually, if a restart is needed, the system will ask and prompt for this. But I do this on the fly by checking the box, and restarting the destination server if required as shown below.

Screenshot of the Confirm Installation Selections page in the Windows Server Add Roles and Features Wizard, showing options to restart the server automatically and a warning about automatic restarts.

Here is how to install and configure Active Directory Domain Services on Windows Server 2022, and how to fix “The trust relationship between this workstation and the primary domain failed.

Install Active Directory Domain Services

Please click on yes and click on install

Screenshot of a Windows Server installation interface, displaying options to install roles, services, or features, including Active Directory Domain Services and Remote Server Administration Tools, with an 'Install' button highlighted.

Note 1: After installing AD DS, ensure you change the Default First Site name to a useful “name”. Ensure you change the Default First-Site-Name under Active Directory Sites and Services to reflect the domain name. Or else the default name stays.

Note: 2: Ensure, you change the computer- name and enter the right IP parameters. This is very vital.

Please see Linux Error 13: Permission denied, are you root, How to setup WatchGuard XTM, how to make a back of the XTM Device configuration file, and how to copy TFTP Image to Flash on Cisco ASA.

Promoting as a Domain Controller | Installing Your First Forest

Since this is going to be our first DC; it is going to be our Primary Domain Controller (DC): Here I will be adding a new Forest and the link to promote this server as a DC can be accessed from this link below 

Screenshot of a Windows Server configuration wizard indicating steps required to promote a server to a domain controller. Sections include Active Directory Domain Services, Group Policy Management, and Remote Server Administration Tools.

But if you decide to close this window and access the link via the Task details

Warning message for post-deployment configuration in Active Directory Domain Services, highlighting the instruction to promote the server to a domain controller.

Click on promote this server as a domain controller which will open the deployment configuration window as shown below.

Active Directory Domain Services Configuration Wizard image showing the Deployment Configuration options, highlighting the 'Add a new forest' selection.

Enter your root domain name and click on next.

Please see How to add a new Domain Controller to an Existing Domain, and how to Specify user account name when adding a DC to an existing Forest.

Select the Forest and Domain Functional Level and DSRM Password

On the Domain controller option, I will be leaving the Forest and Domain functional level as shown below and will enter my Password that will be needed in the future for recovery purposes. Remember to uncheck the Domain Name Server (DNS) Server in order not to install DNS Server.

Active Directory Domain Services Configuration Wizard showing Domain Controller Options with selections for forest functional level and domain functional level, along with options for DNS and Global Catalog capabilities, and fields for DSRM password setup.

On the DNS Option below, click on Next and Do Nothing (this behaviour is normal as we do not want the name to be resolvable in Public DNS) as shown below.

Screenshot of the Active Directory Domain Services Configuration Wizard showing DNS Options with an alert message indicating that a DNS server delegation cannot be created due to missing authoritative parent zone.

On the Additional Option, the NetBIOS domain name will be automatically filled, click on Next.

If you have other drives and would like to save these folders, then you can select other paths. But I will leave it as default as shown below.

Active Directory Domain Services Configuration Wizard showing the Paths section, with specified locations for the database folder, log files folder, and SYSVOL folder highlighted.

Under the review option, Click on Next (Note: you can also view the PowerShell cmdlets using the view script menu below).

Now the prerequisite test will be performed and when passed you can then install.

Screenshot of the Active Directory Domain Services Configuration Wizard showing the Prerequisites Check section, indicating all checks passed successfully. Important warnings and information regarding security settings and DNS delegation are displayed.
Active Directory: How to Setup a Domain Controller
prerequisite passed

Click on install and this will continue to run displaying various progress steps etc. The Server will automatically restart itself and that is the end of the entire process.

Having set up a new DC, you may want to see this guide: Laps in Windows: How to Reset Directory Services Restore Mode (DSRM) password.

Some facts to note on Promoting a Domain Controller

I have decided to add this at the bottom in order not to interfere with your configuration steps above 🙂 To promote a Server to a DC, in the previous version you will need to run dcpromo. But this is not the case anymore as you have seen above.

When you run the dcpromo, it checks to see if the Active Directory Domain Services binaries (role) are installed. Note: If you install the ADDS role ahead of time, you do not need to promote the server.

addsbinaries

Note: in place FQDN of the forest root domain, using .local is preferable as it cannot be resolved from the internet. This statement is no longer true. For more information on this, please see Active Directory: Best Practices for Internal Domain and Network Names.

At the time of writing this guide, this is no longer the case. Microsoft does not recommend using non-routable domains due to directory synchronization.

Please see this guide “how to synchronize your on-premises AD with Azure Active ” for more information. Otherwise, you may run into issues when integrating your environment with Azure AD (hybrid). Some more configuration is desired in this case. In short, using .com address will enable you to resolve hosts on the internet.

After promotion, note the local user and groups are no longer available and this is because the local user and groups are not as secure as domain users and this help protect the dc.

I hope you found this blog post helpful on Active Directory: How to Setup a Domain Controller. If you have any questions, please let me know in the comment session.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Active Directory, DC, Domain, Domain Controller, Domain Controller Setup

Post navigation

Previous Post: How to set up Windows Admin Center on a Windows Server
Next Post: Pass-Through Authentication Authentication and ADFS environment setup on Hyper-V for Hybrid Identity integration

Related Posts

  • PSD
    PowerShell Deployment Extension for MDT: How to deploy Windows using PSD, Microsoft Deployment Toolkit, and Windows Deployment Services Windows Server
  • yxxycx yx
    How to change the Default First-Site-Name in Active Directory Windows Server
  • Featured image wifipass
    Find saved Wi-Fi Passwords in Windows 10 and 11 Network | Monitoring
  • GPO Blocked Downloads 3
    How to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022 Windows
  • wsus logo e1653651564255
    How to configure Windows server update services Windows Server
  • server 2022
    Upgrade Windows Server 2019 to 2022 via iDRAC Windows Server

More Related Articles

PSD PowerShell Deployment Extension for MDT: How to deploy Windows using PSD, Microsoft Deployment Toolkit, and Windows Deployment Services Windows Server
yxxycx yx How to change the Default First-Site-Name in Active Directory Windows Server
Featured image wifipass Find saved Wi-Fi Passwords in Windows 10 and 11 Network | Monitoring
GPO Blocked Downloads 3 How to Block downloads on Microsoft Edge using GPO on Windows Server 2019 and 2022 Windows
wsus logo e1653651564255 How to configure Windows server update services Windows Server
server 2022 Upgrade Windows Server 2019 to 2022 via iDRAC Windows Server

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • blog banner 1
    Reset and reinstall Windows 10 from the cloud and how to recover your Windows 10 when you cannot boot to Windows Windows
  • Screenshot 2020 05 14 at 19.28.50
    How to install and configure Rancid Linux
  • git pull error
    Failed to pull image with the policy “always” error from the daemon Version Control System
  • Featured image BitLocker AES XTX 256
    Enable BitLocker AES-XTX 256 Encryption Security | Vulnerability Scans and Assessment
  • Locationservices
    Enable or Disable Location Services: How to allow apps and services to determine your location on Mac Mac
  • Screenshot 2020 12 30 at 01.03.14
    Device cannot use a Trusted Platform Module: Allow BitLocker without a compatible TPM Windows
  • Active Directory Restore issue
    AD Recovery: Fix device ran into an issue with error 0xc00002e2 Windows Server
  • runlevels
    How to check your current Runlevel in Linux Linux

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,762 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.