A domain controller (DC) is a server that holds the Active Directory Domain Services (AD DS) role and hosts a copy of the directory database of the domain. The credentials of user, computer, group and service accounts are stored in this database. When a user signs in, a computer joins the domain or an application searches the directory, the server that handles the request is a DC.
The work of a DC can be grouped into 3 areas. For authentication, it verifies that the account really has the identity it claims and issues Kerberos tickets. For authorisation, it places the SID and group memberships of the account in the ticket. The access decision is made by the server that hosts the resource, which compares this information with its own permission entries. The third area is central management. Group Policy settings, password rules and audit policies are stored on the DC and reach the users and computers in their scope from there.
When a domain has more than 1 DC, each DC holds a copy of the same database, and changes are transferred to the others through replication. Which DC serves which client, which path the replication traffic follows and what is affected when a DC becomes unavailable depend on the number of DCs and the site structure. The rest of the article first compares the workgroup and domain models, then covers the features of a DC, the services that work with a DC, the PDC Emulator and Additional DC concepts, and the consequences of single-DC and multiple-DC designs.

Differences Between a Workgroup & a Domain Controller (DC)
A workgroup is a network model without a central identity database. Each computer keeps its own local account database (SAM) and performs authentication itself. In the domain model, accounts are stored in the Active Directory database and the DC performs authentication. The table below lists the differences between the 2 models.
|
Feature |
Workgroup |
Domain |
|
Central Management |
None. Each computer manages its own accounts, security settings and shares separately. |
Accounts, security policies and access rights are managed centrally through 1 or more DCs. |
|
Scale |
Suitable for small environments with a few computers. As the number of computers grows, keeping separate accounts on every machine becomes unmanageable. |
Designed for environments with hundreds or thousands of users and computers. |
|
User Management |
An account change made on 1 computer is not reflected on the others. |
A change made to an account or a group is transferred to the other DCs through replication and applies across the domain. |
|
Security |
Settings are configured separately on each computer. There is no policy mechanism that applies to all machines at the same time. |
Password rules, auditing and security settings are applied centrally through Group Policy to the users and computers in scope. |
|
Resource Sharing |
Access to a share requires the credentials of a local account that is defined and authorised on the target computer. If both computers have an account with the same name and password, no credentials are requested. Otherwise they are entered separately when connecting. |
The user signs in with a single domain account. Access to shares is determined by the permissions granted to this account and to the groups it belongs to. |
A workgroup can be sufficient for an office with a few computers. An organisation moves to the domain model when the number of accounts grows, when password and security settings must be applied from a single point or when it needs to audit who accesses what.

