Activate remote desktop from command line


Windows Server 2019
{“@context”:”https://schema.org”,”@type”:”HowTo”,”name”:”Enable remote desktop from command line”,”description”:”In this tutorial how, we will see how to activate the remote desktop from the command line. Activating the remote desktop can be done from the command line by modifying a key, so we will use the command line utility reg.exe to modify the registry and thereby activate the remote desktop.”,”image”:{“@type”:”ImageObject”,”url”:””,”height”:”406″,”width”:”305″},”totalTime”:””,”estimatedCost”:[],”tool”:[],”supply”:[],”step”:[{“@type”:”HowToStep”,”url”:”#”,”name”:”Open a command prompt as an administrator.”,”text”:”Open a command prompt as an administrator.”,”image”:”https://rdr-it.com/wp-content/uploads/2020/06/remote-desktop-cmd-01.png”},{“@type”:”HowToStep”,”url”:”#”,”name”:”Enter the command line below to modify for the fDenyTSConnections key to activate the remote desktop”,”text”:”Enter the following command to activate the remote desktop :<br><br><code data-enlighter-language=\”generic\” class=\”EnlighterJSRAW\”>reg add \”HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Terminal Server\” /v fDenyTSConnections /t REG_DWORD /d 0 /f</code>”,”image”:”https://rdr-it.com/wp-content/uploads/2020/06/remote-desktop-cmd-02.png”},{“@type”:”HowToStep”,”url”:”#”,”name”:”Remote desktop is enabled”,”text”:”It is now possible to connect in remote office on the computer.”,”image”:”https://rdr-it.com/wp-content/uploads/2020/06/remote-desktop-cmd-03.png”}]}

Enable remote desktop from command line

In this tutorial how, we will see how to activate the remote desktop from the command line. Activating the remote desktop can be done from the command line by modifying a key, so we will use the command line utility reg.exe to modify the registry and thereby activate the remote desktop.

Open a command prompt as an administrator.

Open a command prompt as an administrator.

Enter the command line below to modify for the fDenyTSConnections key to activate the remote desktop

Enter the following command to activate the remote desktop :

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

Remote desktop is enabled

It is now possible to connect in remote office on the computer.




Leave a Comment