Use this when clients use a remote DC or replication between locations needs control.
Sites
AD sites map subnets to physical locations so clients find a nearby domain controller and replication between locations is controlled. Each subnet must be assigned to a site in AD Sites and Services.
1. Sites and DCs: Get-ADReplicationSite.
2. Inter-site replication by schedule.
3. Bridgeheads per site.
4. Subnets mapped.
5. Replication latency between sites.
intra-site (change notification) and inter-site (schedule) replication
Context & applicabilityCommon mistakes · platform/version boundaries
- Subnets not defined for all locations, so clients authenticate against distant DCs (event 5807 lists them).
- Overlapping or wrong subnet assignments.
- All DCs left in
Default-First-Site-Name. - Sites created without DCs and without site link costs, causing unexpected DC selection.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A client in an unmapped subnet may authenticate to a distant DC.
- nltest /dsgetsite shows the site a client thinks it is in.
- Each site with users should have a DC or a planned fallback.
repadmin /replsummary— replication status summaryrepadmin /showrepl <dc>— inbound partners and last resultsrepadmin /queue <dc>— pending inbound replicationGet-ADReplicationFailure -Target <dc>— failuresdcdiag /test:replications— replication test
ReferenceWhy it matters1 section · depth on demand
Configuring sites
1. Create a site per location with good connectivity (AD Sites and Services or New-ADReplicationSite).
2. Add every client subnet: New-ADReplicationSubnet -Name 10.20.0.0/16 -Site Aarhus.
3. Place at least one DC (often also a Global Catalog) in sites with many users.
Clients that are not in any defined subnet pick a DC at random and log event 5807 on the DCs (%SystemRoot%\debug\netlogon.log lists the addresses). nltest /dsgetsite shows which site a computer thinks it is in.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Replication within a site (intra-site) is fast and uncompressed: change notification triggers replication about 15 seconds after a change, plus urgent replication for lockouts and password changes to the PDC. Between sites (inter-site), replication is compressed and scheduled over site links (default every 180 minutes, minimum 15).
repadmin /replsummary
repadmin /showrepl * /csv | ConvertFrom-Csv | ? 'Number of Failures' -gt 0
repadmin /syncall dc01 /AdeP # force sync all partitions, push, enterprise
Get-ADReplicationPartnerMetadata -Target dc01 | Select Partner,LastReplicationSuccess,LastReplicationResult
ReferenceConfiguration & state1 section · depth on demand
Commands
New-ADReplicationSite -Name Aarhus
New-ADReplicationSubnet -Name 10.20.0.0/16 -Site Aarhus
Move-ADDirectoryServer -Identity DC03 -Site Aarhus
nltest /dsgetsite
Documented example, not captured output. nltest /dsgetsite on a client shows the site it believes it is in.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Active Directory Replication → Sites. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/ · confidence 94%