Enable RDP access via psexec
- Download the PsTools Suite from here.
- Open a command prompt Window, and open the PsTools directory.
- Run the following three commands
- psexec \\<hostname> reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
- psexec \\<hostname> netsh firewall set service remoteadmin enable
- psexec \\<hostname> netsh firewall set service remotedesktop enable
NOTE - These steps must be done a machine that is on the same domain and network as the target machine, using an account that will have admin rights on the target machine.