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
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.
Server Manager -> Add Roles and FeaturesClick Add Features, then click Next

Proceed to the Confirmation panel and click Install to begin installation

After installation completes, click Close to finish the process

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

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

bread-makers DFSEdit Settings to specify the physical path on the server (default is C:\DFSRoots\Namespace Name)Click Next after configuration

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

Review the settings and click Create

Close✅ Verification Steps:
Local File Path Verification:
Open File Explorer and navigate to C:\DFSRoots\bread-makers DFS to see the physical folder associated with the namespace.

Network Access Verification:
In the address bar of File Explorer, type \\bread-makers.nz and press Enter. You should see the newly created DFS shared directory.

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

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

✅ Verification Steps:
In the DFS Management window, go into the namespace and switch to the Namespace tab
You should now see both DC01 and DC02 listed under the namespace servers

In File Explorer, type \\bread-makers.nz in the address bar and press Enter
Right-click the namespace folder -> Properties -> DFS tab
Check if information for both servers is displayed

🔧 Tip: How to Fix Incorrect Permission Settings:
If a server has incorrect share permissions, you can:
DFS Management -> Namespace tabConfigureShare Permissions to adjust the settings
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.
Open DFS Management -> Right-click Replication -> New Replication Group

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

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

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

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

Set DC01 as the primary member and click Next

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

DC02EditC:\DFSRoots\bread-makers DFSNext
Review the configuration and click Create

After creation, click Close

“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.”
ClickOKto continue

✅ Verification Steps:
In DFS Management -> Replication tab, check the status and health of the replication group

Create or modify files in the shared folder, then switch the active DFS server (via the Referrals tab in DFS properties) and verify that the files have been synchronized

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.
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.