Use this when configuring which shares a DFS folder points to.
Folder Targets
Folder targets are the actual UNC shares a DFS namespace folder points to. A folder can have several targets on different servers, with referral ordering sending clients to the closest one.
1. Get-DfsnFolderTarget -Path <path> — State Online.
2. Referral priority/ordering.
3. Target share reachable.
4. Disable target for maintenance.
5. Test path.
folder → targets → referral
Context & applicabilityCommon mistakes · platform/version boundaries
- Multiple writable targets without DFS Replication — users see different data.
- DFS Replication across targets used for files that are edited simultaneously.
- Target priority not set, sending users to a remote site.
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.
- Clients get targets ordered by site cost.
- All targets of a folder should have the same content.
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
Multiple targets
A folder can have several targets (for example a share at each site). Clients get them ordered by site cost; with target priority you can force a primary target. Several active targets are only safe when the data is replicated and users do not edit the same files at different sites.
dfsutil client property state (or the DFS tab on a folder in Explorer) shows which target a client is using.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Folder targets are the actual shares behind a namespace folder. With multiple targets, clients pick by site, with failback options.
Set-DfsnFolderTarget -Path \\corp.example.com\files\Projects -TargetPath \\fs02\Projects -State Offline # take out of referrals
Set-DfsnFolderTarget -Path \\corp.example.com\files\Projects -TargetPath \\fs01\Projects -ReferralPriorityClass GlobalHigh
Set-DfsnFolder -Path \\corp.example.com\files\Projects -EnableTargetFailback $true
Multiple active targets require data replication between them (DFSR or other) and careful handling of simultaneous edits — DFSR has no file locking across servers, so the last writer wins.
Referral ordering
Clients receive targets in the same site first, then others ordered by site cost (if enabled). Set a target priority to force first among all or last among all. Clients cache referrals for 300 seconds (folder) by default; failback to a preferred target must be enabled if wanted.
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 → Folder Targets. 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%