Page 1
Standard

Rejoin computers in domain without restart

Method 1:

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

trust1

Due to this error you cannot login into server or computer with domain credentials. In old days I had to disjoin this server or computer from domain, reboot and rejoin again. This was big headache for Mission Critical servers. If you like using Powershell for system management it is very easy to rejoin computer account to domain without restarting server. You must have at least Powershell version 3 to use this command which is by default there in windows 2012 server version and windows 8.
Once powershell is fired up you have to just run below command to rejoin computer into domain without restart.
 trust2
It will simply repair broken computer account password on your computer. and will give message True. Once this is done and you can logoff and test logging with your Domain account.
Method 2:
Reset-ComputerMachinePassword -Credential (Get-Credential)

Once you execute it will ask for your domain admin username and password.

trust3