How to enable remote desktop using command prompt in windows 10

Hello my name is Andrés, as always we share valuable content relevant to our readers and this will not be the last, stay until the end of the blog post to be with the latest publications that we have prepared for you. As we wrote last week, we read all comments and create new content for you, so if you haven't already, leave us your email and we'll keep you posted. Without wasting any more time, I hope you read all the articles and see you in the next new clomatic post.

In Windows 10, you can use Remote Desktop to access a computer or server remotely to help other users or manage services without having to be physically present on the site.

While you can manage this feature through the Settings app, you can also enable or disable Remote Desktop in Windows 10 using Command Prompt or PowerShell commands. You might want to use this method to create a script that can be used to quickly set up Remote Desktop on multiple computers, or send the script to a user, who can simply double-click to set up the feature automatically, with no extra steps. .

In this guide, you will learn the steps to use the command prompt to enable or disable remote desktop and open the firewall ports needed for a successful connection in Windows 10.

Important: remote desktop is No a resource available on Home windows 10, it's only on Windows 10 Pro and Enterprise. Also, it is recommended that you make a full backup of your computer before proceeding, as incorrectly editing the registry can cause irreversible damage to your system.

Index of contents

Enable remote desktop using the command prompt

To enable Remote Desktop Protocol using a command prompt, follow these steps:

  1. To open Start on Windows 10.

  2. To seek System symbolright click on the top result and select the file Run as administrator option.

  3. Enter the following command to enable Remote Desktop Protocol and press Access:

    reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

    Command prompt to activate remote desktop

  4. (Optional) Enter the following command to enable remote desktop through Windows Firewall and press Access:

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

    The command prompt opens the remote desktop firewall port
    The command prompt opens the remote desktop firewall port

After completing the steps, the protocol will be activated and you can access the device remotely.

Turn off remote desktop using the command prompt

To disable Remote Desktop Protocol using a command prompt, follow these steps:

  1. To open Start.

  2. To seek System symbolright click on the top result and select the file Run as administrator option.

  3. Enter the following command to disable Remote Desktop Protocol and press Access:

    reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f

    Command prompt to disable remote desktop
    Command prompt to disable remote desktop

  4. (Optional) Enter the following command to disable remote desktop through Windows Firewall and press Access:

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

    The command prompt closes the remote desktop port of the firewall
    The command prompt closes the remote desktop port of the firewall

After completing the steps, Remote Desktop Service will be disabled and the Windows Firewall port will be closed.

We focus this guide on the command prompt, but you can use the same commands to manage the remote desktop protocol using PowerShell.

Rate this post

If you want to know other articles similar to How to enable remote desktop using command prompt in windows 10 you can visit the category Tutorials.

Leave a Reply

Your email address will not be published. Required fields are marked *

Go up Change privacy settings