Forum Discussion

eyal1's avatar
eyal1
Copper Contributor
Jul 05, 2023

Can't login to server due to trust relationship

Hello,

 

A Powershell script I executed on the server went out of control and blocked all the users on my Active Directory. When I tried to log in as Administrator I received a message that my Administrator account is disabled. I boot into safe mode and managed to log in with the Administrator account and I enable the account locally with the net user command in the command prompt. After boot when I tried to log in again I received an error message “The security database on the server does not have a computer account for this workstation trust relationship” I believe the script locked all the users AND computers on Active Directory.

I tried to log in locally and keep receiving errors that the user and password are not recognized. When I try to log in at .\Administrator I still get the “The security database on the server does not have a computer account for this workstation trust relationship” error.

 

I know how to handle this trust issue on stations when this happens but now I’m locked out of the server with only safe mode access and can’t figure a way out of this. I tried every solution on Google with no luck.

Any help would be appreciated. I can share the script in PM if needed.

 

Thank you!

No RepliesBe the first to reply

Resources