Domain Controller (DC) Features
When a server is configured as a DC, several components start to work together on it. The directory database is stored in the NTDS.dit file. Group Policy files and logon scripts are located in the SYSVOL share and are synchronised between DCs through DFS Replication. The Key Distribution Center (KDC) service that issues Kerberos tickets, the Netlogon service that allows clients to locate the DC and, in most deployments, the DNS Server role also run on the same server.
Clients and other DCs reach these components over the ports below. Firewall rules are defined according to the source, the destination and the service in use. Not every port in the table needs to be opened for every client. For example, if no client uses LDAP over SSL/TLS, no rule is needed for TCP 636 and 3269.
|
Service |
Port |
|
DNS |
TCP and UDP 53 |
|
Kerberos |
TCP and UDP 88 |
|
Windows Time (W32Time) |
UDP 123 |
|
RPC Endpoint Mapper |
TCP 135 |
|
LDAP |
TCP and UDP 389 |
|
SMB (SYSVOL and Netlogon shares) |
TCP 445 |
|
Kerberos password change |
TCP and UDP 464 |
|
LDAPS |
TCP 636 |
|
Global Catalog |
TCP 3268 and 3269 |
|
Active Directory Web Services |
TCP 9389 |
|
Dynamic RPC (including replication) |
TCP 49152-65535 |
The sections below cover, in order, the functions that the DC performs directly and the configurations that are managed on the DC.
1- Authentication and Authorisation
Authentication is the verification that a user or a service has the identity it claims. In a domain environment the default protocol is Kerberos. When a user signs in, the password is not sent over the network. The client sends a timestamp encrypted with a key derived from the password, and if the KDC can decrypt it with the key in the directory, it gives the user a Ticket Granting Ticket (TGT). For later access requests the user presents the TGT to obtain a service ticket for the target service and does not use the password again.
NTLM is the older protocol that is used when Kerberos is not available. Typical examples are connections made by IP address, systems that are not domain members and services with a missing SPN registration. With Windows Server 2025 and Windows 11 24H2, NTLMv1 has been removed and NTLMv2 has been marked as deprecated. For this reason, new environments should plan to audit and reduce NTLM usage.
AD DS itself has no built-in multi-factor authentication (MFA) mechanism. If a factor other than a password is required, certificate-based and key-based methods such as smart cards or Windows Hello for Business are used, or authentication is passed through AD FS or Microsoft Entra ID.
Authorisation is the determination of which resource an authenticated account can access and at what level. The DC does not make the decision itself at this stage. It writes the SID of the user and the SIDs of the groups the user belongs to into the Privilege Attribute Certificate (PAC) field of the Kerberos ticket. The server that hosts the resource builds an access token from this information. For Windows file access, the token is compared with the Access Control List (ACL) entries of the file or folder, and access is granted or denied accordingly. Applications with their own permission model take the Windows identity and evaluate authorisation against the roles and permissions defined inside the application.
AD DS has no ready-made role-based access control (RBAC) model. A role-based authorisation structure is built with security groups and with delegation at OU level. Granting permissions to groups instead of individual users keeps it possible to track who accesses what.
2- Active Directory Domain Services (AD DS)
Active Directory Domain Services (AD DS) is the directory service that stores users, groups, computers, printers and similar objects in a hierarchical structure. The database runs on the Extensible Storage Engine (ESE) and is stored in the NTDS.dit file. LDAP is the protocol used to access this database, not the database itself.
Objects in the directory are organised with the Organizational Unit (OU) structure. An OU is the container used both to link Group Policy and to delegate administrative authority. For this reason, the OU design is based on which policy applies to which objects and who manages them, not on the organisation chart.
The database is divided into logical sections called partitions. The Schema and Configuration partitions are replicated to every DC in the forest, and the Domain partition is replicated only to the DCs of that domain. DCs that hold the Global Catalog (GC) role also keep a partial copy that contains the frequently used attributes of the objects in the other domains of the forest. In multi-domain environments, Universal Group memberships are resolved and forest-wide searches are performed through the GC.
The health of AD DS depends on time synchronisation, uninterrupted replication and accurate DNS records. A problem in any of these 3 reaches the user as a sign-in error or as outdated data.
3- DNS Integration
AD DS does not work without the Domain Name System (DNS). Clients do not locate a DC by its IP address or its name. They query the SRV records in DNS. When the Netlogon service starts, each DC writes records such as _ldap._tcp.dc._msdcs.{Domain} and _kerberos._tcp.{Domain} to DNS. Kerberos authentication, LDAP queries and Group Policy processing are directed to the DC found through these records.
With Dynamic DNS (DDNS), DCs and clients update their own records automatically. A Forward Lookup Zone resolves names to IP addresses, and a Reverse Lookup Zone resolves IP addresses to names.
When DNS zones are configured as Active Directory-integrated, the zone data is stored in the relevant section of the directory database according to the selected replication scope and is transferred through Active Directory replication. The replication scope setting of the zone determines which DCs hold a copy of the zone. The zone can be replicated to all DCs that are DNS servers in the domain or in the forest. Every writable DNS server that holds a copy of the zone and is authoritative for that zone accepts updates, and no separate zone transfer configuration is needed between these servers. Secure Dynamic Update is also available only with this zone type.
An incorrect DNS configuration appears as authentication delays, Kerberos errors and replication problems. Clients must use the DNS servers of the domain as their DNS servers, and the SRV records must be checked for completeness with dcdiag /test:dns. Aging and Scavenging can be used to remove stale records automatically. This feature is disabled by default and is optional. If it is enabled, the intervals must be selected according to the record refresh interval of the clients and the DHCP lease duration, and they must be tested first, because incorrect intervals also cause records that are in use to be deleted.
4- Replication
Replication is the mechanism that transfers changes made in the directory between DCs. AD DS uses the Multi-Master Replication model. Every writable DC accepts changes and passes them to its replication partners. User accounts, group memberships and Group Policy objects become identical on all DCs in this way.
The replication topology is built by the Knowledge Consistency Checker (KCC). The KCC runs on every DC and creates connection objects automatically. The topology between sites is built by the Intersite Topology Generator (ISTG) role, which 1 DC in each site holds.
Intrasite replication takes place between DCs in the same site and is based on change notification. When a DC writes a change to its own copy, it waits 15 seconds by default and sends a notification to its first partner. Notifications to the following partners are sent at 3-second intervals. The data is not compressed, because the connection inside a site is assumed to be fast. Changes that must not be delayed, such as account lockouts, are sent inside the site through urgent replication without this wait.
Intersite replication runs between DCs in different sites according to the schedule defined on the site link. The default interval is 180 minutes and it can be reduced to a minimum of 15 minutes. The data is sent compressed, which reduces bandwidth consumption over the WAN. Urgent replication does not cross the site boundary by itself. In the default configuration, the time an account lockout or a deletion takes to reach the DCs in other sites depends on the site link schedule. If the connection is suitable, change notification can be enabled separately on the site link.
A DC that has not received replication for a long time can cause serious inconsistencies. Deleted objects are kept in the directory, marked as deleted, for the Tombstone Lifetime. The default for this period is 60 or 180 days, depending on the history of the forest. In forests created with current versions it is usually 180 days. In forests that were upgraded from older versions, 60 days or another manually assigned value can apply. The current operating system version of the DCs does not indicate this value. The effective period is read from the tombstoneLifetime attribute of the Directory Service object in the Configuration partition.
A DC that has not received replication for longer than the Tombstone Lifetime continues to hold the objects of deletions that never reached it, and these objects are called lingering objects. What happens next depends on the Strict Replication Consistency setting. If the setting is enabled, a destination DC that receives an update for an object it does not have stops replication from this source for that partition. If the setting is disabled, the object enters the forest again. Event ID 2042 in the Directory Service log reports that too much time has passed since the last replication with a partner.
Restoring a DC from a virtual machine snapshot or from an image with an unsupported method causes a USN rollback, and that DC is excluded from replication. Monitoring the Directory Service event log and checking the replication status regularly allow these problems to be detected early.
5- Group Policy Management
Group Policy is the mechanism that centrally manages the settings of domain-joined computers and users. A Group Policy Object (GPO) consists of 2 parts. The files of the settings are stored under SYSVOL, and the directory record of the GPO is stored in the AD database. The DC does not push settings to the client. The client connects to the DC itself, reads the GPOs that apply to it and processes them. This happens at computer startup, at user sign-in and in the background every 90 minutes, with a random offset of up to 30 minutes. DCs refresh every 5 minutes.
Every GPO contains 2 sections. Computer Configuration applies to the computer account and contains security settings, service configurations, firewall rules and the password and account lockout policies. User Configuration applies to the user who signs in and contains settings such as desktop restrictions, folder redirection and drive mapping.
A GPO applies only to the users and computers in its scope. GPOs are processed in the order Local, Site, Domain and OU. If the same setting is defined in more than 1 GPO, the GPO processed last, which is the one linked to the OU closest to the object, takes effect. This order has 2 exceptions. If Block Inheritance is enabled on an OU, GPOs from higher levels do not apply to that OU. If a GPO link is marked as Enforced, GPOs at lower levels cannot override its settings and Block Inheritance cannot stop it either. Security Filtering and WMI Filters narrow down which of the objects in scope the GPO applies to.
The Default Domain Policy carries the password, account lockout and Kerberos policies, and the Default Domain Controllers Policy carries the User Rights Assignment and audit settings specific to DCs. The recommendation is not to add other settings to these 2 GPOs and to create separate GPOs for other requirements.
Whether a GPO is really applied can be seen on the client as a summary with the gpresult /r command and as an HTML report with the gpresult /h gpresult.html command. In the Group Policy Management Console (GPMC), the same information is obtained with the Group Policy Results wizard. Group Policy Modeling calculates in advance which settings will apply when a user or a computer is moved to another OU.
6- FSMO (Flexible Single Master Operation) Roles
In the multi-master model every writable DC accepts changes, but some operations cause conflicts if they are performed on 2 different DCs at the same time. These operations are assigned to a single DC, and these duties are called Flexible Single Master Operation (FSMO) roles. There are 5 roles, 2 at forest level and 3 at domain level. Each role has a single owner in its own scope at any time. All roles can stay on the same DC or can be distributed across different writable DCs.
|
Role |
Scope |
Function |
|
Schema Master |
Forest |
The DC that holds this role processes write operations on the schema. |
|
Domain Naming Master |
Forest |
Manages the addition and removal of domains and application partitions in the forest. |
|
RID Master |
Domain |
Distributes RID pools to the writable DCs that create accounts and groups. The default block size is 500 and it can be changed. This prevents 2 DCs from generating the same SID. |
|
PDC Emulator |
Domain |
It is the reference point in the time hierarchy of the domain, receives password changes with priority and handles account lockout processing. |
|
Infrastructure Master |
Domain |
Updates references to objects in other domains. |
The pool distributed by the RID Master forms the last part of the Security Identifier (SID) value. When this role cannot be reached, DCs continue to create objects until their current pool is used up. When the pool is exhausted, no new user, group or computer account can be created.
The PDC Emulator in the forest root domain is at the top of the time hierarchy and must be connected to a reliable external time source. Domain-joined clients take the time from a DC in their own domain. When DCs select a time source, they evaluate the DCs in the parent domain, the reliable time sources in their own domain and the PDC Emulator, according to whether these are in the same site or not. The Group Policy Management Console also connects to the PDC Emulator by default for GPO editing, which prevents the same GPO from being edited on 2 separate DCs at the same time.
In multi-domain environments, the Infrastructure Master should be placed on a DC that is not a GC. Because a GC already holds a partial copy of all objects, a GC that holds this role finds no references to update. This restriction no longer applies if all DCs in the domain are GCs or if the Active Directory Recycle Bin is enabled in the forest. When the Recycle Bin is enabled, each DC becomes responsible for updating its own references.
The DCs that hold the roles are shown by the netdom query fsmo command. For a planned change, the roles are moved to another DC with NTDSUtil or PowerShell (transfer). If the DC that holds the role can no longer be reached, the administrator forcibly moves the role to another DC (seize). A Read-Only Domain Controller cannot hold a FSMO role.
A seize is performed when the old DC that holds the role will never connect to the network again. A DC whose role has been seized must not be brought back into service. Its operating system must be reinstalled and its record in the directory must be removed with a metadata cleanup.
7- Security Features
A writable DC holds the password hashes of all accounts in the domain. The compromise of such a DC means the compromise of the entire domain. For this reason, DCs, Domain Admins accounts and the systems that manage DCs are treated as the highest protection tier (Tier 0), and no role or application unrelated to the directory service is run on a DC.
Fine-Grained Password Policies allow stricter password rules to be applied to specific groups such as administrator accounts. User accounts added to the Protected Users group cannot be authenticated with NTLM, use only AES in Kerberos, and their credentials are not cached on the computer where they sign in. The Privileged Access Management feature that comes with the Windows Server 2016 forest functional level allows an account to be added to a privileged group for a limited time. When the time expires, the membership is removed automatically.
AdminSDHolder keeps the ACLs of protected groups such as Domain Admins and Enterprise Admins, and of their members, fixed. The SDProp process, which runs on the PDC Emulator, compares the permissions of these objects with the template on the AdminSDHolder object every 60 minutes by default and overwrites them if they differ. A permission that an attacker adds to the ACL of a privileged account is reverted in this way.
SID Filtering covers a different scenario. In an authentication request that arrives over a trust, the SIDs in the PAC field of the ticket are filtered at the trust boundary. Which SIDs pass depends on the type of the trust and the class of the SID. The rules are relaxed between domains in the same forest because they trust each other. At boundaries that open outside the forest, such as a forest trust and an external trust, SIDs that belong to the own domains of the trusting forest are not accepted in a PAC that comes from the other side. As a result, an account on the trusted side cannot gain privileges in the trusting forest by writing the Domain Admins or Enterprise Admins SID of that forest into its SIDHistory attribute. The group memberships of the account in its own domain are evaluated separately according to the trust boundary and the SID class, and they do not grant administrative rights in the trusting forest automatically.
The Read-Only Domain Controller (RODC) is designed for branch offices with weak physical security. It holds a read-only copy of the directory, does not accept changes and does not store account passwords by default. The Password Replication Policy determines which accounts can have their passwords cached on the RODC. Being allowed in this policy does not mean that the password has been cached. The password enters the cache when the account is authenticated through that RODC for the first time or when it is prepopulated. Even if the RODC is stolen, only the accounts whose passwords have really been cached are at risk.
The main events to monitor in the Security log in order to detect unusual activity are as follows.
|
Event ID |
Meaning |
Where It Is Logged |
|
4768 |
A Kerberos TGT was requested |
The DC that handles the request |
|
4771 |
Kerberos pre-authentication failed |
The DC that handles the request |
|
4776 |
Credential validation was attempted with NTLM |
The DC for domain accounts, the relevant computer for local accounts |
|
4740 |
An account was locked out |
The DCs for domain accounts, the relevant computer for local accounts |
|
4625 |
A sign-in failed |
The computer where the sign-in was attempted |
Microsoft does not recommend enabling Credential Guard on a domain controller. It provides no additional protection for the DC and can cause compatibility problems. The default enablement in Windows Server 2025 does not cover DCs either.
8- Backup, High Availability and Disaster Recovery
High availability in AD DS is provided by multiple DCs, not by a cluster or a load balancer. When a DC becomes unavailable, clients are directed to another DC through DNS. For this to work, the DNS role must be present on more than 1 DC, at least 2 DNS servers must be defined on the clients and the GC role must not be left on a single DC. Each of the FSMO roles has a single owner at any time. When a DC is lost permanently, only the roles held by that DC need to be moved to another DC.
Having more than 1 DC does not replace backups. An OU deleted by mistake or an incorrect bulk change is also carried to the other DCs through replication. This takes seconds inside the same site and longer between sites, depending on the site link schedule. The result is the same in both cases. The error spreads to all DCs, and the Recycle Bin or a backup is needed to recover.
A DC backup can be taken at 2 levels. A System State backup covers the AD DS database (NTDS.dit), the SYSVOL content, the registry and the boot files. A Full Server backup contains the entire server including the operating system and is used for Bare Metal Recovery (BMR). Both can be taken with Windows Server Backup (WSB). Because VSS (Volume Shadow Copy Service) is used during the backup, a consistent copy is taken while the DC is running.
The usable lifetime of an AD DS backup is limited. If the Recycle Bin is disabled, the backup can be used for the Tombstone Lifetime. If the Recycle Bin is enabled, the smaller of the tombstoneLifetime and msDS-DeletedObjectLifetime values applies. If msDS-DeletedObjectLifetime is not defined, it takes the Tombstone Lifetime value. A backup older than this period must not be restored, so the backup interval is kept well below this period.
Restoring a System State backup to a newly installed Windows Server is not supported. For scenarios where the server is lost completely or where recovery to different hardware is needed, a Full Server backup must be taken and the restore must be tested.
Directory data is restored by starting the DC in Directory Services Restore Mode (DSRM), and the restore is performed in 2 ways.
|
Method |
What It Does |
When It Is Used |
|
Non-Authoritative Restore |
The DC returns to the state in the backup and then becomes current by receiving replication from the other DCs. |
When a single DC is corrupted and the data on the other DCs is intact. |
|
Authoritative Restore |
The restored objects are marked as authoritative with ntdsutil and overwrite the copies on the other DCs. |
When deleted or incorrectly changed objects have replicated to the other DCs. |
For deleted objects, the first place to check before restoring from a backup is the Active Directory Recycle Bin feature. If it is enabled, the deleted object is restored with all of its attributes and group memberships. This feature requires at least the Windows Server 2008 R2 forest functional level and cannot be disabled after it has been enabled. It can only restore objects deleted after it was enabled. A backup is needed for objects deleted before that.
If a DC is lost completely while other healthy DCs exist in the environment, the cleanest method in most cases is to remove the record of the lost DC with a metadata cleanup and to configure a new server as a DC. The database is transferred to the new server through replication.
Backups must be stored in a location independent of the domain, with an offline copy against ransomware attacks. The DSRM password must be known and current, and the restore steps must be tested in an isolated environment at regular intervals. Whether an untested backup works is only discovered at the moment it is needed.
9- Monitoring and Diagnostics
The first source to monitor on a DC is Event Viewer. The Directory Service log contains replication and database events, the DFS Replication log contains SYSVOL synchronisation, the DNS Server log contains zone and record problems, the System log contains Netlogon and time service errors, and the Security log contains sign-in and object change records.
With Performance Monitor (PerfMon), counters specific to AD DS are monitored in addition to CPU, RAM, disk and network usage. NTDS\LDAP Searches/sec and NTDS\LDAP Client Sessions show the query load, NTDS\DRA Inbound Bytes Total/sec and NTDS\DRA Outbound Bytes Total/sec show the replication traffic, and the Security System-Wide Statistics\Kerberos Authentications and NTLM Authentications counters show how the authentication load is distributed between the protocols. Without knowing the level of these values during normal operation, it is not possible to decide whether a problem is caused by load.
The replication status is checked with the repadmin /replsummary and repadmin /showrepl commands. The first summarises, for each DC, the longest time since the last successful replication (Largest Delta) and the ratio of failed replications to the total. The second gives the time and the result of the last attempt for each partition and each partner. dcdiag runs the general health tests of the DC.
The DC that the client has located is shown by the nltest /dsgetdc:{Domain} command, and the last known state of the secure channel is shown by the nltest /sc_query:{Domain} command. The {Domain} value here is replaced with the domain name in the environment. The nltest /sc_verify command is not a read-only operation. It requires administrator rights and, if the channel is broken, removes it and establishes it again, so it should be used only for repair.
In environments with a large number of DCs, these checks cannot be maintained manually. Thresholds are defined and alerts are generated automatically with monitoring tools such as System Center Operations Manager (SCOM), Azure Monitor or PRTG. In hybrid environments, the AD DS agent of Microsoft Entra Connect Health shows replication and performance data in the portal. Microsoft Defender for Identity analyses DC traffic and detects identity-based attack techniques.
10- Client Interaction and Protocol Support
When a domain-joined client starts, it first locates a DC. The DC Locator process queries the SRV records in DNS, learns from the DCs that respond which site the client is in according to its IP address and prefers a DC in that site. The computer account then authenticates, the secure channel is established and Group Policy is processed.
LDAP (Lightweight Directory Access Protocol) is the protocol that clients and applications use to search the directory and read objects. Kerberos performs authentication. With the default settings, a TGT is valid for 10 hours and can be renewed for up to 7 days. These values are set by the Kerberos Policy in the Default Domain Policy and are not changed unless there is a specific requirement.
Because Kerberos relies on timestamps, authentication fails if the clock difference between the client and the DC exceeds 5 minutes by default. Synchronisation is provided by the Windows Time Service (W32Time), and domain-joined clients take the time from the domain hierarchy automatically.
A change made in a GPO reaches the client at the next refresh cycle. To apply it without waiting, gpupdate /force is run on the client. This command also reprocesses unchanged settings on the computer where it runs. Not every setting is applied by a background refresh. Software Installation is processed only at computer startup and at user sign-in, and Folder Redirection is processed only at sign-in. For these settings gpupdate /force is not sufficient, and a restart or a sign-out and sign-in is required.
AD DS works with the LDAP, Kerberos and NTLM protocols. AD DS does not support web-based protocols such as SAML, OAuth 2.0 and OpenID Connect. For applications that need these protocols, authentication is performed through AD FS or Microsoft Entra ID. Problems between the client and the DC are examined with Event Viewer, DCDiag and NLTest.
11- Service Account Management
Service accounts are the accounts that applications and services use to access network resources. In the traditional method, a normal user account is created for this purpose, its password is set never to expire and the password stays unchanged for years. If a Service Principal Name (SPN) is defined on the account, any authenticated domain user can, in the default configuration, request a service ticket for this SPN and try to crack the ticket offline. In this attack, known as Kerberoasting, a weak and old password is recovered in a short time.
The fact that the request can be sent to the KDC does not mean that the ticket will always be issued. If an authentication policy is applied to the service account, the DC checks whether the requesting user and device meet the conditions in the policy and does not issue a service ticket if they do not. However, the main protection is the password itself. Account types whose password is generated by the system, is long and random and is renewed regularly make offline password guessing from a ticket practically impossible.
|
Account Type |
Scope |
Characteristics |
|
Managed Service Account (MSA) |
Single server |
Introduced with Windows Server 2008 R2. The computer that the account is bound to manages the password. |
|
Group Managed Service Account (gMSA) |
Multiple servers |
Introduced with Windows Server 2012. The DC generates the password and authorised servers retrieve it from the DC. The default change interval is 30 days. |
|
Delegated Managed Service Account (dMSA) |
Migration from an existing service account |
Introduced with Windows Server 2025. It allows a traditional service account to be migrated to a managed account. |
A KDS Root Key must exist in the forest before gMSAs can be used. The password change interval is set only when the account is created. Web farms that run behind load balancing or services spread across multiple nodes are the typical use cases for a gMSA.
Delegation settings must also be reviewed. A service with unconstrained delegation keeps the TGTs of the users who connect to it, and if it is compromised, every service can be accessed on behalf of these users. Kerberos Constrained Delegation (KCD) or resource-based constrained delegation is used instead. On privileged administrator accounts, the "Account is sensitive and cannot be delegated" option is selected.
Service accounts and computer accounts must not be added to the Protected Users group. Because the password or certificate is always present on the host, these accounts cannot benefit from the local protection that the group provides.
Managed accounts are listed with the Get-ADServiceAccount PowerShell command, and those bound to a computer are listed with the Get-ADComputerServiceAccount command. Where the accounts sign in is tracked through the Event ID 4624 (successful sign-in) records created on the target computer. Event ID 4648 shows a sign-in attempt made with explicit credentials and is created on the computer where the attempt was made. Service accounts that are unused or have more privileges than necessary must be reviewed and removed at regular intervals.
12- LDAP Signing, LDAP Channel Binding and LDAPS
LDAP traffic flows over TCP 389, and the use of this port does not mean that the traffic is unprotected. Domain-joined Windows systems and applications that connect with Kerberos or NTLM can sign and encrypt the traffic on the same port. The risk is a Simple Bind, which sends the password in clear text, being performed on an unencrypted connection, and unsigned connections being open to man-in-the-middle attacks.
There are 3 mechanisms against this risk.
|
Mechanism |
What It Provides |
|
LDAP Signing |
Makes data signing mandatory for connections over TCP 389. Unsigned and unencrypted Simple Bind requests are rejected. |
|
LDAP Channel Binding |
Binds the authentication to the TLS session for connections made over TLS. It prevents an attacker in the middle from relaying the authentication request to another session. |
|
LDAP Over SSL/TLS (LDAPS) |
Encrypts the entire connection with TLS on TCP 636. For applications that perform a Simple Bind with a password, TLS must be established before the bind. |
In new Active Directory environments deployed with Windows Server 2025, LDAP Signing is required by default. In earlier versions the default value is None, so this setting must be configured separately.
For LDAPS to work, the DC must have a certificate that contains the FQDN of the DC in the Subject or Subject Alternative Name field, has the Server Authentication purpose and has a private key. AD DS looks for the certificate first in the Personal store of the NTDS service and then in the Personal store of the Local Computer. On DCs with more than 1 valid certificate, placing the certificate to be used for LDAPS in the NTDS store makes it clear which certificate is selected. Both the DC and the connecting clients must trust the Certificate Authority (CA) that issued the certificate. Whether LDAPS works is verified by connecting with the ldp.exe tool using port 636 and the SSL option.
Before hardening, the systems that connect without signing must be identified. The following events in the Directory Service log are used for this purpose.
|
Event ID |
Meaning |
|
1220 |
LDAPS cannot be used because the DC could not find a valid certificate. |
|
2886 |
A configuration warning. It is generated while the LDAP Signing policy is None. |
|
2887 |
While the LDAP Signing policy is None, it reports the count if at least 1 unsigned or clear-text bind was completed in the last 24 hours. |
|
2888 |
While the LDAP Signing policy is Require Signing, it reports the count if unprotected bind requests were rejected in the last 24 hours. |
|
2889 |
Shows the IP address and the account of the client that performed an unsigned bind. It is generated when the LDAP Interface Events log level is raised to 2 or higher. |
|
3039 |
A specific client failed Channel Binding Token (CBT) validation in a bind over TLS. It requires log level 2. |
|
3040 |
While the Channel Binding policy is Never, it reports the count if at least 1 unprotected LDAPS bind was completed in the last 24 hours. |
|
3041 |
A configuration warning. It is generated while the Channel Binding policy is Never. It does not indicate that a client connection took place. |
TCP and UDP port 389 must not be closed on the firewall. DC Locator and domain-joined clients use this port. Security is provided by making LDAP Signing and Channel Binding mandatory, not by closing the port.
13- Password Policy and Account Lockout Policies
The Password Policy and Account Lockout settings are located in the GPO under Computer Configuration > Policies > Windows Settings > Security Settings > Account Policies. For domain accounts, only the values in a GPO linked at domain level apply. Password settings in a GPO linked to an OU do not affect domain accounts. They apply only to the local accounts of the computers in that OU. The Default Domain Policy is used for these settings.
|
Setting |
Recommendation |
|
Minimum Password Length |
At least 14 characters |
|
Password must meet complexity requirements |
Enabled |
|
Enforce Password History |
24 passwords |
|
Minimum Password Age |
1 day. It prevents the user from returning to the old password by changing the password several times in a row. |
|
Maximum Password Age |
Set according to the compliance requirements of the organisation. |
There is no single correct value for Maximum Password Age. Starting with Windows 10 and Windows Server version 1903, Microsoft removed the periodic password change requirement from its security baselines. Long passwords, a banned password list and MFA are recommended instead. The DC agent of Microsoft Entra Password Protection can be used so that leaked and common passwords are also rejected in the on-premises environment. If compliance standards require a specific period, that value is applied.
When different rules are needed for specific groups of accounts, Fine-Grained Password Policies (FGPP) are used. The rules are defined in Password Settings Objects (PSOs) and apply only to user objects or global security groups. They cannot be applied directly to an OU. To apply them to the users in an OU, a group that contains those users is created.
When more than 1 PSO matches a user, the PSOs linked directly to the user are evaluated first. If such a PSO exists, those that come through groups are ignored. If more than 1 PSO is linked directly, the PSO with the lowest msDS-PasswordSettingsPrecedence value applies. If no PSO is linked directly to the user, the PSO with the lowest value is again selected from the PSOs linked to the global security groups the user belongs to. The effective PSO is shown by the Get-ADUserResultantPasswordPolicy command.
The Account Lockout Policy slows down brute-force attacks by locking the account temporarily after a certain number of failed attempts.
|
Setting |
Meaning |
|
Account Lockout Threshold |
The number of failed attempts required to lock the account |
|
Account Lockout Duration |
The period for which the account stays locked |
|
Reset Account Lockout Counter After |
The period after which the failed attempt counter is reset |
The Microsoft Windows Server 2025 security baseline (January 2025) recommends a threshold of 3 attempts and a lockout duration and counter reset time of 15 minutes. In earlier baselines the threshold was 10 attempts. As the threshold is lowered, the attacker has fewer attempts, but a phone or a mapped drive that continues to use the old password also locks the account more easily. In addition, an attacker can cause a service outage by locking accounts deliberately. The values must be selected with this balance in mind.
The lockout of domain accounts is recorded in the Security log of the DCs with Event ID 4740, and the record contains the name of the computer that caused the lockout. Because account lockout is processed on the PDC Emulator, the investigation starts on this DC, and the logs of the other DCs are also checked if necessary. Failed attempts are tracked on the DCs with Event ID 4771 and 4776, and on the computer where the attempt was made with Event ID 4625.
14- Sites and Services Management
In Active Directory, a site is a group of IP subnets that are connected to each other by a fast and reliable connection. The site structure determines 2 things: which DC the clients are directed to and how replication flows between DCs. Site boundaries are not drawn according to the physical address. They are drawn according to the subnets, the speed and reliability of the connection and where the DCs are located. In most environments each location becomes a separate site, but 2 locations with a fast and reliable connection between them can also be defined in the same site. The subnet of a small office without a DC can be associated with a nearby site.
The site of a client is determined by its IP address. In the Active Directory Sites and Services console each subnet is associated with a site, and DC Locator directs the client to a DC in its own site according to this mapping. A client whose subnet is not defined can go to a DC in any site. This leads to sign-ins through a DC in a remote location and to unnecessary WAN traffic. Clients without a match appear with a NO_CLIENT_SITE entry in the Netlogon.log file on the DCs. The site that a client is assigned to is checked with the nltest /dsgetsite command.
Sites are connected to each other with site link objects. Each site link has a cost value (100 by default), a replication interval (180 minutes by default) and a schedule. The ISTG looks at the cost values, selects the lowest-cost path and automatically determines the bridgehead server in each site that carries replication to the other side.
The IP (RPC) transport is used for intersite replication. The SMTP transport cannot replicate the Domain partition. It can carry only Schema, Configuration and Global Catalog data and is not preferred in current environments.
Every new subnet must be added to the correct site, the site link cost values must reflect the real connection capacity and the topology generated by the KCC must not be disrupted by manually created connection objects. The replication status is verified regularly with repadmin /replsummary, repadmin /showrepl and dcdiag.
15- Schema Extensions and Customisations
The schema defines which object types can be created in the directory and which attributes each type can have. Object classes and attributes are stored in the Schema partition and are replicated to every DC in the forest. A forest has a single schema.
Write operations on the schema are processed by the DC that holds the Schema Master role. The account that performs the operation must be a member of the Schema Admins group or must have been delegated the right to update the schema. ldifde or PowerShell is used to add a new class or attribute. For example, the ldifde -i -s {Schema Master FQDN} -f schema_update.ldf command imports the LDF file that contains the definitions and targets the Schema Master. The {Schema Master FQDN} value is replaced with the full name of the DC that holds the role. ADSI Edit and the Active Directory Schema snap-in can also be used to view and edit the schema.
A class or attribute added to the schema cannot be deleted. It can only be deactivated. The change replicates to every DC in the forest and cannot be reverted.
The main points to consider in schema extension operations:
✅ The change must first be tested in a test forest that reflects the schema of the production environment.
✅ Before the operation, it must be verified that replication is healthy across the forest.
✅ A unique OID that belongs to the organisation must be used for custom attributes and classes.
✅ It must be checked whether existing applications that read the schema are affected by the new definitions.
Some products, such as Microsoft Exchange, extend the schema during installation. If a new Windows Server version is to be deployed as a DC and the schema changes required by that version have not yet been applied to the forest, the schema is updated. Not every new version requires this. For example, Windows Server 2019 and 2022 use the same schema version. When a new server is configured as a DC, the installation wizard runs the required adprep steps itself. If the operating system of an existing DC is to be upgraded in place (in-place upgrade), adprep /forestprep and adprep /domainprep are run manually in advance.
The schema version is stored in the objectVersion attribute of the Schema partition object. It has the value 87 for Windows Server 2016, 88 for Windows Server 2019 and 2022, and 91 for Windows Server 2025. This value is not the same thing as the functional level. Updating the schema does not raise the functional level, and the 2 progress independently of each other. The current version is read with the command below.
Get-ADObject (Get-ADRootDSE).schemaNamingContext -Properties objectVersion
The following command can be used to list the classes defined in the schema.
Get-ADObject -SearchBase (Get-ADRootDSE).schemaNamingContext -Filter 'objectClass -eq "classSchema"'
Before a new attribute is added, it should be checked whether the existing attributes meet the requirement. In environments where the Exchange schema extension has been applied, the attributes from extensionAttribute1 to extensionAttribute15 can be used for this purpose. These attributes come with Exchange and do not exist in a forest where the Exchange schema extension has not been applied.
16- Delegation of Control
Delegation of control is the assignment of the right to perform specific operations on specific objects in the directory to a user or a group. By default, the Domain Admins and Enterprise Admins groups have full control over the directory. Adding a helpdesk employee who resets passwords or a technician who joins computers to the domain to these groups is against the least privilege principle, and the compromise of any of these accounts puts the entire domain at risk.
Delegation is performed with the Delegation of Control Wizard, which opens when an OU is right-clicked and Delegate Control is selected in the Active Directory Users and Computers (ADUC) console. The wizard assigns 1 of the predefined tasks for that OU to the selected group. These tasks include creating and managing user accounts, resetting passwords and forcing a change at next sign-in, modifying group membership, joining a computer to the domain and managing Group Policy links. Unlocking accounts is not among the predefined tasks. If only this right is to be delegated, Custom Task is selected in the wizard and read and write permission is granted for the lockoutTime attribute of user objects.
In the background, new Access Control Entry (ACE) records are added to the Access Control List (ACL) of the OU. Permissions on AD objects are different from those in the file system. Rights such as Read Property, Write Property, Create Child and Delete Child, and extended rights such as Reset Password, can be granted individually and, if required, only for a specific attribute.
The points to consider when applying delegation are as follows:
✅ The right must be granted on the relevant OU, not at domain level.
✅ The right must be assigned to security groups, not to individual users.
✅ It must be taken into account that permissions are passed to child OUs through inheritance.
✅ Delegation is not permanent on accounts protected by AdminSDHolder. SDProp returns the ACL of these accounts to the template the next time it runs.
The permissions on an OU are displayed with the Get-Acl command in a PowerShell session with the ActiveDirectory module loaded:
(Get-Acl -LiteralPath 'AD:\OU=IT,DC=firatboyan,DC=com').Access | Format-Table IdentityReference, ActiveDirectoryRights, AccessControlType
The same information can also be obtained with the dsacls command:
dsacls "OU=IT,DC=firatboyan,DC=com"
The operations that delegated accounts perform on the directory are tracked with Event ID 4662. For this record to be generated, the Audit Directory Service Access policy must be enabled and an audit entry (SACL) must be defined on the object to be monitored.
An incorrectly configured delegation is among the paths used in privilege escalation attacks. The right to change the membership of a group or to reset the password of an account can be chained step by step up to Domain Admins privileges. Delegations must be reviewed at regular intervals and unused permissions must be removed. Just Enough Administration (JEA), which limits administrative operations to restricted PowerShell sessions, can also be used for this purpose.
17- Auditing and Compliance Reporting
Auditing is the recording of who changed what and when in the directory, and of who signed in where. Which events are logged on DCs is determined with a Group Policy Object (GPO), through the subcategories under Advanced Audit Policy Configuration. These settings are configured in a GPO that applies to the DCs.
|
Category |
Subcategory |
What It Records |
|
Account Logon |
Audit Kerberos Authentication Service |
TGT requests and pre-authentication failures |
|
Logon/Logoff |
Audit Logon |
Sessions opened and attempted on the computer |
|
Account Management |
Audit User Account Management |
Account creation, deletion, password reset, lockout |
|
Account Management |
Audit Security Group Management |
Group creation and membership changes |
|
DS Access |
Audit Directory Service Changes |
The old and new value of the attribute changed on objects |
|
DS Access |
Audit Directory Service Access |
Access attempts on objects |
When these policies are enabled, the main events to follow in the Security log are as follows:
|
Event ID |
Meaning |
|
4624 |
Successful sign-in. It is created on the computer where the session was opened. |
|
4625 |
Failed sign-in. It is created on the computer where the sign-in was attempted. |
|
4720 |
A user account was created |
|
4728 |
A member was added to a global security group |
|
4740 |
A user account was locked out |
|
4662 |
An operation was performed on a directory object |
|
5136 |
A directory object was modified |
Because events 4624 and 4625 are created on the computer where the session was opened or attempted, checking only the DCs is not sufficient to see all sessions of a user. Enabling the policy alone is also not sufficient for events 5136 and 4662 to be generated. The relevant operation must be defined in the audit entry (SACL) of the object or OU to be monitored.
What happens when the Security log is full depends on the retention setting of the log. With the default setting, the oldest records are overwritten. If automatic archiving is configured, the full log file is archived and a new one is opened. How long the records are kept is determined by the legislation the organisation is subject to and the standard it applies. For long-term retention and for examining records from different sources together, the logs are forwarded to a SIEM (Security Information and Event Management) solution or to a central log server.
PowerShell is sufficient for short-term investigations. The changes made to directory objects in the last 24 hours are listed with the command below. The command is run on the DC in a PowerShell session opened with administrator rights.
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=5136; StartTime=(Get-Date).AddDays(-1)} | Format-Table TimeCreated, Message -Wrap
The command below can be used to see the successful sign-in records of a specific user. The command is run on the computer where the session was opened, because -LogName Security reads the Security log of the computer on which the command runs. The {User Name} value is replaced with the exact name of the account to search for. The filter checks the TargetUserName field of the event, so records in which the name appears in another field are not included in the result. If accounts with the same name exist in different domains, the query is narrowed with the TargetDomainName field.
Get-WinEvent -LogName Security -FilterXPath "*[System[EventID=4624] and EventData[Data[@Name='TargetUserName']='{User Name}']]" | Select-Object TimeCreated, Message
If events are collected on a collector server with Windows Event Forwarding, the forwarded records are not written to the Security log of the collector. They are written to the log that the subscription defines as the destination. The name of this log is used in the query. If the destination log is ForwardedEvents, the command is as follows. The MachineName field added to the output shows which computer the record came from.
Get-WinEvent -LogName ForwardedEvents -FilterXPath "*[System[EventID=4624] and EventData[Data[@Name='TargetUserName']='{User Name}']]" | Select-Object TimeCreated, MachineName, Message
For continuous monitoring and reporting, solutions such as Microsoft Defender for Identity, Microsoft Sentinel, Splunk or ManageEngine ADAudit Plus can be used. As the audit scope grows, the log volume also increases. Deciding what to monitor instead of enabling every subcategory reduces both the load on the DC and the risk of the important event being lost among the records.
Services That Work with the Domain Controller
The functions described so far run directly on the DC. The services below depend on AD DS, but they are not part of the DC and are placed on separate servers or in the cloud. Running a role other than the directory service on a DC both increases the attack surface and ties the maintenance of the DC to the requirements of that role.
|
Service |
Relationship with AD DS |
Placement |
|
Print Server |
Printers are published in the directory and deployed with GPOs. |
Separate member server. The Print Spooler service is disabled on DCs. |
|
WSUS and Configuration Manager |
With standalone WSUS, clients are directed to the WSUS server with a GPO. Configuration Manager sets the update source of the client itself. |
Separate member server. |
|
AD FS |
Authenticates the user against AD DS and issues a token. |
Separate member server, protected as Tier 0. |
|
Microsoft Entra Connect |
Synchronises the objects in the directory with Microsoft Entra ID. |
Separate member server, protected as Tier 0. |
|
IPAM |
Collects data from DCs, DNS servers and DHCP servers. |
Separate member server. Installation on a DC is not supported. |
|
Conditional Access |
Controls the cloud access of synchronised identities. |
A Microsoft Entra ID service with no on-premises component. |
1- Network Printer Configuration and Management
In a domain environment, printers are shared on a print server and managed with the Print Management Console. A shared printer can be published in the directory, so users can search for a printer by location or by feature.
Printers are deployed to clients with Group Policy. The Group Policy Preferences items defined under User Configuration > Preferences > Control Panel Settings > Printers add the printer automatically when the user signs in. With Item-Level Targeting, printers can be differentiated by group membership or by site inside the same GPO.
The Print, Manage Documents and Manage Printers permissions on a printer are granted on the Security tab. Print jobs are recorded with Event ID 307 when the PrintService Operational log is enabled.
After CVE-2021-34527 (PrintNightmare) and the vulnerabilities that followed it, the Point and Print behaviour was hardened. When the RestrictDriverInstallationToAdministrators value is 1 or is not defined at all, printer driver installation with Point and Print requires administrator rights. This setting takes precedence over all settings in the Point and Print Restrictions policy. Therefore the NoWarningNoElevationOnInstall value, which turns off the warning and the elevation prompt, does not remove this requirement by itself. The protection is disabled when the RestrictDriverInstallationToAdministrators value is set to 0, and this change is not recommended.
The Print Spooler service must be disabled on domain controllers. While the service is running, any authenticated user can connect remotely to the Spooler service of the DC. When the service is disabled, the automatic clean-up of old printer records in the directory (print pruning) stops.
2- Software Deployment and Update Management
The Software Installation feature of Group Policy deploys .msi packages to computers from Computer Configuration > Policies > Software Settings > Software Installation. Installation takes place only at computer startup or at user sign-in. Because it offers no central reporting and scheduling, it is suitable for simple installations.
Windows Server Update Services (WSUS) allows updates to be taken from a local server instead of Microsoft Update and to pass through an approval process. With standalone WSUS, clients are directed to the WSUS server with a GPO. With the client-side targeting setting, computers are placed automatically into groups on WSUS, and a different approval rule can be applied to each group. Microsoft announced WSUS as deprecated in September 2024. Existing features continue to be supported and the role is included in Windows Server 2025, but no new features will be developed.
For broader requirements, Microsoft Configuration Manager (formerly MECM and SCCM) manages application deployment, patch management, inventory and compliance reporting from a single place. Configuration Manager writes the update source of the client (Software Update Point) itself through local policy. If a domain GPO that points to a different WSUS server is applied to the same client, this setting is overridden and the update scan fails. On the cloud side, Microsoft Intune and Windows Autopatch do the same work. For updating non-Microsoft applications, solutions such as Patch My PC, Ivanti or ManageEngine can be used together with these tools.
3- Active Directory Federation Services (AD FS)
Active Directory Federation Services (AD FS) is the federation service that provides access with Single Sign-On (SSO) to web-based applications and to the services of other organisations using AD DS accounts. It supports the SAML, WS-Federation, OAuth 2.0 and OpenID Connect protocols, which AD DS does not support.
When a user accesses an application, the application redirects the user to AD FS. AD FS authenticates the user against AD DS, builds the claims from the information it reads from the directory and issues a signed token. The application never sees the password. It only trusts the token signed by AD FS.
In the architecture, the Federation Server performs authentication and issues tokens. The Web Application Proxy (WAP) receives requests from the internet in the DMZ and forwards them to the Federation Server. Applications that trust AD FS are defined in 2 ways, depending on the protocol. A Relying Party Trust is created for applications that use SAML and WS-Federation. Clients and web APIs that use OAuth 2.0 and OpenID Connect are configured in an Application Group.
AD FS signs the tokens it issues with the Token Signing certificate. The Token Decrypting certificate is used to decrypt encrypted tokens that are sent to it. With the default setting, these certificates are renewed automatically before they expire. The outage risk does not come from the renewal itself. It comes from the other party not obtaining the new certificate in time. Applications that read the federation metadata automatically obtain the new certificate without intervention, and the new public key must be sent manually to those that do not. Extranet Smart Lockout must be configured against password attempts from outside. Because of the tokens they issue, Federation Servers are treated at the same protection level as a DC.
Federation is not mandatory for Microsoft 365. Microsoft recommends using Password Hash Synchronization or Pass-Through Authentication in new deployments and migrating existing AD FS environments to Microsoft Entra ID.
4- Directory Synchronisation with Cloud Services
In the hybrid identity model, the user, group and device objects in on-premises AD DS are synchronised with Microsoft Entra ID. The user accesses both on-premises resources and Microsoft 365 services with the same identity. In the classic synchronisation model, the Source of Authority of the objects is AD DS. The account is created, changed and deleted on the on-premises side, and the change is reflected in the cloud. For supported user and group objects, the Source of Authority can be transferred to Microsoft Entra ID when certain conditions are met, and the object is managed in the cloud from then on.
There are 2 tools for synchronisation. Microsoft Entra Connect Sync is installed on an on-premises server and synchronises every 30 minutes by default. The installation steps are covered in the Part 1 and Part 2 articles. Microsoft Entra Cloud Sync keeps the configuration in the cloud and runs only a lightweight agent on the on-premises side. It is preferred in scenarios such as synchronising multiple forests that are disconnected from each other.
1. Authentication Methods
How synchronised users are authenticated in the cloud is determined by 1 of 3 methods.
|
Method |
Where Authentication Takes Place |
Point to Consider |
|
Password Hash Synchronization (PHS) |
Microsoft Entra ID |
A rehashed form of the password hash is synchronised to the cloud every 2 minutes. Cloud sign-ins work even if the on-premises environment is unreachable. |
|
Pass-Through Authentication (PTA) |
On-premises DC |
Password validation is forwarded to the DC through on-premises agents. Without a running agent and a reachable DC, no new password validation can be performed. PHS can also be enabled separately as a backup, but the switch to PHS is not automatic and is performed manually. |
|
Federation (AD FS) |
On-premises DC through AD FS |
Requires a separate AD FS infrastructure. It is used for specific requirements such as smart card sign-in. |
Seamless Single Sign-On (Seamless SSO) allows users on domain-joined devices in the corporate network to access cloud services without entering a password. It works together with PHS or PTA and cannot be used with AD FS. When it is enabled, a computer account named AZUREADSSOACC is created in the directory, and the recommendation is to renew the Kerberos key of this account at least every 30 days. A detailed comparison of the methods is in the Difference Between Seamless SSO, PHS and PTA article.
Domain-joined devices can also be registered in Entra ID with Microsoft Entra hybrid join. Because these devices receive a Primary Refresh Token, they provide SSO without needing Seamless SSO. How the registration process works is covered in the Hybrid Join and SCP Registration Process article.
2. Security & Compliance
Microsoft Entra Connect Sync works with 2 accounts on the on-premises side. The ADSync service account runs the synchronisation service. The AD DS Connector account accesses the on-premises directory with the permissions granted for the enabled features. The permissions of this account vary according to the features in use. If PHS is enabled, the account is granted the Replicate Directory Changes and Replicate Directory Changes All permissions on the domain, which means that the account can read the password hashes in the directory. For this reason, the synchronisation server must be treated at the same protection level as a DC, no other role must run on it and administrator access must be restricted.
In current installations, the connection to the cloud side is made through an application identity (service principal). Connect Sync authenticates to Microsoft Entra ID with a certificate, not with a user name and password. With the default option, Connect Sync creates and renews the certificate itself. New installations are configured in this way, and automatic configuration requires version 2.5.76.0 or later. In older installations, the Microsoft Entra Connector account that uses a user name and password can still be present. These servers do not move to the new method automatically. The migration is performed manually, and removing the old account is recommended after it is complete.
Administrative authority is also separate on the 2 sides. Local administrators on the server and members of the ADSyncAdmins group can change the synchronisation rules and the sync engine configuration. The Hybrid Identity Administrator role on the Entra ID side is required for installation and for the configuration on the cloud side.
The protection features on the cloud side depend on licensing. Conditional Access requires Microsoft Entra ID P1. Microsoft Entra ID Protection, which provides risk-based policies, requires Microsoft Entra ID P2, and Privileged Identity Management (PIM), which provides time-limited assignment of privileged roles, requires a Microsoft Entra ID P2 or Microsoft Entra ID Governance licence. Password Writeback is enabled so that a password reset in the cloud with Self-Service Password Reset (SSPR) is written back to on-premises AD DS, and this feature requires a Microsoft Entra ID P1, P2 or Microsoft 365 Business Premium licence. A comparison of the MFA methods is in the MFA Implementation Methods article.
On the on-premises side, Microsoft Defender for Identity monitors the traffic on DCs to detect identity-based attacks and combines these signals with the risk evaluation on the cloud side.
3. Management and Monitoring
The synchronisation status is monitored through the Synchronization Service Manager on the Microsoft Entra Connect server. The result of each synchronisation step and the numbers of added, updated and deleted objects are shown here. Which attribute is transferred by which rule is examined with the Synchronization Rules Editor. Microsoft Entra Connect Health reports synchronisation errors and the agent status in the portal.
Which objects are sent to the cloud is determined by domain-based and Organizational Unit (OU)-based filtering. OUs that contain service accounts that will not be used in the cloud can be left out of scope.
For redundancy, a second server is installed in Staging Mode. This server processes the synchronisation rules but does not write to the cloud. When the active server is lost, Staging Mode is turned off and synchronisation continues from this server.
On the cloud side, the Sign-in Logs record sign-in attempts and the Audit Logs record changes made in the directory. These records are kept for a limited period that depends on the licence. For longer retention and correlation, the logs are forwarded to Microsoft Sentinel or to another SIEM solution.
5- IP Address Management (IPAM)
IP Address Management (IPAM) is a feature included in Windows Server that allows the IP address space in the network and the DHCP and DNS servers to be monitored and managed from a single console. The IPAM server must be a domain member, and it automatically discovers the DHCP servers, DNS servers and DCs in the forest.
IPAM cannot be installed on a domain controller. When it is installed on the same server as DHCP Server, DHCP server discovery is disabled. A separate member server must be used.
With IPAM, IPv4 and IPv6 address blocks, subnets and ranges are defined hierarchically. How many free addresses remain in which subnet, the utilisation of DHCP scopes and the status of DNS zones are monitored from a single screen. DHCP scopes and DNS records can be created and changed from the IPAM console.
The direct relationship between IPAM and the DC is in the IP Address Tracking feature. IPAM combines the lease records on DHCP servers with the sign-in events on DCs and NPS servers. This makes it possible to query which computer and which user used a specific IP address at a specific time. For this to work, auditing of account logon events must be enabled on the DCs.
IPAM is a monitoring and management tool and does not block access to the network. Preventing undefined devices from connecting is the task of 802.1X and Network Access Control solutions.
6- Conditional Access and Security Policies
Conditional Access is the access policy engine of Microsoft Entra ID. It has no equivalent in on-premises AD DS and applies only to sign-ins that pass through Entra ID. It takes effect after the identity of the user has been verified, looks at the conditions of the sign-in and allows access, requests additional verification or blocks access. A Microsoft Entra ID P1 licence is required to use it.
A policy consists of 2 sections. The Assignments section determines who the policy applies to, for which resource and under which condition, and the Access Controls section determines the result.
|
Section |
Content |
|
Assignments |
Users (user, group or role), Target resources (target application or user action), Network (location) and Conditions (device platform, Client apps, sign-in risk, user risk, device filter) |
|
Access Controls, Grant |
Block access, Require multifactor authentication, Require authentication strength, Require device to be marked as compliant, Require Microsoft Entra hybrid joined device, Require app protection policy |
|
Access Controls, Session |
Sign-in frequency, Persistent browser session |
Device-based policies work together with Microsoft Intune. Intune reports the compliance state of the device to Entra ID, and Conditional Access can then allow only devices that are marked as compliant. A hybrid join requirement can be set for domain-joined devices.
Risk-based policies use the risk level produced by Microsoft Entra ID Protection and require Microsoft Entra ID P2. When signals such as leaked credentials or an unusual location are detected, MFA or a password change can be made mandatory.
For app-based restriction on mobile devices, the Require app protection policy control is used in new policies. The Require approved client app control, which was previously used for this purpose, became read-only on 30 June 2026. No new policy can be created with this control, and existing policies that contain it cannot be edited. Existing policies that are enabled continue to be applied and can be disabled or deleted.
A new policy must first be run in Report-only mode and its effect must be reviewed in the Sign-in Logs. At least 2 cloud-only emergency access (break-glass) accounts must be excluded from policies that block or restrict sign-in and must be protected with a phishing-resistant method.
Primary DC & Additional DC Distinction
The terms "Primary DC" and "Additional DC" are common in everyday use, but Active Directory has no primary and secondary hierarchy between DCs. Separating where these terms come from and what they correspond to today is necessary in order to assess correctly what is affected when a DC becomes unavailable.
1- Primary Domain Controller (PDC) and PDC Emulator
✅ Primary Domain Controller (PDC): In the Windows NT 4.0 domain model, this was the server that held the only writable copy of the account database. The other servers held a read-only copy as Backup Domain Controllers (BDCs) and handled sign-in requests. When the PDC became unavailable, sign-in continued through the BDCs, but operations such as creating accounts or changing passwords could not be performed until a BDC was promoted to PDC.
✅ PDC Emulator: In Active Directory, this is the FSMO (Flexible Single Master Operation) role that takes over some of the duties of the PDC. The DC that holds this role does not have more authority than the others. Only a few duties are reserved for it.
1.1- PDC Emulator Features
✅ It is the reference point in the time hierarchy of the domain. The PDC Emulator in the forest root domain is the time source of the entire forest.
✅ Password changes made on other DCs are forwarded to this DC with priority. An authentication that fails on a DC because of a wrong password is checked with the PDC Emulator before an error is returned to the user. In this way, a user who has just changed the password can also sign in through a DC that the change has not yet reached.
✅ Account lockout processing takes place on this DC. A lockout investigation starts from the Security log of this DC.
✅ The Group Policy Management Console connects to this DC by default for GPO editing.
Handling authentication requests is not a duty specific to the PDC Emulator. Every DC in the domain handles Kerberos and NTLM requests. When the PDC Emulator is temporarily unavailable, sign-in continues. What is affected is time synchronisation, the immediate effect of password changes and the account lockout behaviour.
2- Additional Domain Controller (ADC)
Additional Domain Controller (ADC) is the term used for a DC that is added to an existing domain later. It is not an official role or DC type. It comes from the "Add a domain controller to an existing domain" option in the installation wizard. 2 types of DC can be added to an existing domain. A writable DC holds a writable copy of the same database as the first DC and can perform the same operations. A Read-Only Domain Controller (RODC) holds a read-only copy, does not accept directory changes and cannot hold a FSMO role.
2.1- Additional DC Features
The following features apply to a DC that is added as writable.
✅ It hosts a full writable copy of the Active Directory database.
✅ It handles authentication requests and directory queries independently.
✅ It can hold the DNS and Global Catalog roles.
✅ It can take over any of the FSMO roles.
A DC added to the domain does not wait as a standby. From the moment it is put into service, it serves the clients in its own site. The difference of the first DC is that it took the FSMO roles during installation. The first DC of a new forest takes all 5 roles. The first DC of a new domain added to an existing forest takes only the 3 domain roles, and the forest roles stay where they are. When the roles are moved to another DC, this difference also disappears.
3- Differences Between the Windows NT 4.0 Model and the Active Directory Model
|
Topic |
Windows NT 4.0 |
Active Directory |
|
Writable copy |
PDC only |
All DCs except RODCs |
|
Replication model |
Single-master. The change is made on the PDC and copied to the BDCs. |
Multi-master. The change is made on any writable DC and replicated to the others. |
|
Operations tied to a single DC |
All write operations |
Only the operations covered by the 5 FSMO roles |
|
When the main DC becomes unavailable |
Sign-in continues from the BDCs, and no changes can be made. |
The other writable DCs continue the operations. Only the operations tied to the FSMO roles held by that DC wait. |
Advantages of Multiple Domain Controllers
Microsoft recommends at least 2 DCs in every domain. The benefit of the second DC, regardless of the number of users, is that the domain continues to work if a single DC is lost. As the number of locations and users grows, the number of DCs is also planned according to the site structure.
1- High Availability and Maintenance Flexibility
When a DC fails or is restarted for an update, clients locate another DC through DNS, and sign-in, Group Policy processing and directory queries continue. Updates and hardware maintenance can be carried out even during working hours by taking the DCs out of service in turn. For this to work, the DNS and Global Catalog roles must be present on more than 1 DC and at least 2 DNS servers must be defined on the clients.
2- Load Distribution
In AD DS, no load balancer is placed in front of the DCs. The load is distributed automatically by the DC Locator mechanism. The client obtains the list of DCs in its own site from the SRV records in DNS and connects to 1 of them. By changing the Priority and Weight values in the SRV records, a specific DC can be made to receive fewer or more requests. For example, partly relieving the DC that holds the PDC Emulator role of client load is done in this way.
3- Location-Based Access
When a DC is placed in a location and the site and subnet definitions are made correctly, users sign in through the DC in their own location. When the WAN connection slows down or is interrupted, sign-in and access to local resources continue in that location. In locations with weak physical security, an RODC is used for this purpose. Being able to sign in on an RODC during a WAN outage depends on the passwords of the relevant user and computer accounts having been cached on that RODC earlier.
4- Continuity of FSMO Roles
Each FSMO role has a single owner in its own scope at any time, and the roles are not backed up. When there is more than 1 writable DC, the roles can be distributed between these DCs. If a DC that holds a role is to be shut down as planned, the roles it holds are transferred to another DC. If the DC is lost unexpectedly and permanently, the administrator seizes only the roles held by that DC to another DC. In a single-DC environment, none of these options exists.
5- Recovery Options
When a DC is lost completely, the other DCs continue to hold the current copy of the database. The record of the lost DC in the directory is cleaned up and a new server is configured as a DC. The database is transferred to the new server through replication, and no restore from backup is needed. Distributing DCs across different data centres keeps the domain running even in scenarios where a location is lost completely.
This advantage does not remove the need for backups. Replication also carries accidental deletions and incorrect changes to the other DCs. Backups and the Active Directory Recycle Bin are necessary regardless of the number of DCs.

