Microsoft has several command-line tools for scripting, creating, modifying, or just viewing the Distributed File System (DFS) structure. Because the Dfsutil.exe and Dfscmd.exe tools can modify and delete DFS settings, use these tools carefully to avoid causing permanent damage to your production environment.
Dfsutil.exe
Microsoft first provided Dfsutil.exe with the Windows 2000 Support Tools, and the utility is also available in the Windows Server 2003 Support Tools. In the DFSReportBuilder.bat script (which you can download at InstantDoc ID 92798), we use the Dfsutil.exe tool in a /Viewmode, but the tool has more than 30 other commandline switch options. To see these options, type Dfsutil /?at a command prompt.
Note that early versions of Dfsutil.exe had some problems that could damage DFS metadata. To be sure you have the correct version, check the Microsoft article "Updates to Dfsutil.exe" at http://support.microsoft.com/?kbid=293114. . . .

