The trust relationship between this workstation and the primary domain failed" error
To resolve this issue, put again the server to the domain
To do this, follow these steps:
- Use a local administrator account to log on to the computer.
- Go to server manager click the local server then the domain
- Click Change settings next to the Server name.
- Under the Member of heading, select Domain, and then type the domain name. BEI-IT only
- Click OK, and then type the credentials of the user who has permissions in the domain.
- When you are prompted to restart the computer, click OK.
- Restart the Server.
Reference: https://support.microsoft.com/en-us/help/2771040/-the-trust-relationship-between-this-workstation-and-the-primary-domai
Reference: http://implbits.com/active-directory/2012/04/13/dont-rejoin-to-fix.html
in Powershell
$credential = Get-Credential
Reset-ComputerMachinePassword -Server 172.31.7.189 -Credential $credential (172.31.7.189 is the active directory Private IP)