Dfsutil: DFS Management Command Line Tools

DFS Namespaces or DFSN management command line tools are available on Windows Server 2008 and also on Windows Vista SP1 as part of the Microsoft Remote Server Administration Tools (RSAT). The three available tools are Dfsutil.exe, Dfscmd.exe and Dfsdiag.exe. In this posting I will show some exploratory uses of the Dfsutil tool. If you are […]

DFS Namespaces or DFSN management command line tools are available on Windows Server 2008 and also on Windows Vista SP1 as part of the Microsoft Remote Server Administration Tools (RSAT). The three available tools are Dfsutil.exe, Dfscmd.exe and Dfsdiag.exe. In this posting I will show some exploratory uses of the Dfsutil tool.

If you are working on a Windows Server 2008 system you have Dfsutil already available. On a Windows vista SP1 system you need to install the RSAT pack. To install the RSAT pack you can refer to http://support.microsoft.com/kb/941314 for simple installation guidelines. Once Dfsutil is installed we can start doing some simple experiments. First let's have a look at the help:

Dfsutil /? This is the best way to start exploring the tool. The help shows you the nine main commands Dfsutil offers: The commands are organized in a tree like structure. So if you issue Dfsutil cache the result is:

Then you can select one of the three cache commands. If you pick Referral, for instance, the full command line will be Dfsutil cache referral. This is the new Dfsutil interface. Dfsutil also supports the old interface. You can obtain the help for the old interface by doing Dfsutil /oldcli.

With Dfsutil you can create/modify/remove DFS namespaces roots and links, add/remove targets, modify/view site costing properties, modify/view DFS registry keys, etc. It's a powerful tool! But let's start with something simple. How about listing all the namespaces in a domain? For that use the Domain command:

More info: Technet documentation: Dfsutil Overview

Source:→ Microsoft