Use this when presenting shares from many servers under one path or keeping folders synchronized between file servers.
DFS
DFS (Distributed File System) has two parts: DFS Namespaces, which present shares from many servers under one path like \\corp.local\files, and DFS Replication, which keeps folders in sync between servers.
1. Namespace reachable: Test-Path \\domain\ns\folder.
2. Targets online: Get-DfsnFolderTarget.
3. Replication backlog small.
4. DFSR events (2213 dirty shutdown, 4012 stale).
5. Client referral cache.
namespace → referral → nearest target; DFSR keeps targets in sync
Context & applicabilityCommon mistakes · platform/version boundaries
- Using DFS Replication as a backup — deletions and ransomware replicate too.
- Multi-master editing of the same files in two sites (conflicts, last writer wins).
- Staging quota too small, causing slow initial sync.
- FRS still used for SYSVOL (unsupported since Server 2019) — migrate to DFSR.
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.
Subtopics
Go one level deeper into this subject.
DFS Namespaces create a virtual folder tree like \\corp.local\files whose folders point to shares on different servers.
Subtopic DFS ReplicationDFS Replication (DFSR) keeps folders synchronized between servers using remote differential compression, so only changed blocks cross the network.
Subtopic Namespace ServersNamespace servers host a DFS namespace root and give clients referrals to folder targets.
Subtopic Folder TargetsFolder targets are the actual UNC shares a DFS namespace folder points to.
Subtopic Replication GroupsA DFS replication group is a set of member servers that replicate one or more folders, with a topology (full mesh or hub and spoke), schedule and bandwidth limits.
Subtopic DFS TroubleshootingTroubleshoot DFS with dfsutil and dfsdiag for namespaces, Get-DfsrBacklog and dfsrdiag for replication backlog, DFS Replication event logs, staging quota size, AD replication and DNS for namespace servers.
- Namespace = path; replication = copies — they are separate.
- DFSR is not a backup; deletes replicate.
- Clients cache referrals.
Get-DfsnRoot— namespacesGet-DfsnFolderTarget -Path <path>— folder targets and stateGet-DfsrBacklog -GroupName <g> -FolderName <f> -SourceComputerName <a> -DestinationComputerName <b>— DFSR backlogdfsrdiag replicationstate— replication statedfsutil /pktinfo— client referral cache
ReferenceWhy it matters1 section · depth on demand
Namespaces and replication
| Component | Does | Typical command |
|---|---|---|
| DFS Namespaces | One path (\\corp.local\files) pointing to shares on many servers | Get-DfsnFolderTarget |
| DFS Replication (DFSR) | Keeps folder contents in sync between servers | Get-DfsrBacklog, dfsrdiag |
They are independent: a namespace can point to non-replicated shares, and DFSR can replicate without a namespace. DFSR is multi-master with last-writer-wins, so it is not suited to files edited at several sites at once (no locking). SYSVOL also uses DFSR.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
DFS has two independent parts:
| Part | Purpose |
|---|---|
| DFS Namespaces (DFSN) | One logical path (\\corp.example.com\files\…) pointing to shares on many servers, with site-aware referrals |
| DFS Replication (DFSR) | Multi-master file replication between servers (RDC, staging) |
They are often used together, but namespaces work fine with any target (including NAS or Azure Files), and DFSR is also what replicates SYSVOL between DCs.
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 DFS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/dfs-namespaces/dfs-overview · confidence 94%