Disadvantages of a Single Domain Controller
A single-DC design can be chosen for cost reasons in test environments and in very small offices. In a production environment, however, it ties all functions of the domain to the health of a single server.
1- Single Point of Failure Risk
When the DC becomes unavailable, every access that requires a new domain authentication or a new service ticket fails. Users can sign in with cached credentials to computers where they have signed in before. However, they cannot reach network resources that require domain authentication. Connections established before the outage and access with tickets that are still valid can continue for some time. Because the DNS role is usually also on the same server, internal name resolution stops as well.
2- Maintenance and Update Downtime
Most Windows Server updates require the server to be restarted. In a single-DC environment, every restart means downtime for the entire domain and makes it necessary to plan updates outside working hours. The Hotpatch feature in Windows Server 2025 allows some monthly security updates to be applied without a restart on servers that are connected to Azure Arc or run Azure Edition. However, a restart is still required in the months when baseline updates are released. If the server does not start after a faulty update or driver, there is no second DC to rely on.
3- Disaster Recovery and Data Loss Risk
When the server is lost, the only recovery method is to restore from a backup. The domain returns to its state at the time the backup was taken. Accounts created, passwords changed and computers joined to the domain after that time are lost. Because the passwords of computer accounts also return to their old state, the secure channel of some clients breaks and they may need to rejoin the domain. If only a System State backup is available and the server has to be recovered with a new Windows installation, this backup cannot be restored in a supported way. If there is no usable backup, the domain is rebuilt from the beginning.
4- Security Risk
In single-DC environments, other roles may also be installed on the server. When file sharing, a print server or business applications run on the same machine, each additional role brings a new service, a new port and a new administrator access. A vulnerability in any of these services gives an attacker the ability to run code directly on the server that holds all the password hashes of the domain.
5- Expansion Difficulties
A single DC can carry the authentication load of thousands of users if its hardware is sufficient. The limiting factor is usually location, not performance. When a new location is opened, the users there remain dependent on the head office over the WAN, and when the connection is interrupted, no new domain authentication can be performed in that location. The options also become narrower for upgrading the operating system version. The method that Microsoft recommends is to add a new DC with the new version and to remove the old one. An in-place upgrade is also possible between supported versions, but in a single-DC environment the domain cannot provide service during the upgrade, and if the operation fails, recovery is possible only from a backup.
If a single-DC design cannot be avoided, the minimum precautions are to take a Full Server backup regularly, to keep the backup in a location separate from the server, to have tested the restore, to enable the Active Directory Recycle Bin and to know the DSRM password. The cost of a second DC must be evaluated together with the cost of rebuilding the domain and of the downtime during that period.
This article covered what a domain controller is, how it differs from the workgroup model, the functions that run on it and the services that are placed alongside the DC. It then covered what the PDC Emulator and Additional DC concepts correspond to today and the consequences of single-DC and multiple-DC designs.
I hope you find it useful...
Feel free to share your thoughts and questions about this article in the comments below. Every contribution helps the content reach more people and makes for a more useful discussion.