The trust relationship between this workstation and the primary domain failed

“The trust relationship between this workstation and the primary domain failed”

Event ID 5723 
"The session setup from the computer DOMAINMEMBER failed to authenticate.
The name of the account referenced in the security database is DOMAINMEMBER$. 

The following error occurred: Access is denied."

Resolution:

log into the machine with the local administrator account
Right click computer
Click properties
Click advanced system settings
Click the computer name tab
Click the change button
Click the workgroup radio button
Enter WORKGROUP in the dialog box beneath the workgroup radio button
Click OK
Click OK

Reboot the computer as prompted

log into the machine with the local administrator account
Right click computer
Click properties
Click advanced system settings
Click the computer name tab
Click the change button
Click the Domain radio button
Enter the fully qualified domain name in the dialog box beneath the domain radio button
When prompted, enter your network credentials
Click OK
Click OK

Reboot the computer as prompted