question

SyedAmmarHaider-0894 avatar image
0 Votes"
SyedAmmarHaider-0894 asked DSPatrick commented

secondary domain controller recovery

I am running two domain controllers in my network. One domain controller is primary domain controller holding all the FSMO roles and the other one is secondary domain controller. My secondary domain controller crashed and then I recovered that secondary domain controller using the non-authoritative backup restore. Now the problem is that when I restarted the domain controller after recovery, it was unable to login and was giving the error “the domain controller lost trust relationship with the primary". Can anybody help me how can I solve the problem and make my secondary domain controller up and running?

Thanks and Regards

windows-server-2012
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

You should not restore a domain controller in a multi-dc environment. Better option is to remove failed one from network, seize roles to healthy one (if needed)
https://docs.microsoft.com/en-us/troubleshoot/windows-server/identity/transfer-or-seize-fsmo-roles-in-ad-ds


then perform clean up.
https://docs.microsoft.com/en-us/windows-server/identity/ad-ds/deploy/ad-ds-metadata-cleanup
https://techcommunity.microsoft.com/t5/itops-talk-blog/step-by-step-manually-removing-a-domain-controller-server/ba-p/280564

then stand up a new one for replacement.

--please don't forget to upvote and Accept as answer if the reply is helpful--


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SyedAmmarHaider-0894 avatar image
0 Votes"
SyedAmmarHaider-0894 answered DSPatrick commented

Thanks for the reply, I got your point. But if I should not restore a domain controller in a multi-dc environment, then what is the purpose of "windows server backup utility"??

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In a multi master environment where all were lost for some catastrophic reason one could restore the PDCe from a windows backup then rebuild the others.




0 Votes 0 ·
DaisyZhou-MSFT avatar image
0 Votes"
DaisyZhou-MSFT answered DaisyZhou-MSFT edited

Hello @SyedAmmarHaider-0894,

Thank you for posting here.

For your issue, you can try the following steps to see if it helps.

1-If the secondary domain controller is a virtual machine, disable the Network card.
If the secondary domain controller is a physical machine, unplug the network cable.

2-Logon the secondary domain controller using cached domain Administrator.

3-Enable the network card if it is virtual machine or plug the network cable if it is physical machine.

4-Opem CMD (run as Administrator).

5-Run the command below on the secondary DC.

Netdom resetpwd /s:target_server /ud:mydomain\domain_admin /pd:*

In your case, target_server is the first DC (PDC) name.

/s:server is the name of the domain controller to use for setting the machine account password. This is the server where the KDC is running.
/ud:domain\User is the user account that makes the connection with the domain you specified in the /s parameter. This must be in domain\User format. If this parameter is omitted, the current user account is used.
/pd:
specifies the password of the user account that is specified in the /ud parameter. Use an asterisk () to be prompted for the password.


For more information above reset machine account passwords of a Windows Server domain controller, please refer to link below.
Use Netdom.exe to reset machine account passwords of a Windows Server domain controller
https://docs.microsoft.com/en-US/troubleshoot/windows-server/windows-security/use-netdom-reset-domain-controller-password


If it works above (I mean you can run the command successfully), then sign out and sign in again using domain administrator to see if there is no error message.


Hope the information above is helpful.

Should you have any question or concern, please feel free to let us know.


Best Regards,
Daisy Zhou

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.