How to Enable Remote Desktop Remotely using PSEXEC

This information is coming from

  • 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 
  • and:
    psexec \\remotecomputername netsh firewall set service remotedesktop enable
Thanks Ben for your help on this!


You must be logged in to add gadgets that are only visible to you