Skip to content

Authoritative & Non-Authoritative SYSVOL Synchronization (DFSR)

SOP-SYS-012 Standard Operating Procedure v1.0.0
Last Updated 2026-10-14
Author Systems Administration Team
đŸ’ģ Target OS / Systems:
Windows Server 2022Windows Server 2025DFS Replication (DFSR)Active Directory Domain Services (AD DS)

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
Guide tools
0/0 Steps (0%)

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-SmbShare shows 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-01 never arrive on DC-02 or branch DCs.

Recovery Matrix: Determining the Remediation Path

Operational ScenarioTarget RemediationImpact
Single DC Out of Sync / Shares MissingNon-Authoritative RestoreLow. The affected DC purges local cache and pulls fresh SYSVOL from a healthy partner DC.
All DCs Corrupted / Entire Domain DeadlockedAuthoritative RestoreHigh / Controlled. Designates one DC as the authoritative master; forces all others to rebuild from it.
Event ID 2213 (Dirty Shutdown)Resume Command via WMIZero. 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.

01

Resume DFSR Replication via WMI

Fast-Path

Retrieve the volume GUID from the DFSR event log and trigger the WMI resume method. Verify Event ID 2214 or 4604 confirms healthy replication resumption.

Terminal window
# 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.Value
wmic /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.

02

Pre-Flight Safety Backup

Path A - Backup

On the troubled DC (DC-02), preserve the existing local SYSVOL folder before altering replication state.

Terminal window
Copy-Item -Path "C:\Windows\SYSVOL" -Destination "C:\Windows\SYSVOL_PreRestore_Backup" -Recurse -Force

03

Disable DFSR Subscription in Active Directory

Path A - AD Config

Stop the DFSR service and flag the local DFSR subscription object as disabled (msDFSR-Enabled = FALSE) in Active Directory.

Terminal window
# Stop DFSR service on the troubled DC
Stop-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 = FALSE
Set-ADObject -Identity $SubscriptionPath -Replace @{"msDFSR-Enabled"=$false}

04

Force AD Replication & Start DFSR

Path A - Resync

Force immediate Active Directory synchronization so DC-02 detects the disabled state, start DFSR, and verify Event ID 4114 is logged.

Terminal window
# Force immediate AD replication to DC-02
repadmin /syncall /AdeP
# Start DFSR service
Start-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 }

05

Re-Enable DFSR Subscription & Complete Initial Sync

Path A - Re-Enable

Set msDFSR-Enabled = TRUE, trigger directory replication, and monitor until Event ID 4614 or 4604 confirms initial synchronization is complete and shares are restored.

Terminal window
# Set msDFSR-Enabled = TRUE
Set-ADObject -Identity $SubscriptionPath -Replace @{"msDFSR-Enabled"=$true}
# Force AD replication again
repadmin /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)

06

Stop Services Across ALL Domain Controllers

Path B - Freeze

Select 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.

Terminal window
# Stop DFSR on ALL Domain Controllers in the domain
Invoke-Command -ComputerName "DC-01", "DC-02" -ScriptBlock {
Stop-Service -Name DFSR -Force
}

07

Mark Partner DCs as Non-Authoritative

Path B - Demote

Run on the master DC (DC-01) to disable DFSR subscriptions on partner Domain Controllers so they rebuild from the master upon restart.

Terminal window
# Set partner DC-02 msDFSR-Enabled = FALSE
$DC02_DN = (Get-ADDomainController -Identity "DC-02").DistinguishedName
Set-ADObject -Identity "CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,$DC02_DN" -Replace @{"msDFSR-Enabled"=$false}

08

Mark Master DC as Authoritative

Path B - Master Config

Ensure the master DC is enabled and mark it as authoritative by setting msDFSR-Options = 1 on the Domain System Volume object.

Terminal window
$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 enabled
Set-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 replication
repadmin /syncall /AdeP

09

Restart Master DC DFSR & Verify Event ID 4602

Path B - Master Init

Start DFSR on DC-01 only and verify that Event ID 4602 is logged, confirming the master has initialized as the authoritative source.

Terminal window
# Start DFSR on DC-01 only
Start-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 }

10

Re-Enable Partner DCs Sequentially

Path B - Resync

Once DC-01 logs Event ID 4602, re-enable partner DC subscriptions and start DFSR services to pull the authoritative SYSVOL replica.

Terminal window
# Re-enable DC-02 subscription
Set-ADObject -Identity "CN=SYSVOL Subscription,CN=Domain System Volume,CN=DFSR-LocalSettings,$DC02_DN" -Replace @{"msDFSR-Enabled"=$true}
# Force AD replication
repadmin /syncall /AdeP
# Start DFSR on DC-02
Invoke-Command -ComputerName "DC-02" -ScriptBlock { Start-Service -Name DFSR }

Operational Verification & Emergency Rollback Procedure

11

Validate SMB Shares and DFSR Backlog

Verification

Confirm SYSVOL and NETLOGON shares are actively published on all Domain Controllers and ensure the DFSR outbound replication backlog is zero.

Terminal window
# 1. Verify SYSVOL & NETLOGON SMB shares are published
Invoke-Command -ComputerName "DC-01", "DC-02" -ScriptBlock { Get-SmbShare -Name SYSVOL, NETLOGON }
# 2. Verify DFSR outbound replication backlog is zero
Get-DfsrBacklog -SourceComputerName "DC-01" -DestinationComputerName "DC-02" -GroupName "Domain System Volume" -FolderLogicalName "SYSVOL Share"
# 3. Execute directory diagnostics
dcdiag /test:FrsSysvol /v

12

Emergency Rollback & Local Cache Restoration

Rollback

If the authoritative restore causes unexpected loss of newer policy files, immediately stop replication and restore the pre-restore backup copy.

Terminal window
# 1. Stop the DFSR service immediately across all DCs
Stop-Service DFSR -Force
# 2. Restore the pre-restore backup directory
Copy-Item -Path "C:\Windows\SYSVOL_PreRestore_Backup\*" -Destination "C:\Windows\SYSVOL\sysvol" -Recurse -Force
# 3. Verify GPO consistency
Get-GPO -All | Select-Object DisplayName, Id, GpoStatus

Comments