===== Fix Corrupt DFS and SYSVOL ===== {{tag>Windows}} ===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