The Personal Website of Matthew Reeves

Enable RDP access via psexec

  1. Download the PsTools Suite from here.
  2. Open a command prompt Window, and open the PsTools directory.
  3. 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
    where <hostname> is the name of the machine you are trying to enable RDP access to.

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.