text stringlengths 0 4.23k |
|---|
/DFSpath:<namespace root or DFS folder> |
The namespace root or Distributed File System (DFS) folder (link) with targets for which to verify the site association. |
/recurse |
Enumerates and verifies the site associations for all folder targets under the specified namespace root. |
/full |
Verifies that AD DS and the registry of the server contain the same site association information. |
/machine:<server name> |
/DFSpath:<namespace root or DFS folder> |
Examples |
To check the site associations on machine\MyServer, type: |
dfsdiag /testsites /machine:MyServer |
To check a Distributed File System (DFS) folder to verify the site association, along with verifying that AD DS and the registry of the server contain the same site association information, type: |
dfsdiag /TestSites /DFSpath:\\contoso.com\namespace1\folder1 /full |
To check a namespace root to verify the site association, along with enumerating and verifying the site associations for all folder targets under the specified namespace root, and verifying that AD DS and the registry of the server contain the same site association information, type: |
dfsdiag /testsites /DFSpath:\\contoso.com\namespace2 /recurse /full |
dfsdiag |
Provides diagnostic information for DFS Namespaces. |
Syntax |
dfsdiag /testdcs [/domain:<domain name>] |
dfsdiag /testsites </machine:<server name>| /DFSPath:<namespace root or DFS folder> [/recurse]> [/full] |
dfsdiag /testdfsconfig /DFSRoot:<namespace> |
dfsdiag /testdfsintegrity /DFSRoot:<DFS root path> [/recurse] [/full] |
dfsdiag /testreferral /DFSpath:<DFS path to get referrals> [/full] |
Parameters |
Parameter |
Description |
dfsdiag testdcs |
Checks domain controller configuration. |
dfsdiag testsites |
Checks site associations. |
dfsdiag testdfsconfig |
Checks DFS Namespace configuration. |
dfsdiag testdfsintegrity |
Checks DFS Namespace integrity. |
dfsdiag testreferral |
Checks referral responses. |
/? |
Displays help at the command prompt. |
dfsrmig |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
The migration tool for the DFS Replication service, dfsrmig.exe, is installed with the DFS Replication service. This tool migrates SYSvol replication from File Replication Service (FRS) to Distributed File System (DFS) Replication. It also provides information about the progress of the migration and modifies Active Directory Domain Services (AD DS) objects to support the migration. |
Syntax |
dfsrmig [/setglobalstate <state> | /getglobalstate | /getmigrationstate | /createglobalobjects | |
/deleterontfrsmember [<read_only_domain_controller_name>] | /deleterodfsrmember [<read_only_domain_controller_name>] | /?] |
Parameters |
Parameter |
Description |
/setglobalstate <state> |
Sets the domain's global migration state to one that corresponds to the value specified by state. You can only set the global migration state to a stable state. The state values include:0 - Start state1 - Prepared state2 - Redirected state3 - Eliminated state |
/getglobalstate |
Retrieves the current global migration state for the domain from the local copy of the AD DS database, when run on the PDC emulator. Use this option to confirm that you set the correct global migration state.Important: You should only run this command on the PDC emulator. |
/getmigrationstate |
Retrieves the current local migration state for all domain controllers in the domain and determines whether those local states match the current global migration state. Use this option to determine if all domain controllers have reached the global migration state. |
/createglobalobjects |
Creates the global objects and settings in AD DS used by DFS Replication uses. The only situations where you should use this option to manually create objects and settings, are:A new read-only domain controller is promoted during migration. If a new read-only domain controller is promoted in the domain after moving into the Prepared state, but before migration to the Eliminated state, then the objects that correspond to the new domain controller aren't created, causing replication and the migration to fail.Global settings for the DFS Replication service are missing or were deleted. If these settings are missing for a domain controller, migration from the Start state to the Prepared state will stall at the Preparing transition state. Note: Because the global AD DS settings for the DFS Replication service for a read-only domain controller are created on the PDC emulator, these settings need to replicate to the read-only domain controller from the PDC emulator before the DFS Replication service on the read-only domain controller can use these settings. Because of Active Directory replication latencies, this replication can take some time to occur. |
/deleterontfrsmember [<read_only_domain_controller_name>] |
Deletes the global AD DS settings for FRS replication that correspond to the specified read-only domain controller, or deletes the global AD DS settings for FRS replication for all read-only domain controllers if no value is specified for <read_only_domain_controller_name>.You shouldn't need to use this option during a normal migration process, because the DFS Replication service automatically deletes these AD DS settings during the migration from the Redirected state to the Eliminated state. Use this option to manually delete the AD DS settings only when the automatic deletion fails on a read-only domain controller and stalls the read-only domain controller for a long time during the migration from the Redirected state to the Eliminated state. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.