dfscmd
Manages a distributed file system from the command line.
Syntax
dfscmd /unmap \\DFSName\DFSShareName\Path
dfscmd /add \\DFSName\DFSShareName\Path\\ServerName\ ShareName\Path [/restore]
fscmd /remove \\DFSName\DFSShareName\Path\\ServerName\ ShareName\Path
dfscmd /view \\DFSName\DFSShareName [/full] [/partial] [/batch] [/batchrestore]
Parameters
Remarks
- If you use a path or a comment that contains spaces, wrap it in quotation marks.
- When you remove a target using dfscmd /remove, you must specify the same link name that you used to create the link. For example, if you created the link using its DNS name, you must specify the DNS name when you use dfscmd /remove rather than the NetBIOS name. Consider using a consistent naming standard when you add links so it will be easier to remember later.
Examples
dfscmd /map \\appserver\apps\SiteLicense \\westcoast-ap1\shared\sitelic /restore
To remove \\Midwest-ap3\Shared\Site as a target of DFS link \\Appserver\Apps\SiteLicense, type:
dfscmd /remove \\appserver\apps\SiteLicense \\midwest-ap3\shared\site To view the links and comment associated with the DFS root \\Appserver\Apps, type:
dfscmd /view \\appserver\apps /partial
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |