How to Configure DFS-R Folder Replication on Windows Server 2025
Set up DFS-R folder replication between Windows Server 2025 systems with unidirectional and multidirectional configurations, staging optimization, and verification.
- Difficulty
- Intermediate
- Time required
- 30-60 minutes
- Steps
- 8
- Platform
- Windows Server
- Version
- 2025

Table of contents
Quick Answer
Go to the stepsInstall FS-DFS-Replication, create a group, add members, configure staging, start sync.
- Install DFS-R on all servers.
- Create shared folders with matching permissions.
- Create replication group and add members.
- Set primary member and configure schedule.
- Verify with Get-DfsrBacklog.
Install-WindowsFeature -Name FS-DFS-Replication, RSAT-DFS-Mgmt-Con -IncludeManagementToolsExpected result: Folders synchronized with RDC compression.
Key takeaways
- How to install DFS-R, create replication groups, configure members and schedules, and verify health.
- DFS-R keeps folders synchronized for redundancy and branch office access with efficient bandwidth usage.
- Ensure identical NTFS permissions, use RDC for WAN links, and monitor backlog regularly.
Introduction
DFS Replication (DFS-R) synchronizes folders between servers using block-level Remote Differential Compression (RDC). Per Microsoft Learn, it is an active-active replication engine replacing FRS.
DFS-R supports hub-and-spoke and full mesh topologies on NTFS volumes with Active Directory. This tutorial covers the complete setup on Windows Server 2025.
Who this is for: Windows Server administrators setting up file replication between domain-joined servers.
Before you start
- Access
- Domain Admin or DFS administrator.
- Required roles
- Domain Admin
- Required licenses
- Windows Server 2025
- Environment
- Two or more domain-joined Windows Server 2025 systems with NTFS volumes.
- Vendor
- Microsoft
- Administrator permissions required
30-60 minutes plus initial sync time.
Warning: DFS-R is not a backup solution
DFS-R replicates deletions and corruption. Implement a proper backup strategy alongside DFS-R.
Warning: Create a backup before initial sync
Initial sync designates one server as authoritative. Conflicting data on secondaries moves to ConflictAndDeleted.
1Install DFS Replication role
Install DFS-R on all servers.
Run Install-WindowsFeature on each server. Per Microsoft Learn, DFS-R works on Desktop Experience and Server Core. Verify with Get-WindowsFeature.
Install-WindowsFeature -Name FS-DFS-Replication, RSAT-DFS-Mgmt-Con -IncludeManagementToolsExpected result: Install State: Installed.
Note
Use Invoke-Command for remote installation on multiple servers.
3Create the replication group
Define the replication group.
Use DFS Management (dfsmgmt.msc) or PowerShell. Choose data collection for unidirectional, multipurpose for full mesh.
New-DfsReplicationGroup -GroupName DataReplication -DomainName yourdomain.comExpected result: Group created.
Note
Use descriptive names including direction and purpose.
4Add members and configure primary
Add servers and set primary.
Add members. Set primary with Set-DfsrMembership -PrimaryMember $true on the source server.
Add-DfsrMember -GroupName DataReplication -ComputerName SERVER01,SERVER02Expected result: Members added. Primary set.
Note
Only one primary in unidirectional. No primary in multidirectional.
5Configure schedule and bandwidth
Control replication timing.
Use full bandwidth for LAN (default). For WAN, throttle to 70% during business hours. Changes propagate through AD DS in up to 60 minutes.
Expected result: Schedule configured.
Note
Allow full bandwidth overnight for catch-up.
6Configure staging quota and RDC
Optimize performance.
Set staging quota and enable RDC. RDC replicates only changed blocks. Set conflict quota with -ConflictAndDeletedQuotaInMB.
Set-DfsrMembership -GroupName DataReplication -FolderName ReplicatedData -ComputerName SERVER01 -StagingPathQuotaInMB 10240Expected result: Staging and RDC configured.
Note
For 100+ MB files, set staging to 20-30% of largest file size.
7Start initial synchronization
Start the first sync.
Restart DFSR service on all members. Create a test file. Monitor with Get-DfsrBacklog. Check event log for Event ID 4104.
Get-DfsrBacklog -SourceComputerName SERVER01 -DestinationComputerName SERVER02 -FolderName ReplicatedDataExpected result: Test file appears. Event 4104. Backlog 0.
Note
Initial sync can take hours for large datasets.
8Verify replication
Confirm replication works.
Create test file on primary. Verify on secondaries. Check Get-DfsrState and Get-DfsrBacklog. Monitor for events 4104/4614.
Get-DfsrState -ComputerName SERVER01,SERVER02Expected result: State: Normal. Backlog: 0.
Note
Growing backlog indicates performance or connectivity issues.
How to Confirm Replication Works
Verify fix
Create a test file on primary. It should appear on secondaries within minutes. Run Get-DfsrBacklog to verify 0 pending files. Check event log for Event IDs 4104 and 4614.
Normal result: Backlog 0. Events 4104/4614 logged.
Abnormal result: Check DFSR service, firewall rules, and AD DS health.
Healthy
Backlog: 0
All synchronized.
Growing backlog
Backlog increasing
Check bandwidth or staging.
Stalled
Service stopped
Restart DFSR.
Troubleshooting
Backlog keeps growing
Warning
Cause: Bandwidth, firewall, or staging quota issues.
Check firewall rules. Increase staging quota. Verify network connectivity.
Initial sync never completes
Critical
Cause: Large dataset or DFSR stopped.
Check DFSR service. Verify AD DS health. Pre-seed with robocopy for very large datasets.
File conflicts
Warning
Cause: Simultaneous edits on different servers.
Check ConflictAndDeleted folder. Implement file locking. Consider unidirectional.
Permission denied errors
Warning
Cause: Mismatched NTFS permissions.
Verify identical NTFS permissions on all servers. DFSR runs as Local System by default.
Frequently asked questions
What firewall ports does DFS-R need?
TCP 135 (RPC), TCP/UDP 445 (SMB), and dynamic RPC 49152-65535.
Unidirectional vs multidirectional?
Unidirectional has one primary distributing to read-only replicas. Multidirectional lets all servers modify files with higher conflict risk.
Does DFS-R support ReFS?
No. Per Microsoft Learn, DFS-R only supports NTFS.
Is DFS-R a backup solution?
No. DFS-R provides redundancy, not backup. It replicates deletions too.
How to fix staging quota exceeded?
Increase quota with Set-DfsrMembership -StagingPathQuotaInMB. Set to 20-30% of largest file size.
Conclusion
Install the role, create a replication group, add members, configure schedule and staging, then verify with Get-DfsrBacklog.
Ensure identical NTFS permissions, use RDC for WAN links, and monitor backlog regularly.
Install > New-DfsReplicationGroup > Add-DfsrMember > Set-DfsrMembership > Get-DfsrBacklog



