Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows Server 2022 / Configure Distributed File System Namespace and Replication on Windows Server

February 25, 2026

Configure Distributed File System Namespace and Replication on Windows Server

The Distributed File System (DFS) feature in Microsoft networks is used to simplify access to shared network folders and, optionally, to replicate data between file servers. DFS allows shared folders from different file servers to be organized into a centralized structure and presented to users as a single virtual directory tree, which is accessible via a common UNC path. Users will still be able to access the target folder added to DFS even if its physical location changes.

Contents:
  • Installing DFS and Creating a DFS Namespace on Windows Server
  • Configure DFS Replication on Windows Server

The DFS implementation in Windows Server is based on two services.

  • DFS namespace service can join file shares from multiple file servers into a single, logical DFS namespace. To users, each DFS namespace appears as a virtual share containing subfolders. A DFS namespace can aggregate shares from different servers, while hiding their real structure and locations from users.
  • DFS Replication is a service that enables file synchronization (replication) between shared folders on servers within a DFS namespace, ensuring high availability and data consistency. When a file is modified on one of the servers, the DFS Replication service only transfers the modified parts of the file to the other partners.

This guide will show you how to configure the DFS namespace and replication on Windows Server 2025 (previous versions of Windows Server are configured in the same way).

Installing DFS and Creating a DFS Namespace on Windows Server

The DFS namespace service is available in all Windows Server editions. It can be installed either via the Server Manager console (File and Storage Services -> File and iSCSI Services -> DFS Namespace), or using PowerShell:

Install-WindowsFeature FS-DFS-Namespace, RSAT-DFS-Mgmt-Con 

Install the DFS namespace role on Windows Server

Once the role has been installed, a new DFS namespace can be created:

  1. Open the DFS Management snap-in ( dfsmgmt.msc ).
  2. Click New Namespace in the right Actions pane. Create new DFS namespace
  3. Specify the name of the server that will host the DFS namespace. This can be either a domain controller or a member server. Select the server to host the DFS namespace
  4. Set the namespace name. It will be used for client access. For example, Public.
  5. Click the Edit Settings button to configure access permissions for the root directory of the namespace. In most cases, configure share permissions to allow access for the Everyone group, which means that the actual access permissions are enforced at the NTFS file system level. Also, specify a local path to the DFS directory here (by default,  C:\DFSRoots\Public). DFS share access permissions
  6. Next, choose the type of namespace. This can be either a Domain-based namespace or a Stand-alone namespace. Although a domain-based namespace has a number of advantages, it requires a deployed Active Directory domain and domain admin permissions (or delegated rights to create DFS domain namespaces). DFS: Domain-based namespace vs Stand-alone namespace
To access the stand-alone DFS namespace, use the server name \\ServerName\Public , and to access the domain DFS, specify the domain name in the UNC path ( \\DomainName\Public ).

To ensure users browsing the DFS namespace see only folders to which they have access permissions, open the namespace properties and enable the Enable access-based enumeration for this namespace option (read more about using Access-Based Enumeration in Windows).

Enable access-based enumeration for DFS namespace

List all root DFS namespaces in a domain:

dfsutil domain woshub.com

dfsutil domain - list DFS root in domain

Now let’s add a new shared network folder to the DFS namespace hierarchy that we created earlier:

  1. Select the namespace in the DFS console and click New Folder Add a shared folder to a DFS namespace
  2. Provide the name of the new directory and its exact location (in UNC format). Add a folder by its UNC path

Ensure that users can browse the newly added network directory via the DFS namespace using File Explorer:  \\woshub.com\public\Docs

Accessing domain DFS namespace via File Explorer

Users can open files from a shared folder added to DFS without knowing which file server the files are actually stored on. Users can map a share as a network drive by using its DFS path.

DFS namespace fault tolerance and availability can be enhanced by adding additional namespace servers to it (Add Namespace Server).

Configure DFS Replication on Windows Server

You can use DFS-R replication to organize synchronization of network folder contents across file servers within the DFS namespace, thereby ensuring high data availability. Clients are automatically redirected to the replica server if one of the servers in a replication group is unavailable. In branch office scenarios, this enables users to access the latest synchronized file versions from the head office, thereby reducing the load on the WAN channel.

The FS-DFS-Replication role must be installed on all servers participating in the DFS replication group.

Install-WindowsFeature FS-DFS-Replication, RSAT-DFS-Mgmt-Con

In the DFS Management snap-in, select the DFS Namespace, right-click on the directory for which you want to create a replica, and select Add Folder Target.

Add DFS replication target folder

Specify the full (UNC) path to the shared folder on another server where the replica will be stored.

Specify the path to the replica of the DFS folder

When asked if you want to create a replication group, answer Yes.

Create a DFS replication group

The replication setup wizard will start. Check the name of the replication group and the replicated folder.

DFS replication group name

Select the primary server. This will be the data source for the initial replication.

Select primary DFS replica

Choose the type of topology (connection) between members of the replication group. In this example, I used Full Mesh (i.e. all with all).

DFS replication topology: Full Mesh

Then you can configure the replication schedule and whether to enable bandwidth throttling for DFS Replication traffic. In modern intranet networks, even those connected via WAN channels, it is usually possible to run continuous replication, utilizing the full available bandwidth.

Configure DFR replication bandwidth

