Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

DFS Troubleshooting

Direct answer

Troubleshoot 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.

When to use this

Use this when DFS paths or replication fail.

First 30 seconds

1. Namespace issue → dfsutil /pktinfo, target online, SMB reachable.

2. Replication issue → backlog, DFSR events, AD polling (dfsrdiag pollad).

3. Dirty database (2213) → resume per event instructions.

4. Staging too small → increase.

5. Retest.

Operational verification

namespace referral or replication pipeline → failure point → fix

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows storage and file services
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 storage and file services · Windows Server / DFSR · Windows / PowerShell
Key commanddfsrdiag ReplicationState
Scope / prerequisiteUse this when DFS paths or replication fail.
Reference · 3
What next?3 suggested next steps
Catalog command links3
Evidence0
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

dfsrdiag ReplicationStateReference
Inspect DFS Replication active state

Operational command for Inspect DFS Replication active state. Focus fields: replication group, replicated folder, sending/receiving member and current file state.

Use when: Use when working the canonical Topic windows--dfs-dfs-troubleshooting and the matching failure boundary.

Quick note: Known-good: expected replication members are active without a persistent stuck transfer. Suspicious: replication is absent when expected or repeatedly stalls on the same partner/item. Next discriminating check: check DFSR event logs and backlog for the same replication group and partner.

Windows Server / DFSR · service
Get-DfsrBacklog -GroupName <group> -FolderName <folder> -SourceComputerName <source> -DestinationComputerName <destination>Reference
Inspect DFS Replication backlog

Read-only observation for pending replicated updates for an exact source/destination pair.

Use when: Use when troubleshooting the linked operational Windows boundary.

Quick note: Command ownership closure. Output remains live/runtime evidence and is never pre-populated as captured production state.

Windows / PowerShell · data plane
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verify DFS referral identity, target access and replicated file convergence Verify boundary

Capture the DFS namespace path and the exact referral target returned to the client, then expect that UNC target to open with the intended user context. Record DFSR connection/backlog state between the relevant members and verify a bounded test file or metadata change appears on the partner after replication without conflict events. Repeat the original namespace access from the affected site and confirm the referral is still appropriate after cache renewal. A zero DFSR backlog shows convergence for the measured replicated folder, but it does not show the namespace referral, SMB permissions or every file consumer is healthy.

Step 2 Branch DFS failures at referral, target SMB path, permissions and DFSR backlog Narrow the fault

If a DFS path fails before a target is chosen, inspect the namespace referral and client referral cache first. If the referral names the expected target but access fails, test the returned UNC target directly and branch to DNS, SMB transport, share permissions or NTFS access. If the target opens but files differ between members, inspect DFSR membership, connection state, event log and backlog rather than editing namespace metadata. If only one site selects a poor target, verify AD site/subnet mapping and referral ordering. Clear caches only after recording the failing referral so the evidence is not destroyed.

Step 3 Common mistakes Narrow the fault
  • Not checking dfsrdiag backlog and event logs.
Key points
  • AD replication and DNS problems break DFS too.
  • DFSR and namespace event IDs point to specific causes.
Key checks
  • Get-DfsnRoot — namespaces
  • Get-DfsnFolderTarget -Path <path> — folder targets and state
  • Get-DfsrBacklog -GroupName <g> -FolderName <f> -SourceComputerName <a> -DestinationComputerName <b> — DFSR backlog
  • dfsrdiag replicationstate — replication state
  • dfsutil /pktinfo — client referral cache
ReferenceWhy it matters1 section · depth on demand

DFS Namespace referrals and DFS Replication are separate state machines

DFS troubleshooting must distinguish DFS Namespace referral selection from DFS Replication content convergence. A client can receive a valid namespace referral to a target whose SMB share is unreachable, and DFSR can be healthy while namespace metadata points somewhere unexpected. Active Directory stores domain-based namespace and DFSR configuration, while the client referral cache and SMB session hold runtime state. Site-costing, target priority, share permissions, NTFS permissions and DFSR backlog are adjacent boundaries, so namespace reachability alone never shows replicated data is current.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

DFS Namespace or DFS Replication?

SymptomComponent
\\corp.example.com\Shares not reachable, or wrong server chosenDFS Namespaces (referrals)
Files differ between servers, changes do not arriveDFS Replication

Inspect referrals on the client

C:\> dfsutil /pktinfo
Entry: \corp.example.com\Shares\Projects
ShortEntry: \corp.example.com\Shares\Projects
Expires in 1702 seconds
UseCount: 0 Type:0x1 ( DFS )
   0:[\fs02\Projects] AccessStatus: 0 ( ACTIVE TARGETSET )
   1:[\fs01\Projects] ( TARGETSET )
C:\> dfsutil cache referral flush
C:\> dfsutil diag viewdfspath \\corp.example.com\Shares\Projects\Report.docx

ACTIVE marks the target the client uses. The dfsutil command (installed with the DFS Management tools) also shows and flushes the client referral cache.

Why a client uses the "wrong" server

CauseFix
Client site unknown (subnet not defined in AD Sites)Add the subnet to the correct site
Target priority / ordering methodNamespace properties → Referrals (lowest cost, random, exclude outside site)
Referral cached from earlierWait for TTL or dfsutil cache referral flush
Failback disabledClients stay on the failover target after the preferred one returns — enable Clients fail back to preferred targets

Namespace server checks

Get-DfsnRoot -Path \\corp.example.com\Shares | Select Path, State, Type
Get-DfsnRootTarget -Path \\corp.example.com\Shares
Get-DfsnFolderTarget -Path \\corp.example.com\Shares\Projects | Select TargetPath, State, ReferralPriorityClass
dfsdiag /testdcs /domain:corp.example.com
dfsdiag /testreferral /dfspath:\\corp.example.com\Shares

Domain-based namespaces depend on DCs (namespace metadata in AD) and on the DFS Namespace service on root servers; a stopped service on one root server only matters if clients get referrals to it.

Replication side, briefly

For DFSR use Get-DfsrBacklog, Write-DfsrHealthReport and the DFS Replication event log; see DFS Replication for details.

*The sample DFS referral cache illustrates target selection, not data retrieved from a deployed namespace.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Method

DFS troubleshooting covers DFS Namespaces (path resolution) and DFS Replication (data synchronisation).

dfsutil /pktinfo                                   # client referral cache
dfsutil cache referral flush
Get-DfsnRoot; Get-DfsnFolderTarget -Path \\corp.example.com\files\projects
Get-DfsrBacklog -GroupName 'Files' -FolderName 'Projects' -SourceComputerName fs01 -DestinationComputerName fs02 | Measure-Object
Get-DfsrState -ComputerName fs02 | Group-Object UpdateState
dfsrdiag pollad
SymptomLikely cause
Clients reach wrong/remote targetSite configuration, referral ordering
Namespace not accessibleDNS, DC availability, namespace server down
Replication backlog growsStaging quota too small, network, sharing violations
Files conflict or disappearSimultaneous edits; check ConflictAndDeleted folder

DFS-R logs to DFS Replication event log; event 4012 indicates a member exceeded MaxOfflineTimeInDays and stopped replicating.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 storage and file services current

Authoritative/upstream documentation reviewed for bounded claims in DFS → DFS Troubleshooting. 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%
Confirmation

Confirm action

Continue?