Ok, well to be honest there may not be anything to save here but you could try this one.
https://gist.github.com/RavuAlHemio/00e51d3ea64731be9d43b01eda18734f
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dears,
I have 2 DCs, PDC and BDC, which PDC is the primary DC. within these few months I noticed that there are error logs in Server Manager within DS server. On PDC the error code is 1202, and it says:
"The DFS Replication service failed to contact domain controller to access configuration information. Replication is stopped. The service will try again during the next configuration polling cycle, which will occur in 60 minutes. This event can be caused by TCP/IP connectivity, firewall, Active Directory Domain Services, or DNS issues.
Additional Information:
Error: 160 (One or more arguments are not correct.)"
on BDC, there are 2 errors with codes 5002 and 4612.
4612:
The DFS Replication service initialized SYSVOL at local path C:\Windows\SYSVOL\domain and is waiting to perform initial replication. The replicated folder will remain in the initial synchronization state until it has replicated with its partner PDC.xxxx.local. 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.
5002:
The DFS Replication service encountered an error communicating with partner PDC for replication group Domain System Volume.
I got these errors every time I restarted service DFSR, so it's not a one time thing.
I've run Dcdiag /test: DFSREvent on both DCs and all get the message "Failed test DFSREvent"
I also checked the sysvol folders on both DCs, and on BDC the "scripts" folder is empty and no "policies" folder under my domain.
Could somebody help me fix this?
Ok, well to be honest there may not be anything to save here but you could try this one.
https://gist.github.com/RavuAlHemio/00e51d3ea64731be9d43b01eda18734f
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
You can try a non authoritative sync
https://support.microsoft.com/en-us/help/2218556/how-to-force-an-authoritative-and-non-authoritative-synchronization-fo
or simplest solution may be to move roles to another healthy one, demote, reboot, promo it again.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--
What's in the System and DFS Replication event logs since last boot?
I read some articles that they say if we're using DFSR instead of FRS, there should be a folder SYSVOL under C:\Windows, but at my 2 servers, none of them has this folder, is it OK?
Sysvol should exist regardless or FRS / DFSR. You may need to restore from a known good backup and try again.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--