Home > Commands A-M > Commands Da-Dr

DFSCMD


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Manages a distributed file system from the command line.


Syntax

DFSCMD /?

DFSCMD /add \\dfs_name\share\path \\server_name\share\path [/restore]

DFSCMD /map \\dfs_name\share\path \\server_name\share\path [comment] [/restore]

DFSCMD /remove \\dfs_name\share\path \\server_name\share\path

DFSCMD /unmap \\dfs_name\share\path

DFSCMD /view \\dfs_name\share\path [/full] [/partial] [/batch] [/batchrestore]


Parameters
comment (NT2003)
Target identification comment.
\\dfs_name\share\path (NT2003)
Distributed file system access path.
\\server_name\share\path (NT2003)
Actual file system location mapped to a DFS link.

Switches
/? (NT2003)
Ignores the Active Directory schema version number.
/add (NT2003)
Adds a target to the specified DFS link. If the specified link does not exist, will return an error.
/batch (NT2003)
Returns a batch script you can use to restore the root, with validation.
/batchrestore (NT2003)
Returns a batch script you can use to restore the root, that does not validate the targets.
/full (NT2003)
Displays the names of the root and its links, any comments associated with the root, and any targets associated with the links.
/map (NT2003)
Creates a link and maps a link to a target. If the specified DFS root does not exist, returns an error.
/partial (NT2003)
Displays any comments associated with the root.
/remove (NT2003)
Removes a target from the specified DFS link. You must specify the same link name that you used to create the link.
/restore (NT2003)
Does not attempt to validate the destination path.
/unmap (NT2003)
Deletes a DFS link and removes its targets from the DFS root.
/view (NT2003)
View details for the specified DFS root. Without additional switches, displays only the names of the root and its links.

Related

none.


Notes

none.


Examples

none.


Errorlevels

none.


Availability
External
DOS
none
Windows
none
Windows NT
NT2003