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:
- Download PsExec from Microsoft and place it in a suitable location (e.g. C:\PsTools\)
- Open a command prompt (via Start-Run-CMD) and navigate to the PsTools directory.
- 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.
psexec \\remotepc reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
psexec \\remotepc netsh firewall set service remoteadmin enable
psexec \\remotepc netsh firewall set service remotedesktop enable