Configures DFS folders and folder targets in a DFS namespace.

Syntax

Dfscmd [options]

Parameters

Parameter Description

/help

Display this message.

/map \\DFSname\DFSshare\path \\server\share\path [comment] [/restore]

Creates a DFS folder and assigns the specified shared folder as the folder target. When used with the /restore parameter, does not verify the existence of the shared folder. DFSDFS

/unmap \\DFSname\DFSshare\path

Delete a DFS folder and removes all of its folder targets.

/add \\DFSname\DFSshare\path \\server\share\path [/restore]

Adds a folder target to a DFS folder. When used with the /restore parameter, does not verify the existence of the shared folder.

/remove \\DFSname\DFSshare\path \\server\share\path

Removes a folder target from a DFS folder.

/view \\DFSname\DFSshare [/partial | /full | /batch || /batchrestore]

View all the DFS folders in the DFS namespace. Without arguments, view just the volume names.

Additional parameters:

  • /partial - view comment also.

  • /full - display a list of all the servers for a volume.

  • /batch - output a batch file to recreate the DFS.

  • /batchrestore - output a batch file to recreate the DFS using the /restore switch.

/move \\DFSname\DFSshare\path1 \\DFSname\DFSshare\path2 [/force]

Move a folder that is in the DFS to a different logical path. With /force, Replace links that exist if necessary

Note

Paths or comments with spaces should be enclosed in quotes.