The Security Database On The Server Does Not Have A Computer Account For This Workstation Trust Relationship

Learn how to fix 'The security database on the server does not have a computer account for this workstation trust relationship' while logon, in this post.

Kapil Arya
11x Microsoft MVP · Admin
2 min read
Add as a preferred
source on Google

While managing different clients in your organization or on your server, sometimes you may see problems with specific clients. For instance, one or some of the clients may see following error during login:

The security database on the server does not have a computer account for this workstation trust relationship.

The Security Database On The Server Does Not Have A Computer Account For This Workstation Trust Relationship

This is one of the common issues and client may face it and report to the IT admin. So as an administrator, you can fix out this issue with below mentioned suggestions.

The Security Database On The Server Does Not Have A Computer Account For This Workstation Trust Relationship

FIX 1 – Correct Attribute Entry

On your domain controller, try these steps:

1. Open Active Directory Users and Computers.

2. Click on View and check Advanced features.

The Security Database On The Server Does Not Have A Computer Account For This Workstation Trust Relationship

3. Then locate the machine on which client is facing issue and right click on it, select Properties.

The Security Database On The Server Does Not Have A Computer Account For This Workstation Trust Relationship

4. In the property sheet, switch to Attribute Editor tab. On this tab, look out for Attribute named dNSHostName. Make sure it has Value set in <MACHINE NAME>.YOURDOMAIN.COM format.

The Security Database On The Server Does Not Have A Computer Account For This Workstation Trust Relationship

5. Next, look out for the Attribute named servicePrincipalName and make sure it has Value in following format:

HOST/<MACHINE NAME>
HOST/<MACHINE NAME>.YOURDOMAIN.COM
RestrictedKrbHost/<MACHINE NAME>
RestrictedKrbHost/<MACHINE NAME>.YOURDOMAIN.COM

The Security Database On The Server Does Not Have A Computer Account For This Workstation Trust Relationship

Once the attribute entries mentioned above are corrected, issue should be resolved and client can login as usual.

FIX 2 – Rejoin Domain

Try these steps to rejoin a domain:

1. On the domain controller, login as administrator and delete the machine entry on which issue is present and reboot the server.

2. On the client machine, run sysdm.cpl command to open System Properties. On the Computer Name tab, click Change.

3. Under Computer Name/Domain Changes window, and set the Member of to WORKGROUP.

4. Then click OK and press OK on rest of confirmation windows. Reboot the machine.

5. After reboot, try steps to join the domain. Once the client machine is joined to domain, you’ll find that issue is no longer present.

Hope this helps!

Share this article
https://www.kapilarya.com/the-security-database-on-the-server-does-not-have-a-computer-account-for-this-workstation-trust-relationship

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.

Leave a Comment

Your email address will not be published. Required fields are marked *