Activate remote desktop from command line

Windows 10  Windows Server 2012R2  Windows Server 2016  Windows Server 2019

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.





Related Posts


Windows 10: use the Remote Desktop app

SommairePresentationInstalling the Remote Desktop applicationUsing the Remote Desktop appAdd a classic Remote Desktop connectionConfigure the connection to an RDS farmAdditional configurations Present

GPO Login Script

Table Of ContentsPresentationImplementation of a logon script Presentation In this tutorial, we will see how to set up a GPO that will execute a logon script. Logon scripts are usually in batch or vbs

GPO: Run a script when the computer starts

Presentation In this article, we will see how to set up a script that runs at startup of the post using Group Policy (GPO). The advantage of using this type of script is that it is executed with the A