Skip to Content

Step-by-Step Fix DFSR Replication Issues

Estimated Reading Time: 4 Minutes

Step-by-Step Fix DFSR Replication Issues

 This article is a step-by-step FRS to DFSR migration guide from FRS replication of domain controllers to the newer DFSR replication.


Step #



Method 1


Open a PowerShell command and run the following cmdlet. If you are running FRS yet, you should get a warning that the migration has not been started yet. If you are running on DFSR you should get a return that the migration state is in the ’Eliminated" step.
> dfsrmig/getglobalstate
 Since we have not performed the migration steps, we will get the following error:1


Method 2


Log on to a domain controller and examine under c:\Windows whether a SYSVOL_DFSR folder exists. If it exists, it means you are already replicating using DFSR. In any other case, you should have a SYSVOL folder and replicate using FRS.



 Method 3

You may notice "File Replication Service" service running under services snap-in. This service will be disabled once the migration is complete.

Migrating to the Prepared State

The first step of the migration state is to get into the "Prepared" state. However, before actually triggering the process, we should make sure that the active directory is in a healthy state.


On each domain controller in your domain you wish to migrate, open up a command prompt and type net share to verify that SYSVOL folder is shared and maps to the correct folder. The output should be something similar to the following:



Use Registry Editor on each domain controller in the domain to navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Netlogon\Parameters and verify that the value of the SysVol registry entry is [drive:\]Windows_folder\SYSVOL\sysvol, and that the value of the SysvolReady registry entry is 1.



Verify that the DFS Replication service is listed with the values of Started in the Status column and Automatic in the Startup Type column.



Open up a command prompt and type repadmin/ReplSum to get a status of replication between domain controllers.



While having the command prompt window open, run dcdiag tool and examine the output for possible error.


Once you are confident that your active directory health is good, we may trigger the migration process. Log on to your primary domain controller (PDC).


1 Open up a PowerShell or command prompt window and type
dfsrmig/setglobalstate 1. You should get informed that the new global migration state is now set to "prepared."
2 Type dfsrmig/GetMigrationState. You will probably receive a warning that the global migration state has not reached a consistent state (yet). This is normal since domain controllers now have to perform various tasks related to the migration. Try re-running the command after some time.
3 Check on your domain controllers under c:\windows if a new SYSVOL_DFSR folder has been created.
4 Type dfsrmig/GetMigrationState to verify that the global state replication has reached a consistent level between domain controllers.
5 Now we are ready to proceed to the next step, migrating to the "Redirected" state. Type dfsrmig/setglobalstate 2 to go from the "Prepared" state to the "Redirected" state. Your output should be similar to:
6 Examine the migration process by typing dfsrmig/GetMigrationState. Once the domain controllers have reached a consistent state, proceed to the next step.  
7 We are now ready to get to the final stage of the migration process. Once the migration process is set to the next ’ELIMINATED’ state, it cannot be reverted under any circumstances. Therefore, ensure that SYSVOL replication using the DFS Replication service healthy, before committing entirely to finalizing the migration process and re-run the diagnostic commands shown earlier to verify active directory health. The most important precaution is to ensure that all domain controllers have successfully migrated to the ’REDIRECTED’ state before changing the global migration state to the ’ELIMINATED’ state. This can be achieved by typing dfsrmig/getmigrationstate.  
8 Once you ensured that the replication health is good, type dfsrmig/setGlobalState 3. There will be a series tasks that now will be performed in the background such as: If the FRS service is running on the domain controller, it is then stopped. It deletes the Active Directory configuration settings required for the FRS service to replicate the SYSVOL share between domain controllers. Thus, all global settings of the FRS service that pertain to the SYSVOL content set are deleted. The ’SYSVOL’ folder which was being replicated by the FRS service is now deleted. Note that if you have Windows Explorer or the command shell open on the domain controller and if the current directory corresponds to the ’SYSVOL’ folder location, the DFS Replication service will be unable to delete this folder owing to sharing violations. You should have a similar result as to the right.

You may notice that the SYSVOL folder is deleted.

Instead, SYSVOL_DFSR is present.

FRS service is disabled under services.





Step-by-Step Fix DFSR Replication Issues
  • This was a fantastic set of instructions. Just so happens our PDC was once a 2008 R2 server so it never was configured to change to DFSR. I followed these instructions and now all the DCs are finally consistent. Thanks.

  • It turns out the root cause of my replication issues where duplicate SRV records. Not sure how or why these appeared but they did and once removed replication worked immediately.