Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article describes how to create a Distributed File System (DFS) namespace in Windows Server. A DFS namespace is a virtual view of shared folders in an organization. It allows users to access shared folders using a single path, regardless of the physical location of the shared folders.
To create a new namespace, you can use Server Manager to create the namespace when you install the Distributed File System (DFS) Namespaces role service or the New-DfsnRoot PowerShell cmdlet.
Prerequisites
Before you create a DFS Namespace, ensure that you have the following prerequisites:
You must be a member of the Administrators group, or equivalent, on the computer where you're creating the namespace. To learn more, about the delegation of permissions required to create a namespace, see Delegate management permissions for DFS Namespaces.
You must have the DFS Namespaces role service installed on the computer where you're creating the namespace.
For both stand-alone and domain-based namespaces, ensure the namespace location is secure. This location can be the default path (C:\DFSRoots) or a custom path specified by the administrator during namespace creation. Restrict access to authorized users only. Doing so helps protect the configuration and reduces the risk of misuse or exploitation.
Create the namespace
To create a DFS namespace, you can use the DFS Management console or the New-DfsnRoot PowerShell cmdlet. Select the method that best suits your needs.
The following procedure describes how to create a namespace using the DFS Management console.
Select Start, point to Administrative Tools, and then select DFS Management.
In the console tree, right-click the Namespaces node, and then select New Namespace.
On the Namespace Server screen, select the server on which you want to create the namespace, then select Next.
Enter the new namespace name in the Name box on the Namespace Name and Settings screen, then select Next.
Select the type of namespace you want to create on the Namespace Type screen. You can choose between a domain-based namespace or a stand-alone namespace. Make your selection, and then select Next.
Important
Don't attempt to create a domain-based namespace using the Windows Server 2008 mode unless the forest functional level is Windows Server 2003 or higher. Doing so can result in a namespace for which you can't delete DFS folders, yielding the following error message: "The folder can't be deleted. Can't complete this function."
On the Review Settings and Create Namespace screen, review the settings for the namespace. If everything looks correct, select Create to create the namespace.
Wait for the namespace to be created. This process might take a few minutes, depending on your environment. Once the namespace is created, you see a message indicating that the namespace was created successfully. Select Close to close the wizard.
Secure the namespace
After creating the namespace, you should secure it by restricting access to the namespace folder. You should secure both the stand-alone and domain-based namespaces. Securing the namespace is important to maintain configuration integrity and mitigate the risk of exploitation.
To secure the namespace, you can use the following procedure:
In Windows Explorer, navigate to the namespace folder (for example, C:\DFSRoots\My Namespace).
Right-click the folder, and then select Properties.
On the Security tab, select Advanced.
In the Advanced Security Settings dialog box, select Change Permissions, then select Disable Inheritance.
Select Convert inherited permissions into explicit permissions on this object to convert the inherited permissions into explicit permissions.
Remove any groups or users that shouldn't have access to the namespace folder. For example, remove the CREATOR OWNER principle with Full control access. Also remove Users groups with the Special access privilege. This entry is added by default and allows all users to create files and folders in the namespace folder.
Note
Permissions are inherited from the parent folder. Permissions for the namespace root folder are independent of the permissions for the target folders. You must set permissions for the namespace root folder and the target folders separately.