Enterprise Network Setup with Windows Server

A step-by-step guide to setting up an enterprise-level network environment using Hyper-V, Windows 10, and Windows Server 2022. Includes AD domain setup, DHCP, DFS, PowerShell automation, and more.

View the Project on GitHub hexwarrior6/Enterprise-Network-Setup-with-Windows-Server

Chapter 4: Configuring DFS File Sharing

In enterprise environments, file sharing and storage management are critical tasks. In this chapter, we will use the Distributed File System (DFS) feature to configure namespaces and replication on DC01 and DC02, enabling a highly available file sharing service.


Install DFS Role (on both DC01 and DC02)

  1. Open Server Manager -> Add Roles and Features
    On the Server Roles page, check the following two options:
    • DFS Namespaces
    • DFS Replication

    Click Add Features, then click Next

    img_1.png

  2. Proceed to the Confirmation panel and click Install to begin installation

    img_2.png

  3. After installation completes, click Close to finish the process

    img_3.png


Configure DFS Namespace

  1. On DC01, open Server Manager -> Tools -> DFS Management
    Right-click on Namespaces on the left and select New Namespace

    img_4.png

  2. In the New Namespace Wizard, select DC01 as the host server and click Next

    img_5.png

  3. Enter a namespace name such as bread-makers DFS
    Click Edit Settings to specify the physical path on the server (default is C:\DFSRoots\Namespace Name)
    Choose share permissions based on your needs:
    • If users need read/write access, select All users have read and write permissions
    • For read-only access, choose All users have read-only permissions

    Click Next after configuration

    img_6.png

  4. Leave the type as default (Stand-Alone Namespace) and click Next

    img_7.png

  5. Review the settings and click Create

    img_8.png

  6. Once created, click Close

Verification Steps:


Add Second DFS Namespace Server (DC02)

  1. In DFS Management on DC01, right-click the previously created namespace and select Add Namespace Server

    img_9.png

  2. Click Browse, enter DC02, and click Check to verify server status
    Click Edit Settings again, and set the same physical path (default is fine) and share permissions
    After configuration, click all OK buttons to complete the addition

    img_10.png

Verification Steps:

🔧 Tip: How to Fix Incorrect Permission Settings:

If a server has incorrect share permissions, you can:

img_12.png


Configure DFS Replication

Currently, we’ve added multiple namespace servers, but their content is not yet synchronized. Next, we will configure DFS Replication to ensure that the namespace contents on DC01 and DC02 remain consistent.

  1. Open DFS Management -> Right-click Replication -> New Replication Group

    img_16.png

  2. Enter a replication group name, such as bread-makers DFS replication, and click Next

    img_17.png

  3. On the Select Replication Group Members page, click Add
    In the pop-up window, enter DC01;DC02, then click Check to confirm server status
    After verification, click Next

    img_18.png

  4. Select the default replication topology (Full Mesh) and click Next

    img_19.png

  5. Keep replication group policies and bandwidth settings as default, click Next

    img_20.png

  6. Set DC01 as the primary member and click Next

    img_21.png

  7. Add the folder path to be synchronized, e.g.:
    C:\DFSRoots\bread-makers DFS
    Click Next

    img_22.png

  8. Set local storage paths for other members:
    • Select DC02
    • Click Edit
    • Enable replication and set the path to C:\DFSRoots\bread-makers DFS
    • Confirm all settings and click Next

    img_23.png

  9. Review the configuration and click Create

    img_24.png

  10. After creation, click Close

    img_25.png

  11. The wizard displays a message:

    “Replication will not start until members of the replication group receive the configuration. This may take time depending on Active Directory Domain Services replication latency and polling intervals.”
    Click OK to continue

    img_26.png

Verification Steps:


Add Sample Files

Open File Explorer and extract or add the following sample files into the folder C:\DFSRoots\bread-makers DFS: bread-makers DFS.zip

These files will be used in the next chapter for further permission settings and usage examples.


Summary

In this chapter, we completed the following tasks:

In the next chapter, we will explore how to configure Active Directory users and groups, and use PowerShell for automated user creation, further improving domain environment management efficiency.