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
Change the DFS offline maximum with the following command;
wmic.exe /namespace:\\root\microsoftdfs path DfsrMachineConfig set MaxOfflineTimeInDays=650
Restart DFS Replication
Edit registry
HKLM\System\CurrentControlSet\Services\DFSR\Parameters\StopReplicationOnAutoRecovery DWORD=0
Run command
wmic /namespace:\\root\microsoftdfs path dfsrmachineconfig set StopReplicationOnAutoRecovery=FALSE