Enable Remote Desktop using cmd console

Modified on Mon, 16 Dec, 2024 at 10:34 PM

To enable Remote Desktop Protocol using Command Prompt, follow these steps:


1. Click the Windows Start button

2. Launch a Command Prompt window in Administrator mode

3. Run the following command


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


4. Optionally we add a rule in the firewall to allow access to port 3389 which is used for Remote Desktop


netsh advfirewall firewall set rule group="Remote Desktop" new enable=Yes

Once these steps are completed, we restart the computer and RDP will be enabled on the computer.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article