Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install a Secondary Domain Controller in Active Directory

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Adding a secondary domain controller (DC) to your Active Directory environment provides redundancy and fault tolerance. If the primary DC fails, the secondary can authenticate users, respond to LDAP queries, and even hold the FSMO roles if you transfer them. This guide walks you through promoting a Windows Server machine to a replica DC in an existing domain. Before you start, ensure the server has a static IP address, is joined to the domain, and that you have domain admin credentials.

What You'll Need

  • A Windows Server machine (2016, 2019, or 2022) that is not already a domain controller.
  • Static IP address and DNS settings pointing to an existing DC (or the primary DNS server).
  • The server must be joined to the domain (you can do this during the process).
  • Domain Administrator credentials.
  • Network connectivity to the primary DC and DNS resolution working.

Step-by-Step

  1. Verify prerequisites – Log in to the new server with local admin rights. Open Command Prompt and run ipconfig /all. Confirm the IP is static and the DNS server is set to an existing DC's IP (not 127.0.0.1 unless it's already a DC). Also, run nslookup yourdomain.com to confirm DNS resolves.
  2. Join the server to the domain (if not already done) – Go to System Properties (right-click This PC > Properties > Rename this PC) and click Change. Select Domain, enter your domain name (e.g., contoso.com), and provide domain admin credentials when prompted. Restart when asked.
  3. Install the AD DS role – Open Server Manager, click Add roles and features. Click through the wizard until you reach Server Roles. Check Active Directory Domain Services. Accept the added features and click Install. Wait for the installation to complete.
  4. Promote the server to a domain controller – After the role installs, click the flag icon in Server Manager and select Promote this server to a domain controller. This launches the Active Directory Domain Services Configuration Wizard.
  5. Choose deployment type – Select Add a domain controller to an existing domain. Enter the domain name (pre-filled) and provide domain admin credentials. Click Next.
  6. Specify domain controller options – Choose the site (default is fine unless you have multiple sites). Ensure Domain Name System (DNS) server and Global Catalog (GC) are checked. Set the Directory Services Restore Mode (DSRM) password and confirm it. Click Next.
  7. Additional options – If you want this DC to be a DNS server (recommended for redundancy), leave the DNS option checked. You can also specify replication source; leave it as Any domain controller unless you have a specific reason. Click Next.
  8. Paths – Accept the default paths for the database, logs, and SYSVOL folders, or change them to a non-system drive if you prefer. Click Next.
  9. Review options – Check the summary. If you need to export a PowerShell script for unattended installs, click View script. Otherwise, click Next.
  10. Prerequisites check – The wizard runs a check. It may show warnings about DNS delegation or group policies; these are often benign. If there are errors, address them (see Troubleshooting). When the check passes, click Install.
  11. Installation and reboot – The server will promote itself, replicate, and then automatically restart. After reboot, log in with domain admin credentials. Confirm the new DC appears in Server Manager > Tools > Active Directory Users and Computers under the Domain Controllers OU.
  12. Verify DNS and replication – Open Command Prompt and run dcdiag /s:yourdomain.com and repadmin /replsummary. Both should show no critical errors. Also, test that the new DC resolves DNS queries by setting a client's DNS to its IP temporarily.

Common Mistakes

  • Wrong DNS settings – Pointing the new server's DNS to itself before promotion causes failure. It must point to an existing DC.
  • Skipping the domain join – You can promote without joining, but the wizard will do it for you; however, it's easier to join first to avoid extra reboots.
  • Forgetting the DSRM password – This password is critical for recovery; losing it means you cannot restore the DC from backup.
  • Ignoring the prerequisites check warnings – Some warnings are harmless, but errors like DNS delegation failure can cause replication issues.
  • Not waiting for replication – After promotion, replication might take a few minutes. Don't assume failure if the new DC doesn't show up instantly.

Tips

  • Use a static IP address for the DC; DHCP is not recommended for domain controllers.
  • Install the DNS role on the secondary DC as well, so clients have a backup DNS server.
  • Set the new DC's DNS to point to the primary DC first, and the primary DC's DNS to point to the secondary (after it's promoted) for redundancy.
  • Consider placing at least two DCs in different physical locations for disaster recovery.
  • Keep the Windows Server updated with the latest patches before promotion.
  • If you're using SYSVOL replication via DFS-R, ensure the domain functional level is 2008 or higher.

Troubleshooting

  • Prerequisites check fails with DNS errors – Verify that the server can resolve the domain's DNS records. Run nslookup for the domain and for the primary DC's hostname. If DNS is broken, fix the DNS settings on the server's network adapter.
  • Replication fails – Use repadmin /showrepl to see replication status. If there are errors, check the event logs for details. Common causes include network issues, DNS misconfiguration, or firewall blocking RPC ports (135, 49152-65535).
  • Promotion hangs at 'Installing' – Wait at least 15 minutes before assuming failure. If it's stuck, check the AD DS event log for errors. Sometimes a reboot and retry resolves it.
  • Server doesn't reboot after promotion – The wizard should force a reboot. If not, restart manually and then verify the DC status.
  • Cannot log in after promotion – Ensure you're using the domain admin account (e.g., CONTOSO\Administrator). If the DSRM password was set incorrectly, you can't use that for normal login.
  • dcdiag shows 'Failed to get DC name' – This usually indicates DNS problems. Run ipconfig /flushdns and ipconfig /registerdns on the new DC, then re-run dcdiag.

Frequently Asked Questions

Can I promote a server that is not joined to the domain?

Yes, the promotion wizard will join the server to the domain as part of the process, but it's usually smoother to join first.

Do I need to install DNS on the secondary DC?

It's recommended for redundancy, but not mandatory. If you do, ensure it's configured correctly to replicate DNS zones.

What is the DSRM password used for?

It's the local administrator password for the Directory Services Restore Mode, used for disaster recovery scenarios like restoring the AD database.

How long does replication take?

It depends on your network and the size of the AD database. Typically, it's a few minutes, but can be longer for large environments.

Can I demote a secondary DC later?

Yes, you can use Server Manager to remove the AD DS role, which will demote the server back to a member server.

What if I only have one DC and want to add a second?

This guide covers exactly that scenario. Just make sure the existing DC is healthy and reachable.