Fix Error "The trust relationship between this workstation and the primary domain failed."

Issue

When signing in to Windows with a domain account, the following error appears:

The trust relationship between this workstation and the primary domain failed.

Resolution

  1. Ensure the workstation is connected to the corporate network and can reach a domain controller.
  2. Sign in using the local administrator account:
    • Username: .\userservices
    • Password: Retrieve the workstation's current LAPS password.
  3. Open Windows PowerShell as an administrator.
  4. Run the following command:
    Test-ComputerSecureChannel -Repair -Credential (Get-Credential)
  5. When prompted, enter the domain credentials for ed-sccm-service and its password. Use UOFI\ed-sccm-service .
  6. Confirm the command returns True.

Verify

Sign out of the local administrator account, then sign in with the affected user's domain account. Confirm the trust relationship error no longer appears.

If the Repair Fails

If the command returns False or an error, confirm domain connectivity and the service account credentials. Contact the domain administration team if the issue persists.

Security: Retrieve passwords through approved tools. Do not include passwords in this article or support tickets.

Was this helpful?
0 reviews