How to Fix “The security database on the server does not have a computer account” Error?

This specific error appears when a user attempts to log in to a domain. It can be quite problematic because there doesn’t seem to be a straightforward way to avoid it. Such an error has been reported on various versions of the Windows OS, but it appears most commonly on Windows 10.

We have identified some successful methods to resolve this issue and compiled them into this article. Follow the solutions we have prepared to successfully address the problem!

What Causes this Error on Windows?

The list of possible causes for this issue is not complete, but it includes the key factors that you should know about:

  • Misconfigured Time & Date Settings – Misconfigured time and date settings on the client’s side can cause issues and cause the error.
  • Connection Time-out – If the client’s connection to the domain controller is timed out, a reconnection and restart may be necessary.
  • DNS & Windows Firewall Issues – Problems with DNS addresses or Windows Firewall policies may be causing the issue.

1. Check Time & Date Settings on the Client PC

When the time or date on a client PC doesn’t match that of the domain controller, it can result in authentication errors. This is because domain services often rely on Kerberos protocol, which is sensitive to time inconsistencies as a security measure.

By verifying and correcting these settings, you realign the client to the domain’s timing requirements, eliminating potential mismatches that can cause login issues. In short, this step helps synchronize your system with network protocols, clearing the pathway for a successful login.

  1. Open the Date and Time settings on your computer by opening the Start menu. Click the gear icon above the Start menu button and the Power icon to open the Settings app. Select Time & language, then navigate to Date & time.
  1. In the Date and Time tab, make sure your computer’s date and time settings match your current location. If incorrect, toggle the Set time automatically option off or on, according to your previous configuration.
  2. If Set time automatically is disabled, select the appropriate time zone from the dropdown list to complete the process. Then, restart your computer and attempt to connect to the domain again.
    Changing Date and Time on Windows
    Changing Date and Time on Windows

Alternative: If the above doesn’t resolve the issue, or if you’re using a version of Windows older than Windows 10, consider using the Control Panel to synchronize with an online time server for correct settings.

  1. Launch the Control Panel by searching for it in the Start menu or by pressing Windows Key + R, typing control.exe in the Run box, and clicking OK.
  2. In the Control Panel, set the view to Category at the top right corner and click on the Clock and Region button.
    Clock and Region in Control Panel
    Clock and Region in Control Panel
  1. Click on the Set the time and date button underneath Date and Time in the Clock and Region section. Immediately switch to the Internet Time tab and click the Change settings button.
  2. Select the Synchronize with an Internet time server checkbox and choose the time.windows.com server before clicking on Update.
    Synchronizing with Internet time
    Synchronizing with Internet Time
  1. Click OK to apply the changes and then attempt connecting to the domain. Check if the error still appears.

2. Checking for DNS and Firewall Issues

If you are experiencing issues with your actual connection to the server, verify that there are no conflicts with DNS settings or Windows Firewall policies. Incorrect DNS settings can misdirect your login requests, preventing proper authentication with the server.

Likewise, overprotective Firewall policies might block important data packets that establish trust between your computer and the domain. By making sure these settings are configured correctly, we remove potential barriers, allowing for smooth communication and successful logins.

  1. Use the Windows Logo Key + R to launch the Run dialog box. Enter “cmd” and use the Ctrl + Shift + Enter key combination to open an administrative Command Prompt.
    Running Administrative Command Prompt from Run Dialog Box
    Running Administrative Command Prompt from Run Dialog Box
  1. Type the following commands into the window, making sure to press Enter after each one. Wait for a message such as “Operation completed successfully” to confirm that the execution worked.
    netsh advfirewall firewall set rule group="network discovery" new enable=yes
    ipconfig /flushdns
    ipconfig /registerdns
  1. After executing these commands, try resetting the connection to see if the error persists.

3. Restart the Connection

Restarting the connection forces the system to refresh its relationship with the domain server by temporarily disjoining from the domain and then rejoining it. By toggling the connection from domain to workgroup and back again, you basically refresh the network settings.

This action can clear temporary configurations that might be causing the error, effectively renewing trust relationships within the domain environment. Thus, it can be a simple yet effective fix for communication glitches that prevent successful logins.

  1. Right-click on My Computer/This PC, depending on your installed version of Windows, and select Properties.
  2. Locate the Change settings button on the left side of the Properties window, under Computer name, domain, and workgroup settings, and click on it.
    "Change
  3. In the Computer Name tab of the System Properties dialog, click the Change button in the bottom-right corner of the window. Under Member of, switch the radio button from Domain to Workgroup and apply the changes.
    Member of: Workgroup
    Member of: Workgroup
  1.  
  1. Restart your computer and revert to the previous settings by changing back to Domain. Attempt to log in again and check if the error still occurs.

4. Use PowerShell Commands

By using the designated PowerShell commands, you can attempt to reset the trust relationship between the workstation and the domain controller. The Reset-ComputerMachinePassword cmdlet is particularly useful, as it refreshes the computer account password known to both the computer itself and the domain, which is often the root of the trust issue.

When executed correctly, this simple yet powerful action can restore access without the need for more invasive troubleshooting steps.

  1. Open the PowerShell utility by right-clicking the Start menu button and selecting Windows PowerShell (Admin) from the context menu.
    Windows PowerShell (Admin) in Start Menu
    Windows PowerShell (Admin) in Start Menu
  1. If PowerShell is not available, search for it using the Start menu or the adjacent search bar. Right-click on the first result and choose Run as administrator.
  2. In the PowerShell console, enter the commands listed below, pressing Enter after each one. Replace the placeholders with your server’s actual information.

    $cred = Get-Credential (enter your domain credentials)
    Reset-ComputerMachinePassword -Credential $cred -Server (your AD server here)
  1. Execute the command and follow any prompts to enter the password again. Hopefully, you will now be able to log in without any issues.
ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

12
    SN
    SnarkyGCat Sep 19, 2019

    The simple method is to use the WORKGROUP login. It works EVERY time! Or as you put it Solution 3. Restart the connection.

    SK
    saranah kumR Nov 20, 2019

    How do i change the timings of am unable to login to the machine?

      SW
      Shane Warren Author Nov 20, 2019

      Can you please elaborate?

      AI
      Ahmed Issa May 11, 2020

      remove the network cable, log in the plug the network cable back. (will work if you logged in previously)

      Reply
        NA
        Naif Alsalem Jul 13, 2021

        worked well, thanks. I have removed the internet cable and I was able to log in. Many thanks, legend!

      AL
      Almost9 Aug 3, 2021

      I had the same question. None of these suggestions solved my problem. I had to:
      1) Remove the workstation from the domain
      2) Delete the Computer from AD Users and Computers
      3) Add the Computer to AD Users and Computers
      4) Rejoin the workstation to the domain

      When you log into the workstation as a domain user, it will run through the “Hi…This might take several minutes” dialog boxes.

      Reply
    SW
    Shane Warren Author Apr 21, 2020

    Try setting the date and time through Bios.

      WI
      wilson May 25, 2021

      I can even log in to the computer/server
      how can I configure the time?

    MM
    Mohammed Mubeen Jan 18, 2021

    Fixed and resolved: You need to remove from DOMAIN controller to WORKGROUP and Reboot it. Rejoin to your DOMAIN Controller and reboot it. You can login with your AD credentials americauser.

    Reply
    YA
    yaboot Jun 30, 2021

    when I changed it from domain to work group then rebooted and tried to rejoin the domain it wouldn’t let me saying it couldn’t find the domain then I had to go to IPV4 settings in the network card properties and assign a static address to the domain controller to get it to connect back even though it was set to find it automatically before that. once I did that and rebooted I was able to switch back to automatically finding the domain controller. All this happened when I updated a workstation to windows 21h1. updating windows caused this train wreck. thanks microsoft.

    Reply
    DH
    Dhiraj Nov 1, 2022

    Dear Users Only Rejoin Domain Can Help To Login ……

    NT
    Nanang Taten Dec 18, 2022

    The third solution worked for me. Thanks a lot.