π ~1 min read
Table of contents
Symptom & Impact
Users experience long delays or stale referrals when file server failover occurs between AD sites.
Environment & Reproduction
DFS Namespace on Windows Server 2019 with multi-site targets and high referral TTL.
Get-DfsnFolderTarget -Path '\contoso.localdatashared'
Root Cause Analysis
Referral ordering and target priority are not aligned with AD site costing, causing suboptimal target selection.
Quick Triage
Check target states and client site mapping.
dfsutil /pktinfo
Get-ADReplicationSite -Filter *
Step-by-Step Diagnosis
Inspect DFS referral cache and namespace target priority classes.
Get-DfsnRootTarget -Path '\contoso.localdata'
Get-DfsnFolderTarget -Path '\contoso.localdatashared' | Select Path,TargetPath,State,ReferralPriorityClass

Solution β Primary Fix
Set site-costed referrals and adjust target priorities for primary and failover paths.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
Set-DfsnRoot -Path '\contoso.localdata' -EnableSiteCosting $true
Set-DfsnFolderTarget -Path '\contoso.localdatashared' -TargetPath '\fs1shared' -ReferralPriorityClass GlobalHigh

Solution β Alternative Approaches
Lower referral TTL during migration windows to reduce stale cache duration.
Set-DfsnRoot -Path '\contoso.localdata' -TimeToLiveSec 300
Verification & Acceptance Criteria
Clients receive expected local-site referrals and failover switches within tolerated time.
dfsutil /pktflush
# Re-access namespace and re-run
dfsutil /pktinfo
Rollback Plan
Restore original referral settings if application path assumptions break.
Set-DfsnRoot -Path '\contoso.localdata' -EnableSiteCosting $false
Prevention & Hardening
Review DFS target priorities after each site topology or WAN change.
Get-DfsnFolderTarget -Path '\contoso.localdata*'
Related Errors & Cross-Refs
Frequently paired with DFSR backlog and AD site/subnet mapping errors.
Related tutorial: View the step-by-step tutorial for Windows Server 2019.
View all Windows Server 2019 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Microsoft Learn: DFS Namespace referral behavior and site costing.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.