Hello,
When a Domain Controller has been offline for longer than the tombstone lifetime (default 180 days in most environments), replication is permanently broken. Event ID 2042 confirms that the DC is attempting to replicate objects that have already been garbage collected in the forest. At this point, the server cannot be safely reintegrated through normal replication, and the supported approach is to remove it from the environment.
The safest way forward is to demote the Domain Controller. If the server is still bootable, run dcpromo or use Server Manager to remove the Active Directory Domain Services role. During demotion, ensure you select the option to remove the server from the domain. If the DC cannot be cleanly demoted because replication is blocked, you will need to perform a forced demotion using dcpromo /forceremoval. This will leave orphaned metadata in Active Directory, which must then be cleaned up.
Metadata cleanup is performed from another healthy Domain Controller using ntdsutil. Launch ntdsutil, enter metadata cleanup, connect to the domain, and remove the failed DC’s references. This process deletes the server object from the Configuration container, removes its NTDS settings, and clears lingering references in Sites and Services. After cleanup, verify that DNS records associated with the decommissioned DC are also removed, and check that no lingering replication partners remain in repadmin /showrepl.
It is important not to attempt to reintroduce the expired DC into the forest. If you need another Domain Controller in that site, build a fresh server, promote it with dcpromo, and allow it to replicate from a healthy partner. This ensures the forest remains consistent and avoids introducing stale objects.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
DV.