Authoritative & Non-Authoritative SYSVOL Synchronization (DFSR)
Before you begin
- Applies to:Authorized recovery of Active Directory SYSVOL replicated by DFSR.
- Where to start:Start with the directory recovery lead and confirm which controllers are affected before choosing a recovery method.
- What you need:Have current backups, access to DFS Replication logs, and an independently verified good SYSVOL source before attempting authoritative recovery.
Guide tools
Scope, Failure Symptoms & Architecture Overview
The SYSVOL share hosts all Group Policy Objects (GPOs) and startup/logon scripts across all Domain Controllers. In modern Active Directory domains (functional levels 2008 through 2025), SYSVOL is replicated exclusively via Distributed File System Replication (DFSR).
Common Failure Symptoms
- SYSVOL / NETLOGON Shares Missing:
Get-SmbShareshows neither share published on one or more DCs. - Event ID 2213 (Dirty Shutdown): DFSR halted after abrupt host power loss or hypervisor crash.
- Event ID 4012 (Max Offline Time Exceeded): Replication stopped because a DC was offline longer than
MaxOfflineTimeInDays(default: 60 days). - GPO Mismatches: Group policies edited on
DC-01never arrive onDC-02or branch DCs.
Recovery Matrix: Determining the Remediation Path
| Operational Scenario | Target Remediation | Impact |
|---|---|---|
| Single DC Out of Sync / Shares Missing | Non-Authoritative Restore | Low. The affected DC purges local cache and pulls fresh SYSVOL from a healthy partner DC. |
| All DCs Corrupted / Entire Domain Deadlocked | Authoritative Restore | High / Controlled. Designates one DC as the authoritative master; forces all others to rebuild from it. |
| Event ID 2213 (Dirty Shutdown) | Resume Command via WMI | Zero. Re-enables replication without rebuilding database. |
Fast-Path: Responding to Event ID 2213 (Dirty Shutdown)
If the DFSR event log displays Event ID 2213, replication was simply suspended for integrity verification following an improper shutdown.
Resume DFSR Replication via WMI
Fast-PathRetrieve the volume GUID from the DFSR event log and trigger the WMI resume method. Verify Event ID 2214 or 4604 confirms healthy replication resumption.
# 1. Retrieve the Volume GUID from Event ID 2213$Event = Get-WinEvent -LogName "DFS Replication" -MaxEvents 5 | Where-Object { $_.Id -eq 2213 } | Select-Object -First 1
# 2. Resume DFSR using WMI method$VolumeGUID = (wmic /namespace:\\root\microsoftdfs path dfsrvolumeinfo get volumeguid | Select-String -Pattern "(\{.*\})").Matches.Valuewmic /namespace:\\root\microsoftdfs path dfsrmachineinfo call ResumeReplication $VolumeGUID
# 3. Verify Event ID 2214 (Replication successfully resumed)Get-WinEvent -LogName "DFS Replication" -MaxEvents 5 | Where-Object { $_.Id -in 2214, 4604 }Procedure A: Non-Authoritative SYSVOL Restore (Single DC)
Execute this procedure on an out-of-sync Domain Controller (DC-02) when a healthy partner DC (DC-01) exists.
Pre-Flight Safety Backup
Path A - BackupOn the troubled DC (DC-02), preserve the existing local SYSVOL folder before altering replication state.
Copy-Item -Path "C:\Windows\SYSVOL" -Destination "C:\Windows\SYSVOL_PreRestore_Backup" -Recurse -ForceDisable DFSR Subscription in Active Directory
Path A - AD ConfigStop the DFSR service and flag the local DFSR subscription object as disabled (msDFSR-Enabled = FALSE) in Active Directory.
# Stop DFSR service on the troubled DCStop-Service -Name DFSR -Force
# Locate the DFSR Local Subscription object in AD$DCDistinguishedName = (Get-ADDomainController -Identity "DC-02").DistinguishedName$SubscriptionPath = "CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,$DCDistinguishedName"
# Set msDFSR-Enabled = FALSESet-ADObject -Identity $SubscriptionPath -Replace @{"msDFSR-Enabled"=$false}Force AD Replication & Start DFSR
Path A - ResyncForce immediate Active Directory synchronization so DC-02 detects the disabled state, start DFSR, and verify Event ID 4114 is logged.
# Force immediate AD replication to DC-02repadmin /syncall /AdeP
# Start DFSR serviceStart-Service -Name DFSR
# Wait for Event ID 4114 in "DFS Replication" log (Confirms disabled state recognized)Get-WinEvent -LogName "DFS Replication" -MaxEvents 5 | Where-Object { $_.Id -eq 4114 }Re-Enable DFSR Subscription & Complete Initial Sync
Path A - Re-EnableSet msDFSR-Enabled = TRUE, trigger directory replication, and monitor until Event ID 4614 or 4604 confirms initial synchronization is complete and shares are restored.
# Set msDFSR-Enabled = TRUESet-ADObject -Identity $SubscriptionPath -Replace @{"msDFSR-Enabled"=$true}
# Force AD replication againrepadmin /syncall /AdeP
# Poll DFSR until Event ID 4614 or 4604 occurs (Initial sync complete, shares restored)Get-WinEvent -LogName "DFS Replication" -MaxEvents 10 | Where-Object { $_.Id -in 4604, 4614 }Procedure B: Authoritative SYSVOL Restore (Domain-Wide Outage)
Stop Services Across ALL Domain Controllers
Path B - FreezeSelect the Domain Controller with the most current, verified Group Policy files (DC-01) and stop the DFSR service across all DCs to prevent conflicting writes.
# Stop DFSR on ALL Domain Controllers in the domainInvoke-Command -ComputerName "DC-01", "DC-02" -ScriptBlock { Stop-Service -Name DFSR -Force}Mark Partner DCs as Non-Authoritative
Path B - DemoteRun on the master DC (DC-01) to disable DFSR subscriptions on partner Domain Controllers so they rebuild from the master upon restart.
# Set partner DC-02 msDFSR-Enabled = FALSE$DC02_DN = (Get-ADDomainController -Identity "DC-02").DistinguishedNameSet-ADObject -Identity "CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,$DC02_DN" -Replace @{"msDFSR-Enabled"=$false}Mark Master DC as Authoritative
Path B - Master ConfigEnsure the master DC is enabled and mark it as authoritative by setting msDFSR-Options = 1 on the Domain System Volume object.
$DC01_DN = (Get-ADDomainController -Identity "DC-01").DistinguishedName$DC01_Subscription = "CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,$DC01_DN"$DC01_SysvolVolume = "CN=Domain System Volume,CN=DFSR-GlobalSettings,CN=System,$((Get-ADDomain).DistinguishedName)"
# 1. Ensure master is enabledSet-ADObject -Identity $DC01_Subscription -Replace @{"msDFSR-Enabled"=$true}
# 2. Mark master as Authoritative (msDFSR-Options = 1)Set-ADObject -Identity $DC01_SysvolVolume -Replace @{"msDFSR-Options"=1}
# Force AD replicationrepadmin /syncall /AdePRestart Master DC DFSR & Verify Event ID 4602
Path B - Master InitStart DFSR on DC-01 only and verify that Event ID 4602 is logged, confirming the master has initialized as the authoritative source.
# Start DFSR on DC-01 onlyStart-Service -Name DFSR
# Wait for Event ID 4602 (Confirms DC-01 is initialized as authoritative source)Get-WinEvent -LogName "DFS Replication" -MaxEvents 5 | Where-Object { $_.Id -eq 4602 }Re-Enable Partner DCs Sequentially
Path B - ResyncOnce DC-01 logs Event ID 4602, re-enable partner DC subscriptions and start DFSR services to pull the authoritative SYSVOL replica.
# Re-enable DC-02 subscriptionSet-ADObject -Identity "CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,$DC02_DN" -Replace @{"msDFSR-Enabled"=$true}
# Force AD replicationrepadmin /syncall /AdeP
# Start DFSR on DC-02Invoke-Command -ComputerName "DC-02" -ScriptBlock { Start-Service -Name DFSR }Operational Verification & Emergency Rollback Procedure
Validate SMB Shares and DFSR Backlog
VerificationConfirm SYSVOL and NETLOGON shares are actively published on all Domain Controllers and ensure the DFSR outbound replication backlog is zero.
# 1. Verify SYSVOL & NETLOGON SMB shares are publishedInvoke-Command -ComputerName "DC-01", "DC-02" -ScriptBlock { Get-SmbShare -Name SYSVOL, NETLOGON }
# 2. Verify DFSR outbound replication backlog is zeroGet-DfsrBacklog -SourceComputerName "DC-01" -DestinationComputerName "DC-02" -GroupName "Domain System Volume" -FolderLogicalName "SYSVOL Share"
# 3. Execute directory diagnosticsdcdiag /test:FrsSysvol /vEmergency Rollback & Local Cache Restoration
RollbackIf the authoritative restore causes unexpected loss of newer policy files, immediately stop replication and restore the pre-restore backup copy.
# 1. Stop the DFSR service immediately across all DCsStop-Service DFSR -Force
# 2. Restore the pre-restore backup directoryCopy-Item -Path "C:\Windows\SYSVOL_PreRestore_Backup\*" -Destination "C:\Windows\SYSVOL\sysvol" -Recurse -Force
# 3. Verify GPO consistencyGet-GPO -All | Select-Object DisplayName, Id, GpoStatusYour feedback keeps these production procedures accurate and battle-tested.