Windows Zentyal

Fixing domain trust issues

If you get the error message “The trust relationship between this workstation and the primary domain failed”, here is how you can fix it.

Open a PowerShell as Administrator and enter the following commands:


This will show true or false. If it shows false, enter the following commands (replace domain.lan with your domain name, adminaccount with your administrator username, and domainserver with the name of your domainserver)

$credential = Get-Credential domain.lan\adminaccount
Reset-ComputerMachinePassword -server domainserver 
-credential $credential

This should fix the problem without having to leave and rejoin the domain.