How to Enable Remote Desktop Remotely using PSEXEC

If you have worked in IT support you have most likely come across a computer that wouldn't connect via RDP. This tutorial will show you how to enable RDP remotely from your computer using just official tools.

PSEXEC

  • Download and install psexec. This is an offical tool from Microsoft to emulate a remote command prompt.
  • Enter the following command to enable remote desktop in cmd
psexec \\machinename reg add "hklm\system\currentcontrolset\control\terminal server" /f /v fDenyTSConnections /t REG_DWORD /d 0
  • Enter these commands enable RDP traffic through the windows firewall
psexec \\remotecomputername netsh firewall set service remoteadmin enable
psexec \\remotecomputername netsh firewall set service remotedesktop enable
psexec netsh

Let me know if this helped you! Leave a comment.

Leave a Reply