症状
受影响的 DC 在 net share 命令中没有列出 SYSVOL 或 NETLOGON 共享。
受影响 DC 上的 DFS 复制事件日志包含 DFSR 错误 4612 和 5008。两个错误中指示的合作伙伴服务器是不再可用的 DC。
Error 4612:
The DFS Replication service initialized SYSVOL at local path [path] and is waiting to perform initial replication. The replicated folder will remain in the initial synchronization state until it has replicated with its partner [partner]. If the server was in the process of being promoted to a domain controller, the domain controller will not advertise and function as a domain controller until this issue is resolved. This can occur if the specified partner is also in the initial synchronization state, or if sharing violations are encountered on this server or the sync partner. If this event occurred during the migration of SYSVOL from File Replication service (FRS) to DFS Replication, changes will not replicate out until this issue is resolved. This can cause the SYSVOL folder on this server to become out of sync with other domain controllers.
原因
受影响的 DC 很可能具有一个指示用于 SYSVOL 数据初始复制的无效源服务器的注册表项。
解决方案
在受影响的 DC 上执行以下步骤:
停止 DFS 复制服务。
启动 Registry Editor 并浏览至
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DFSR\Parameters\SysVols\Seeding SysVols\[Domain name].
在此注册表项中找到 Parent Computer 项。它很可能设置为不可用 DC 的名称。修改此注册表项,并将其值设置为当前在线且具有 SYSVOL 数据最新拷贝的 DC 的 DNS 名称。
关闭 Registry Editor。
启动 DFS 复制服务。
启动事件查看器并刷新 DFS 复制事件日志,直到显示事件 4604,指示初始复制已完成并且 SYSVOL 已初始化。
运行 net share 命令以确认是否存在 SYSVOL 和 NETLOGON 共享。