If you encounter an error on a domain joined Windows computer when trying to login with domain user account:
The trust relationship between this workstation and the primary domain failed.
This might fix the situation:
- Logon in Windows computer with local administrator account
- Open Powershell as admin and execute command:
Reset-ComputerMachinePassword -Credential <sAMAccountName>
examples:
Reset-ComputerMachinePassword -Credential jsmith
Reset-ComputerMachinePassword -Credential mydomain\jsmith
Reset-ComputerMachinePassword -Credential jsmith@mydomain.com
Note:
jsmith account must have “Reset Computer Account” rights in Active Directory, typically this user must be a member of “Account Operators” or “Domain Admins” or “Enterprise Admins” group.
- Enter the credentials, restart the computer and you should be able to log back in with your regular user account

Leave a Reply