Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Sites

Direct answer

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.

When to use this

Use this when clients use a remote DC or replication between locations needs control.

First 30 seconds

1. Sites and DCs: Get-ADReplicationSite.

2. Inter-site replication by schedule.

3. Bridgeheads per site.

4. Subnets mapped.

5. Replication latency between sites.

Operational verification

intra-site (change notification) and inter-site (schedule) replication

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • 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.
Platform / version applicability
Windows Server Active Directory and identity
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows Server Active Directory and identity
Scope / prerequisiteUse this when clients use a remote DC or replication between locations needs control.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Key points
  • 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.
Key checks
  • repadmin /replsummary — replication status summary
  • repadmin /showrepl <dc> — inbound partners and last results
  • repadmin /queue <dc> — pending inbound replication
  • Get-ADReplicationFailure -Target <dc> — failures
  • dcdiag /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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows Server Active Directory and identity current

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%
Confirmation

Confirm action

Continue?