Hey everyone,
I'm pretty new to system administration and I've run into a problem while trying to join six different PCs to a domain. The first PC joined without any issues, but when I tried to join the second one, I got the error "The trust relationship between the workstation and the primary domain failed". It seems like this error keeps happening whenever I add a new PC to the domain using my admin account. My coworker, who has an admin account too, is experiencing the same issue on his machines. We're both part of the domain admin and user groups.
I've already attempted to rejoin the domain and ran the command `Test-ComputerSecureChannel -Repair -Credential`, but it didn't help. Any advice on how to resolve this? Thanks!
2 Answers
Yes, having the same hostname definitely causes issues in a domain environment. You also mentioned using an image to deploy PCs, so ensure you run Sysprep before creating new builds. That should fix the trust relationship errors for your installations.
It sounds like you might have duplicate host names or are using the same system image across the PCs. Make sure each computer has a unique name before joining the domain. If you're cloning an installation, avoid doing it without running Sysprep first. Always use Sysprep with the /generalize and /oobe switches before capturing your reference image to avoid conflicts.
You mean having the same computer name can cause this? I checked, and both have identical names like DESKTOP-0000. Could that be the problem?

I'll make sure to do that! Thanks for the tip.