How to Fix the error: The trust relationship between this workstation and the primary domain failed
Re-establish trust through PowerShell
In this method, we will re-establish trust between the domain controller and client using PowerShell. You will need to log on using a local Administrator account.
PRO TIP: If the issue is with your computer or a laptop/notebook you should try using Restoro Repair which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by Clicking Here
- Log on Windows 10 using local Administrator account
- Click on Start menu and type PowerShell
- Right click on PowerShell and choose Run as Administrator
- Press Yes to confirm running as Administrator
- Type $credential = Get-Credential and press Enter (add the domain credentials to the variable $credential)
- Enter domain admin account and password and then click OK
- Type Reset-ComputerMachinePassword -Credential $credential and press Enter (this uses the $credential variable to reset the account)
- Close PowerShell
- Restart your Windows machine
- Log on Windows 10 using domain user account