Had a PC this morning that wouldn’t log on to the domain as it was reporting that the “The trust relationship between this workstation and the primary domain failed”.

Unfortuantely without being able to log on, or connect up remotely via some usual tools, I had to look to enable RDP remotely and then allow it through the firewall. Here’s what looked to work in our case:

  1. Download PsExec from Microsoft and place it in a suitable location (e.g. C:\PsTools\)
  2. Open a command prompt (via Start-Run-CMD) and navigate to the PsTools directory.
  3. Enter in the following commands (replacing \\remotepc with the remote machine name). The below will enable RDP via Registry if not allready allowed. It will also allow RDP through the Firewall.