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
- Ensure the workstation is connected to the corporate network and can reach a domain controller.
- Sign in using the local administrator account:
- Username:
.\userservices
- Password: Retrieve the workstation's current LAPS password.
- Open Windows PowerShell as an administrator.
- Run the following command:
Test-ComputerSecureChannel -Repair -Credential (Get-Credential)
- When prompted, enter the domain credentials for ed-sccm-service and its password. Use
UOFI\ed-sccm-service .
- 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.