I have two domain controllers running Windows Server 2012 R2 (DC01 and DC-02). I encountered a DFS replication error and decided to permanently demote DC-02, as I plan to migrate to Windows Server 2019 side by side. I demoted DC-02 using Server Manager, and everything seemed perfect: I removed DC-02 from Sites and Services, checked DNS records, and removed DC-02 from Active Directory Users and Computers. There are no more entries for DC-02 in the primary DC01.
However, when I run DCDIAG, I still see the following error:
Event String:
The DFS Replication service stopped replication on the folder with the following local path: C:\Windows\SYSVOL\domain. This server has been disconnected from other partners for 1583 days, which is longer than the time allowed by the MaxOfflineTimeInDays parameter (60). DFS Replication considers the data in this folder to be stale, and this server will not replicate the folder until this error is corrected.
I now have only one domain controller remaining (DC01). Please advise if there is any way to remove DFS replication settings for the demoted DC-02 server.