Windows Server: How to Perform an Authoritative Sync of SYSVOL Data Using Distributed File System Replication (DFSR)
Summary:This article illustrates the procedure for performing an authoritative sync of SYSVOL data on an Active Directory domain controller using Distributed File System Replication (DFSR).
Please select a product to check article relevancy
This article applies to This article does not apply toThis article is not tied to any specific product.Not all product versions are identified in this article.
Important: This article is only applicable if SYSVOL data is being replicated using Distributed File System Replication (DFSR). This has been the preferred method of replicating SYSVOL data since Windows Server 2008. It is possible, however, that the older method, File Replication Service (FRS), is still in use if the domain has existed for a long time. To determine whether DFSR is in use, run dfsrmig /getmigrationstate from an elevated command prompt on a domain controller (DC). If the migration state is "Eliminated," DFSR is in use.
The SYSVOL folder hierarchy, present on all Active Directory DCs, is used to store two important sets of data:
Group Policy template files: These are stored in separate folders beneath \\SYSVOL\<domain>\Policies.
Logon, logoff, startup, and shutdown scripts used by machines in the domain: These are stored in \\SYSVOL\<domain>\scripts. The scripts folder is itself shared as NETLOGON.
This data is replicated among DCs, but SYSVOL replication takes place separately from Active Directory replication. It is possible for one to fail while the other is fully functional. In some situations, SYSVOL replication may fail and be unable to resume without manual intervention. The following steps perform an authoritative sync of SYSVOL. In an authoritative sync, DFSR initializes SYSVOL using the DC's own copy of the SYSVOL data. This becomes the source copy of SYSVOL for the domain. An authoritative sync is necessary if the DC with the most up-to-date copy of the SYSVOL data is the DC on which DFSR has stopped working. This is implicitly true if there is only one DC in the domain.
Note: This article does not specify which DC should be chosen as authoritative. Doing so can take some time, especially in a large domain. It involves examining the SYSVOL data on each DC and determining which one has the most complete and up-to-date data. The process below begins after an authoritative DC has been chosen.
To perform an authoritative sync of SYSVOL data using DFSR, follow these steps:
On the authoritative DC, launch the ADSI Edit console (adsiedit.msc).
If Default naming context is already listed in the left pane, go to the next step. Otherwise, perform the following steps to connect to the default naming context:
Right-click the ADSI Edit header in the left pane and select Connect to...
Select the radio button labeled Select a well known Naming Context and select Default naming context from the dropdown list.
Click OK. Default naming context should now appear in the left pane of the console.
Under the default naming context, browse to DC=domain > OU=Domain Controllers > CN=servername > CN=DFSR-LocalSettings > CN=Domain System Volume. In this step, servername represents the name of the DC that has been chosen as authoritative.
Right-click CN=SYSVOL Subscription and select Properties.
Double-click the msDFSR-Enabled attribute and set its value to FALSE.
Double-click the msDFSR-Options attribute and set its value to 1.
Click OK to close the properties window.
Repeat steps 3-5, but not step 6, replacing servername with the name of every other DC in the domain. In other words, browse to the CN=SYSVOL Subscription object of each of the other DCs and set its msDFSR-Enabled attribute to FALSE. Do not change the value of the msDFSR-Options attribute.
Force Active Directory replication throughout the domain. This may take some time, depending on the size and replication topology of the domain.
On every DC in the domain, run dfsrdiag pollad from an elevated command prompt.
On the authoritative DC, launch Event Viewer and confirm that the DFS Replication event log contains event 4114. This event indicates that SYSVOL is no longer being replicated. (This event will be present on all DCs, but checking all of them is not necessary.)
In ADSI Edit, browse to the location in step 3 and set the msDFSR-Enabled attribute to TRUE.
On the authoritative DC, run dfsrdiag pollad from an elevated command prompt.
Check the DFS Replication event log on the authoritative DC for event 4602. This event confirms that an authoritative sync of SYSVOL has occurred on this DC.
Repeat step 8, but set each DC's msDFSR-Enabled attribute to TRUE this time. As before, do not change the value of the msDFSR-Options attribute.
Force Active Directory replication throughout the domain.
On every DC except the authoritative one, run dfsrdiag pollad one last time.
On at least one of the non-authoritative DCs, confirm that events 4614 and 4604 appear in the DFS Replication event log. These events indicate that those DCs have performed a non-authoritative sync of SYSVOL.
The steps above ensure that a non-authoritative sync of SYSVOL is performed on all other DCs after the authoritative sync is performed on the authoritative DC. This avoids possible conflicts arising in the SYSVOL data.
Refer to this video:
Additional Information
If the dfsrdiag pollad command is not recognized, you have two options:
Restart the DFS Replication service instead of running the command. If other (non-SYSVOL) data is being replicated by DFSR, this may cause brief interruptions.
Install the DFS Management tools by selecting Add Roles and Features from the Manage menu of Server Manager. The DFS Management tools are found at the location shown below.
Affected Products
Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows Small Business Server 2011 Essentials, Microsoft Windows Small Business Server 2008, Microsoft Windows 2008 Server R2
, Microsoft Windows 2008 Server Service Pack 2, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2
...