Nerdy Drunk

Drunk on technology

User Tools

Site Tools


windows:corrupt-dfs

Fix Corrupt DFS and SYSVOL

Fix Corrupt DFS database

Stop DFS Replication Service

Remove the old DFS database with the following commands;

icacls "c:\system volume information" /grant Administrators:F
cd c:\System Volume Information
move DFS DFS.old

Start DFS Replication


Fix DFS expired

Change the DFS offline maximum with the following command;

wmic.exe /namespace:\\root\microsoftdfs path DfsrMachineConfig set MaxOfflineTimeInDays=650

Restart DFS Replication


Enable Replication Auto Recovery

Edit registry

HKLM\System\CurrentControlSet\Services\DFSR\Parameters\StopReplicationOnAutoRecovery DWORD=0

Run command

wmic /namespace:\\root\microsoftdfs path dfsrmachineconfig set StopReplicationOnAutoRecovery=FALSE
windows/corrupt-dfs.txt · Last modified: 2022/07/21 10:41 by 127.0.0.1