dfscmd |
existing
DFS tree.
Syntax
dfscmd options
Options
- /add \\dfsname\dfsshare\path \\server\share\path [/restore]
Adds a replica to a DFS volume. With /restore,
don't check the destination server.- /map \\dfsname\dfsshare\path \\server\share\path [comment] [/restore]
Creates a new DFS volume by mapping a DFS path to a shared folder.
The /restore option causes no check to be
performed to see if the destination server is available.- /remove \\dfsname\dfsshare\path \\server\share\path
Removes a replica from a DFS volume.- /unmap \\dfsname\dfsshare\path
Deletes a DFS volume and removes all its replicas.- /view \\dfsname\dfsshare [/partial | /full | /batch || / batchrestore]
Views the volumes in the specified DFS tree. If no arguments are
specified, only volume names are displayed. The
/partial option displays the comments as well, and
the /full option lists the full details of the
tree. The /batch option is used to output the DFS
tree configuration to a file, which allows the DFS tree to be
re-created using the /batchrestore option if
necessary.
Examples
Add a new DFS link named SALESREPORTS, which maps to the shared
folder Sales on the server
Test to the existing domain-based DFS root named
\\mtitcanada . com\public :
dfscmd /map \\mtitcanada.com\public\salesreports \\test\sales
The command completed successfully.
Add a second DFS link named CATALOGS, which maps to the shared folder
Cat on server
Bach.mtitworld.com :
dfscmd /map \\mtitcanada.com\public\catalogs \\bach.mtitworld.com\cat
The command completed successfully.
Add a DFS replica that maps the existing DFS link SALESREPORTS to the
shared folder Sales on server 172.16.11.100:
dfscmd /add \\mtitcanada.com\public\salesreports \\172.16.11.100\sales
The command completed successfully.
View the full details of the domain-based DFS tree whose root is
\\mtitcanada.com\ public :
dfscmd /view \\mtitcanada.com\public /full
\\MTITCANADA\public
\\TEST\pub
\\MTITCANADA\public\salesreports
\\test\sales
\\172.16.11.100\sales
\\MTITCANADA\public\catalogs
\\bach.mtitworld.com\cat
The command completed successfully.
Notes
- The dfscmd command can manage existing DFS trees
(both domain-based and standalone) but can't be used
to create a new DFS tree. You must use the Distributed File System
console to create a new DFS tree by creating a new DFS root (see
DFS in Chapter 4 for more information). - Paths that have embedded spaces must be enclosed in quotes.
See Also
DFS