Export (0) Print
Expand All
Arp
At
Cd
Cls
Cmd
Del
Dir
Fc
For
Ftp
If
Ldp
Lpq
Lpr
Md
Mmc
Msg
Nlb
Rcp
Rd
Reg
Rem
Ren
Rsh
Rsm
Rss
Sc
Set
Sfc
Ver
Vol
Expand Minimize

Dfscmd

Published: April 17, 2012

Updated: April 17, 2012

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

Configures DFS folders and folder targets in a DFS namespace.

Dfscmd [options]

 

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

noteNote
Paths or comments with spaces should be enclosed in quotes.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft