Seldom it happens that you encounter an error “The security database on the server does not have a computer account for this workstation trust relationship.” The error appears when you try to login to a domain. The majority of users aren’t able to fix this error in the first attempt. So, it seems to be very problematic. However, it’s not a complicated error. You can fix it by applying various methods if you understand the reason properly. It can appear in any version of Windows, but mostly, it appears in Windows 10. Here are the fixes you need to apply.
Method # 1: Check the Date & Time Settings
Check the date and time settings. The settings should be correct according to your region. Sometimes, improper time and date cause this error. To check the date and time region in your computer, follow the steps below.
- Go to the search and type “Date & Time.” When it appears in the search results, click to open the Date & Time settings.
- Go to the “Time Zone” to check whether the time zone is correct and according to the region or not.
Method # 2: Restart the Connection
Another main cause of the error is the wrong state of your computer’s connection with the domain server. When it goes into the error state, you should restart the connection to get rid of this error. Follow the steps below to restart the connection.
Go to the “Search” and type “Control Panel” here.
In the Control Panel, click the “System” category.
- Here, click the “Change Settings” option under the “Windows 10 icon.”
- Click the “Computer Name” tab here.
- Now, click the option “Workgroup” as shown in the image below.
- Click “OK” to save the changes and close the properties window. Restart the system and enjoy an error-free working.
Method # 3: Check the DNS and Firewall Settings
If the above method doesn’t work, check the DNS and firewall settings. Reset them to fix this error by following the steps below.
- Press “Windows key + R” to open the Run dialogue box. Type “cmd” and press “Enter.”
- When you see the Command Prompt window, type the following command and press Enter.
“netsh advfirewall firewall set rule group=”network discovery” new enable=yes”
- Now, add the following command and press Enter.
- It will show you that “it has successfully flushed the DNS Resolver Cache.”
- Finally, add the following command and press Enter.
- Now, close the Command Prompt and restart the system. Hopefully, you wouldn’t get the error again.
Method # 4: Use PowerShell Commands
If the above methods don’t work, use the PowerShell commands to log in to the domain. This method doesn’t work for all users, but mostly it works in Windows 10 to resolve this issue. Follow the steps below in this context.
- Right-click to the “Start” button and select “Windows PowerShell” from here. Make sure; you select “PowerShell Admin” from the list.
- Now, add the following commands to the PowerShell window.
“$cred = Get-Credential (Type here the domain credentials)”
“reset-ComputerMachinePassword -Credential $cred -server (Type your ad server here)”
- Press enter after every command and see the results. The commands are to check and reset the credentials.
The commands will work like magic and you won’t get this error again.
Method # 5: Disable Windows Defender Firewall
Often, the Windows Firewall interrupts the domain’s connection with your system and you encounter this error. To fix this error, you need to disable Windows Defender Firewall temporarily. Follow the instructions below to disable it.
- Open “Control Panel” (Type “Control Panel” in the search bar and it will appear in the search results.)
- Here, click the “System & Security” category.
- Now, click the option “Windows Defender Firewall” here.
- In the left pane, select the option “Turn Windows Defender Firewall on or off.”
- Now, select “Turn off Firewall” in both options.
- It will disable Windows Defender Firewall temporarily. Now try to connect to the network to access the domain. It will be accessed without error.