How to Enable Remote Desktop using Command Prompt on Windows 11/10

On Windows 11 or 10, we can use the Remote Desktop feature to connect to a computer remotely. This feature is quite useful for users who want to access their computer without being physically present in front of the computer.

Although you can enable the Remote Desktop using the settings app on Windows 11 and Windows 10, there are other ways you can go through to enable the Remote Desktop feature. In this guide, we will show you how to enable Remote Desktop using Command Prompt.

However, the Remote Desktop feature is not available on Windows 11 and 10 Home versions, but you can use the Chrome Remote Desktop app to allow remote access to your PC.

Enable Remote Desktop using Command Prompt

To enable the Remote Desktop feature, go through the following steps below.

  1. Click the Start Menu button.
  2. In the Search box, search the CMD.
  3. You should see the Command Prompt in the search result.
  4. Right-click the Command Promt and select Run as administrator.
  5. Type the following command, then hit the enter button to enable the Remote Desktop.
    • reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
Enable Remote Desktop using Command Prompt on Windows 11/10

This command will enable the Remote Desktop feature. If you want to enable Remote Desktop through Windows Firewall, you can run the following command.

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

Once you have completed the above steps, the Remote Desktop protocol is enabled. Now you can connect to your computer remotely.

Disable Remote Desktop using Command Prompt

To disable Remote Desktop using Command Prompt, follow the below steps.

  1. Click the Start Menu button.
  2. In the Search box, search the CMD.
  3. You should see the Command Prompt in the search result.
  4. Right-click the Command Promt and select Run as administrator.
  5. Type the following command, then hit the enter button to disable the Remote Desktop.
    • reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f

This command will disable the Remote Desktop protocol on your Computer. If you have enabled the Remote Desktop protocol through Windows Firewall, you can use the following command to disable it through Windows Firewall.

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

Once you complete the steps, the Remote Desktop protocol will be disabled.

This is all about how you can enable and disable Remote Desktop on Windows 11 and 10 using the Command Prompt. I hope this guide is helpful for you, if you have any feedback; feel free to mention it below in the comment section.

Leave your reply here

Scroll to Top