top of page

IT Knowledge Base

Enable RDP Remotely via Command Line

To enable RDP on a computer remotely via the command line, first download PSEXEC.exe - a tool that allows you to run a command prompt on a remote computer or simply use the Remote Command function of PDQ Inventory. 

The command to enable RDP is: 

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Then run the following command to enable the relevant firewall rules: 

netsh advfirewall firewall set rule group="remote desktop" new enable=Yes

Test the RDP connection. 

bottom of page