If needed, the replication schedule and maximum bandwidth can be configured in the replication group settings, which can be found under the Replication node.

Custom DFS replication schedule

Allow the initial replication to the other servers in the DFS replication group to complete, which may take some time depending on the data size and the network conditions. Or run the following command to force replication:

Sync-DfsReplicationGroup -GroupName "woshub.com\public\docs" -SourceComputerName "w-fs01" -DestinationComputerName "d-fs02" -DurationInMinutes 15

The DFS Replication service may ignore certain files. There is usually no need to replicate the temporary files created by programs. Open the DFS folder properties on the Replicated Folder tab. Note that the filter for files with the extensions ~*, *.bak, and *.tmp is enabled by default. You can edit this list and add your own file types to be excluded from DFS Replication.

Exclude files from DFS replication

It should be noted that the hidden directory DFSRPrivate is created at the root of each DFS folder on the disk. This system directory stores the internal data and metadata for DFS Replication.

DFSRPrivate folder

The DFS administrator should be aware of these service subfolders:

  • Staging – this is temporary storage for files that are being replicated. The default size of this folder is 4GB. The quota is set in the Staging tab of the DFS folder settings. If a file exceeds the staging quota, DFS Replication will transfer it in several stages.
  • PreExisting – contains files that existed in the folder before replication began and were saved by the system.
  • ConflictAndDeleted – it contains deleted and conflicting replication files. This folder is used to store files that have been modified by multiple users simultaneously. When a DFS file is updated, it reflects the latest saved version, while the previous version is moved to the ConflictAndDeleted folder, from where it can be restored by the administrator.
  • Delete – contains deleted objects

In addition to the Event Viewer (Applications and Services Logs -> DFS Replication), DFS service logs can be found in the %windir%\debug\DFSR*.log folder.

Let’s take a look at some useful commands that can be used to monitor and obtain replication status.

List the files that are currently being processed by the DFS replication process:

Get-DfsrState -ComputerName M-FS01 | FT  FileName,UpdateState,Inbound, SourceComputerName

Get-DfsrState - get overall DFS replication status

DFS replication queue statistics:

dfsrdiag replicationstate /all

The number of files being replicated between servers:

Get-DfsrBacklog -SourceComputerName SRV01 -DestinationComputerName M-DS01| select FileName,FullPathName
dfsrdiag backlog /SMem:M-FS01 /RGName:Rep_Folder /RFName:share /RMem:D-FS01

If one of the replication partners has been offline for over 60 days, replication will not automatically resume once they are back online. Event ID 4012 indicates that the maximum offline time limit has been exceeded, requiring the server to be removed from the replication group. To prevent it from being removed from DFS, increase the value of the MaxOfflineTimeInDays parameter.

DFS replication is well-suited for files that are rarely modified or for scenarios where only one server is active while others are read-only, minimizing the risk of conflicts and synchronization issues. Frequent concurrent modifications to the same file on multiple file servers can result in conflicts that are difficult to resolve automatically using DFS tools.

0 comment
0
Facebook Twitter Google + Pinterest
Questions and AnswersWindows Server 2019Windows Server 2022Windows Server 2025
previous post
Steps to Load and Initialize Network Drivers in Windows PE or Recovery Environment

Related Reading

How to Prefer IPv4 over IPv6 in Windows...

April 15, 2025

Exclude a Specific User or Computer from Group...

March 16, 2025

How to Detect Which User Installed or Removed...

June 25, 2025

How to Move (Migrate) Existing Windows Shares to...

February 25, 2026

Fix: The referenced assembly could not be found...

March 25, 2025

Cannot Install Network Adapter Drivers on Windows Server

May 6, 2025

How to Hide (Block) a Specific Windows Update

March 3, 2025

Windows Stucks at ‘Getting Windows Ready, Don’t Turn...

September 24, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Steps to Load and Initialize Network Drivers in Windows PE or Recovery Environment

    February 25, 2026
  • How to Set a Custom Drive Icon in Windows

    February 17, 2026
  • Managing Per-User Services in Windows

    February 11, 2026
  • Change Default OU for New Computers and Users in AD

    February 2, 2026
  • Where Windows Stores Certificates and Private Keys

    January 22, 2026
  • How to Remove Old (Unused) PowerShell Modules

    January 12, 2026
  • How to Move (Migrate) Existing Windows Shares to a New File Server

    December 24, 2025
  • Using KDC (Kerberos) Proxy in AD for Remote Access

    December 23, 2025
  • Windows: Create (Install) a Service Manually

    December 16, 2025
  • Windows: Auto Switch to Strongest Wi-Fi Network

    December 10, 2025

Follow us

  • Facebook
  • Twitter
  • Youtube
  • Telegram
Popular Posts
  • Converting Windows 10 to Enterprise LTSC Without Losing Data
  • Remove the Max Path Length Limit (260-Characters) on Windows
  • How to Remove ‘Some Settings are Managed by Your Organization’ on Windows 11 or 10
  • How to Pause (Delay) Update Installation on Windows 11 and 10
  • PowerShell: The Module Could Not Be Loaded
  • Perform a Clean Installation of Windows 11: Step-by-Step Guide
  • Allow Ping (ICMP Echo) Responses in Windows Firewall
Footer Logo

@2014 - 2026 - Windows OS Hub. All about operating systems for sysadmins


Back To Top