In this article, we will install and configure DFS (Distributed File System) Replication group in Windows Server 2019. We will configure DFS replication for the existing namespace which we have created in last article.

Check out the previous post on How to Install and Configure DFS Namespace in Windows Server 2019.


DFS Replication is a role service in Windows Server 2019 that you to replicate folders between multiple servers.

DFS Replication uses a compression algorithm known as remote differential compression (RDC). RDC detects the changes to the data and enables DFS Replication to replicate only the changed file blocks instead of the entire file. 

Virtual Lab Setup:

  • WS2K19-DC01: Active Directory Domain Controller with DNS role.
  • WS2K19-SRV02: DFS Namespace Server for mylab.local domain.
  • WS2K19-SRV01: Member Server for mylab.local domain.

Install the DFS Replication role:

1. Log in to the WS2K19-SRV01 server and open the Server Manager console.

1 Open Server Manager console

2. Click on Manage and select Add roles and features.

2 Click on Manage

3. Click on Next on Before you begin console.

3 Click Next on Before you begin console

4. Choose Role-based or Feature-based installation and click Next.

4 Choose Role-based Installation

5. Select your server on which you want to install the DFS replication server role. Click on Next.

5 Select local server to install DFS replication role

6. On select server role console, expand the File and Storage Services, expand File and iSCSI Services and select DFS Replication from the list.

6 Choose DFS replication role

7. Click on Add Features when prompted to install the Management tools.

7 Click on Add features required by DFS replication

8. Click on Next.

8 Click Next after selecting DFS replication role

9. On Select features console, click on Next to continue.

9 On Select Feature page click next

10. Click on Install and wait for the installation process to complete.

10 Click on Install to start the installation process

Note: We need to perform the same steps to install the DFS replication role on WS2K19-SRV02. 

In the previous post, we have created DFS namespace and added one DFS folder with a target path on the WS2K19-SRV02 server.

  • DFS Namespace Path: \\mylab.local\store
  • DFS Folder Path: \\mylab.local\store\TestData
  • Original Shared Folder Path: \\WS2K19-SRV02\TestUsersData
12 Verify DFS namespace and DFS folder exist

We will enable DFS replication for the TestData DFS folder.

Configure DFS Replication:

Before configuring replication, you need to add a network shared folder on the second DFS server.

On the WS2K19-SRV01 server, create a new shared folder with default NTFS permission on E:\ drive named TestUsersDatacopy. 

13 Check the Shared Folder path

11. From the Server Manager console, select DFS Management from the Tools menu.

11 Open DFS Management Console

12. In DFS Management console right-click on DFS folder (In our case, it will be TestData) and select Add Folder Target.

14 Add Folder Path to the DFS folder

13. Enter the name of the shared folder and click OK. In our example, the shared folder path will be \\WS2K19-SRV01\TestUsersDataCopy.

15 Select the shared folder path

14. Click on OK.

16 Click Ok to add another folder target path

15. For configuring replication, click Yes on the Replication page.

17 Click Yes to create a replication group

16. In the DFS Replication Configuration Wizard, verify the name of the replication group and the folder which we want to replicate. Click on Next.

18 Verify replication group name

17. Verify the shared folder paths on both servers. Click on Next.

19 Verify replication target folder path

18. Select the primary server on which we have stored the data initially. Click on Next.

20 Choose primary member for DFS replication

19. On the Topology Selection console, select the Full Mesh topology and click Next.

21 Choose replication topology

20. With DFS Replication, you can choose the replication schedule and the bandwidth you want to allocate to the DFS replication process. Leave the default setting and then click Next.

22 Setup DFS replication Schedule and Bandwidth

21. Review the settings and then click on Create.

23 Create DFS Replication Group

22. On the Confirmation page, click on Close to close the wizard.

24 Click on close to close the console

23. Here, we can verify that our new replication group is created. 

25 Verify DFS replication group is created

Test DFS Replication:

24. To test the replication between both servers, copy some data on the primary server (WS2K19-SRV02) and see the data should be on the secondary server (WS2K19-SRV01) as well.

26 Copy some data on primary server for testing purpose

25. Verify the data on Secondary Server (WS2K19-SRV01).

27 Verify the same data on secondary server

I hope this article will be helpful for you all. Thank you for reading.