The most common administration activities related to DFS-Namespaces can be performed using the “DFS Management” MMC. This will show up under “Administrative Tools” after you add the DFS role service in Server Manager. You can also add just the MMC for remote management of a DFS namespace server. You will find that in Server Manager, under Add Feature, Remote Server Administration Tools (RSAT), Role Administration Tools, File Services Tools.
Another way to manage DFS-N is to use DFSUTIL.EXE, which is a command line tool. There are plenty of options and you can perform pretty much any DFS-related activity, from creating a namespace to adding links to exporting the entire configuration to troubleshooting. This can be very handy for automating tasks by writing scripts or batch files. DFSUTIL.EXE is an in-box tool in Windows Server 2008 (as with the MMC, it is loaded with the DFS-Namespaces role service or with the RSAT for File Services Tools).
Please find below a table with a comprehensive list of the parameters and options available in DFSUTIL.EXE for Windows Server 2008. Please note that DFSUTIL.EXE had a different format for parameters in Windows Server 2003, but that old syntax still works in Windows Server 2008. The old syntax is listed in the last column, prefixed by “OLD:”. There is also an old DFSCMD.EXE, which still works, which is also mentioned prefixed by “OLD:”.
| Parameters | Description | Usage and Exampes | Subcommands, notes and old syntax |
| <None> | Manages DFS Namespaces, servers and clients | Dfsutil Dfsutil /oldcli Dfsutil /? |
SUBCOMMANDS: Root – Displays,creates,removes,imports,exports namespace roots. Link – Displays, creates, removes, or moves folders (links). Target – Displays,creates,modifies folder targets (link targets). Property – Displays or modifies a folder target or namespace server. Client – Displays or modifies client information or registry keys. Server – Displays or modifies namespace configuration on the server. Diag – Perform diagnostics or view dfsdirs/dfspath. Domain – Displays all domain-based namespaces in a domain. Cache – Displays or flushes the client cache. NOTES: |
| Root | Displays information about the namespace root. Dfsutil Root commands support creating, removing, importing or exporting namespace roots. | dfsutil root <servershare> [Verbose]
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: AddDom – Creates a new domain-based namespace. AddStd – Creates a new stand-alone namespace. Remove – Removes the namespace. Export – Exports the namespace configuration to a file. Import – Imports the namespace from another namespace or a file. ForceSync – Perform a Forced sync on the target of a namespace. OLD: dfsutil /Root:<DfsName> /View [/Verbose] |
| Root AddDom |
Creates a new domain based DFS namespace. | dfsutil root adddom <servershare> [<Version>] [<Comment>]
PARAMETERS: EXAMPLES: |
NOTES: 1. To add new root targets, use “dfsutil target add” command. 2. Default setting for creation of new namespace is V2. OLD: dfsutil /AddFtRoot /Server:<ServerName> /Share:<ShareName> /Comment:<Comment> |
| Root AddStd |
Creates a new stand-alone namespace. | dfsutil root addstd <servershare> [<Comment>]
PARAMETERS: EXAMPLES: |
OLD: dfsutil /AddStdRoot /Server:<ServerName> /Share:<ShareName> /Comment:<Comment> |
| Root Remove |
Deletes the namespace root. | dfsutil root remove <servershare>
PARAMETERS: EXAMPLES: |
OLD: dfsutil /RemStdRoot /Server:<ServerName> /Share:<ShareName> OLD: dfsutil /RemFtRoot /Server:<ServerName> /Share:<ShareName> OLD: dfsutil /RemFtRoot:<RootName> /Server:<ServerName> /Share:<ShareName> |
| Root Export |
Exports the namespace configuration information to a file. | dfsutil root export <servershare> <filename> [Verbose] [DownLevel]
PARAMETERS: EXAMPLES: |
OLD: dfsutil /Root:<DfsName> /Export:<File> [/Verbose] |
| Root Import |
Imports folders, folder targets and configuration information for a namespace from a file or another namespace. | dfsutil root import | SUBCOMMANDS: Set – Imports and overwrites the existing namespace. Merge – Imports and merges with the existing namespace. Compare – Compares the namespace with another namespace. BlobSize – Displays the approximate AD DS blob size. |
| Root Import Set |
Imports folders, folder targets and configuration information for a namespace from a file or another namespace and overwrites existing folders and folder targets. | dfsutil root import set <srcservershare>|<filename> <destservershare> [NoBackup] [Verbose]
PARAMETERS: EXAMPLES: |
OLD: dfsutil /Root:<DfsName> /Import:<File> /Set|Merge|Compare [/Verbose] [/NoBackup] |
| Root Import Merge |
Imports folders, folder targets and configuration information for a namespace from a file and merges existing folders and folder targets. | dfsutil root import merge <filename> <destservershare> [NoBackup] [Verbose]
PARAMETERS: EXAMPLES: |
OLD: dfsutil /Root:<DfsName> /Import:<File> /Set|Merge|Compare [/Verbose] [/NoBackup] |
| Root Import Compare |
Compares a namespace on one server with the namespace configuration on another server or in a file. | dfsutil root import compare <srcservershare>|<filename> <destservershare> [Verbose]
PARAMETERS: EXAMPLES: |
OLD: dfsutil /Root:<DfsName> /ImportRoot:<MasterDfsName> /Mirror|Compare [/Verbose] [/NoBackup] |
| Root Import BlobSize |
Displays the approximate size of Active Directory Domain Services (AD DS) Blob for the specified namespace import file. | dfsutil root import blobsize <filename>
PARAMETERS: EXAMPLES: |
OLD: dfsutil /Root:<DfsName> /Import:<File> /BlobSize |
| Root ForceSync |
To initiate a forced DFS metadata resync operation on the DFS root target of a specified domain-based namespace using the Windows Server 2008 mode or standalone DFS namespace ForceSync command can be used .This is not supported on Windows Server 2003 based Namespaces. | dfsutil root forcesync <servershare>
PARAMETERS: EXAMPLES: |
NOTES: Do not specify <domainroot>, use <roottargetshare>. |
| Link | Displays the information about the link(folder) and link(folder) targets. Link commands are used to create a new link, delete a link or move the links. | dfsutil link <DfsPath>
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Add – Creates a new folder. Remove – Removes the specified folder. Move – Moves the folder to another location in the namespace. |
| Link Add |
Adds a folder (link) to the specified namespace. | dfsutil link add <DfsPath> <serversharepath> [Restore] [<Comment>]
PARAMETERS: EXAMPLES: |
NOTES: 1. Folders can be created with the restore option . In this case, the folder target does not need to be a SMB path. Use this for namespace paths ( domainnamespace ), NFS shares or any folder target that you do not want to verify. 2. To add another folder target to an existing folder, use the command “Dfsutil Target Add”. OLD: dfsutil /AddLink /Path:<DfsPath> /Server:<LinkTargetServer> /Share:<TargetShare> /Comment:<Comment> |
| Link Remove |
Deletes the folder (link) and any associated folder targets (link targets). | dfsutil link remove <DfsPath>
PARAMETERS: EXAMPLES: |
OLD: dfsutil /RemoveLink /Path:<DfsPath> /Server:<LinkTargetServer> /Share:<TargetShare> OLD: Dfscmd /remove dfsnamedfssharepath serversharepath |
| Link Move |
Moves a folder (link) to another location in the namespace. When you specify a folder that contains other folder, all subfolders are moved as well. If a folder already exists in the new location, you can use the Replace option to delete the existing folder and replace it with the folder you want to move. You cannot move folders between namespaces. | dfsutil link move <OldDfsPath> <NewDfsPath> [Replace]
PARAMETERS: EXAMPLES: |
OLD: Dfscmd /move dfsnamedfssharepath1 dfsnamedfssharepath2 [/force] |
| Target | Displays information about the folder target (link target) or namespace server (root target). Target commands are used to add, remove or modify the properties of a folder target or namespace server. | dfsutil target [<DfsPath>] <serversharepath>
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Add – Adds a new folder target. Remove – Removes the folder target. NOTES: OLD: Dfscmd /view dfsnamedfsshare [/partial | /full | /batch || /batchrestore] |
| Target Add |
Adds a folder target (link target) to an existing folder (link), or a namespace server (root target) to an existing namespace root. | dfsutil target add [<DfsPath>] <serversharepath> [Restore]
PARAMETERS: EXAMPLES: |
NOTES: 1. To add new namespace servers to an existing namespace root, omit <DfsPath>. 2. To create new namespace, use the “Dfsutil Root” command with the Adddom or Addstd parameters. 3. Folder targets can be created with the restore option. In this case,the folder target does not need to be a SMB path. Use this for namespace paths ( domainnamespace ), NFS shares or any folder target that you do not want to verify. OLD: Dfscmd /map dfsnamedfssharepath serversharepath [comment] [/restore] |
| Target Remove |
Deletes a folder target (link target) from a folder (link), or a namespace server (root target) from a namespace. | dfsutil target remove [<DfsPath>] <serversharepath>
PARAMETERS: EXAMPLES: |
NOTES: 1. To delete a root target (namespace server) do not specify <DfsPath>. If the namespace server is the only namespace server in the namespace, then the namespace will be deleted. 2. To remove all the namespace servers, use the “Dfsutil Root Remove” command. OLD: Dfscmd /unmap dfsnamedfssharepath |
| Property | Displays or modifies the properties of a folder target (link target) or namespace server (root target). | dfsutil property | SUBCOMMANDS: Sitecosting – Displays or modifies site costing for a namespace. RootScalability – Displays or modifies the namsespace polling mode. ABDE – Enable/Disable/View ABDE property of a Namespace. Insite – Displays or modifies the in-site property. TargetfailBack – Displays or modifies client fail back. ACL – Set/Get Security Information on the folder. State – Displays or modifies a folder target or namespace server. TTL – Displays or changes client referral caching. PriorityRank – Displays or changes the ordering method (priority rank). PriorityClass – Displays or changes the target priority. Comment – Set/View the comment for DFS namesapace or DFS link. |
| Property Sitecosting |
Displays whether site costing is enabled, and enables or disables it on the specified namespace. Enable site costing to force clients to evaluate inter-site link costs and choose the lowest cost folder target. Site costing is disabled by default. | dfsutil property sitecosting <DfsPath>
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Enable – Enable this property on the namespace. Disable – Disable this property on the namespace. NOTES: OLD: dfsutil /Root:<DfsName> /SiteCosting /Enable|Disable|Display [/Verbose] |
| Property RootScalability |
RootScalability is an expert-only command to increase performance of large deployments of DFS namespaces. When set, network traffic among DFS root servers is kept to a minimum. In addition, there will be less traffic between the primary DC and DFS servers.The drawback is that users may see outdated information from dfs servers at times. | dfsutil property rootscalability <DfsPath>
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Enable – Enable this property on the namespace. Disable – Disable this property on the namespace. NOTES: OLD: dfsutil /Root:<DfsName> /RootScalability /Enable|Disable|Display [/Verbose] |
| Property ABDE |
ABDE command is a quick way to check if Access Based Directory Enumeration is enabled or disabled on the NameSpace. This is the property of domain-based namespace using the Windows Server 2008 mode or Standalone Namespaces in Windows Server 2008. | dfsutil property abde <DfsPath>
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Enable – Enable this property on the namespace. Disable – Disable this property on the namespace. NOTES: |
| Property Insite |
Insite can be used to make sure clients access only those replicas that are in the same site as the client. It can also be used to disable such behavior. | dfsutil property insite <DfsPath>
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Enable – Enable this property on the namespace or link. Disable – Disable this property on the namespace or link. NOTES: OLD: dfsutil /Path:<DfsPath> /InSite /Enable|Disable|Display [/Verbose] |
| Property TargetfailBack |
Displays TargetfailBack property of root or link TargetFailback is an expert-only command to make sure clients failback to target servers that are closer to them after having failed over to a target that’s potentially out of site. | dfsutil property targetfailback <DfsPath>
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Enable – Enable this property on the namespace or link. Disable – Disable this property on the namespace or link. NOTES: OLD: dfsutil /Path:<DfsPath> /TargetFailback /Enable|Disable|Display [/Verbose] |
| Property ACL |
ACL command is a quick way to set or get the ACLs on the link. | dfsutil property acl <DfsPath> [ShowSDDL]
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Grant – Grant permissions for a user or group(trustee). Deny – Deny Permissions for user or group(trustee). Revoke – Revoke granted permissions for user or group. Set – Set Security Information on the folder from SDDL input. Reset – Remove the Security Descriptor associated with the folder. Control – Set Security control Information on the folder. |
| Property State |
Displays State of Root/RootTarget or Link/Link target | dfsutil property state <DfsPath> [<servershare>]
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Online – Set state of root target or folder target to Online. Offline – Set state of root target or folder target to Offline. NOTES: OLD: dfsutil /Path:<DfsPath> /State /Server:<RootOrLinkTargetServer> /Share:<TargetShare> |
| Property TTL |
Displays the Timeout value of root or link. | dfsutil property ttl <DfsPath>
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Set – Set this property of DFS namesapace or DFS link. OLD: dfsutil /Enable|Disable|Display [/Verbose] /Path:<DfsPath> {/TTL:<Timeout> /Set}|{/TTL /Display} [/Verbose] |
| Property PriorityRank |
TargetPriorityRank is a useful way to control client accesses to dfs target servers. | dfsutil property priorityrank <DfsPath> <servershare> [Verbose]
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Set – Set this property of the root or link target. OLD: dfsutil /Path:<DfsPath> /TargetPriority /Server:<TargetServerName> /Share:<TargetShare> [/Display] [/Set] [/PriorityRank:<Rank> [/PriorityClass:<SiteCostNormal|GlobalHigh|SiteCostHigh|Site |
| Property PriorityClass |
TargetPriorityClass is a useful way to control client accesses to DFS target servers. | dfsutil property priorityclass <DfsPath> <servershare> [Verbose]
PARAMETERS: EXAMPLES: |
SUBCOMMANDS: Set – Set this property of the root or link target. NOTES: OLD: dfsutil /Path:<DfsPath> /TargetPriority /Server:<TargetServerName> /S |
PingBack from http://www.windowsaffinity.com/?p=895
LikeLike
In this blog post, let me touch on a topic that I frequently get questions on from customers. Most namespace
LikeLike
For Info: the text in the last column in your table does not appear to be wrapping, and there is no scroll on it.
LikeLike