< All Topics
Print

“Trust Relationship Between Workstation and Primary Domain Failed” Error on Windows Server or Client Machine

  1. Rejoin the Domain (Recommended):
    • Unjoin the computer from the domain.
    • Rejoin it to the domain.
    • This process requires a reboot but is straightforward and takes about 5 minutes.
  2. PowerShell Method:
    • Use the Test-ComputerSecureChannel cmdlet (available in Windows 10).
    • Run the following command in PowerShell: Test-ComputerSecureChannel -Repair This command repairs the secure channel without rebooting or resetting the device2. Manual Rejoin: Right-click on “This PC” (or “My Computer”) and select “Properties.” Click on “Change settings” next to “Computer name, domain, and workgroup settings.” Click “Change” and select “Domain.” Enter the domain name and provide credentials. Restart the computer when prompted.