I have a bit of a situation with an old trust relationship that keeps showing up in my Active Directory. A while back, my predecessor set up a secondary domain for Exchange on a single server that has been offline for about three years. Despite this, I still see the trust relationship for 'companyB.com' in the Active Directory Domains and Trusts GUI. I've tried deleting the trust through the GUI, but after about 30 minutes, it reappears when I check other domain controllers. I even forced replication and couldn't find the trust object in ADSI Edit to delete it manually. I still have access to the old domain controller but it's been powered off for a while. Would turning it back on to recreate and then delete the trust while it's active be a good solution? Any suggestions would be greatly appreciated!
2 Answers
You could try running this command on a healthy DC: Get-ADObject -LDAPFilter "(objectClass=trustedDomain)" -SearchBase "CN=System,DC=yourdomain,DC=com". It might help you see if the trust still exists in the backend. Also, using 'netdom trust yourdomain.com /d:companyB.com /verify' could provide some insight, but you’ll want to check under the Trusted domains in the GUI first to see if it’s still showing up there.
You might need to go through a specific process to clean up that stale trust. There's a Microsoft article detailing how to delete a corrupt or orphaned trust object in Active Directory. That might give you the steps you need to get rid of it for good! Check it out [here](https://support.microsoft.com/en-us/topic/kb5040758-deleting-a-stale-corrupt-or-orphaned-trust-object-in-active-directory-a4995def-7b43-4f85-86dc-29a0c66323c9).

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures