Exchange server is giving trust relationship issue.

I have an exchange server 2016 in a virtual machine of windows 2016. After a RAID controller issue the exchange database got corrupted.
It is the only exchange server with all the roles.
I restore it from the last backup.
Now after restoring its giving Trust relationship error.

Please help urgently.
Akash BansalIT ProfessionalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

AlexProject Systems EngineerCommented:
Likelihood is you'll need to recreate the trust between the server and the domain,your easiest option is to either use powershell or readd it to the domain

Test-ComputerSecureChannel -Repair

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dhruv BishtCommented:
In that case, I think you should use a recovery tool for this.
you can use netdom command line tool to restore secure channel

or use powershell
Ensure Business Longevity with As-A-Service

Using the as-a-service approach for your business model allows you to grow your revenue stream with new practice areas, without forcing you to part ways with existing clients just because they don’t fit the mold of your new service offerings.

Akash BansalIT ProfessionalAuthor Commented:
Thanks for the speedy support.
Should I login with a local account or safemode/ Directory restore mode before executing the command to reset the secure channel?
AlexProject Systems EngineerCommented:
No no no, you just log onto the exchange server locally, then run powershell as admin, then run that command and stipulate your domain account to recreate the trust.

Test-ComputerSecureChannel -Repair -Credential $(Get-Credential)
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
This is completely normal for a restore, because  Active Diretory has detected your server has travelled back in time, and the data and tokens do not match, so therefore trust has failed.

You could also just add back to the domain, using Local Administrator account.
Akash BansalIT ProfessionalAuthor Commented:
Thanks for the so quick support in this emergency condition.
I am able to login & successfully started the exchange services.
Rest I would update you shortly.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
Make sure you check it's all good, before letting users back on!
Akash BansalIT ProfessionalAuthor Commented:
Thanks Alex & Mahesh for the quick support that leads to resolving the case.
Hi Akash,

Andrew's comment gave you root cause of issue and relief as well, the comment is endorsed twice but you have not considered / noticed it, the comment should get awarded....
Akash BansalIT ProfessionalAuthor Commented:
How to edit the points given?
I am not sure if you can do this.
Moderator will help you with redistribution of points, have reported to them.
Akash BansalIT ProfessionalAuthor Commented:
Thanks again everyone. Mr. Andrew has helped me in the past too. Thanks for giving your precious time & support this time too.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.