Currently, remote work has intensified to surprising levels, with it new ways of solving problems and achieving goals have emerged, among these solutions is the remote desktop mode, which allows a user connect from another location to a device and handle it as if you were the primary user. If it’s a topic you’d like to learn more about, we recommend learning how to open the port in Firewall for remote desktop.
Microsoft Windows 10 has an integrated graphical interface that allows you to establish relatively secure connections remotely, however, these types of protocols always carry a level of significant risk in terms of susceptibility to attack.
When you have already suffered situations that have compromised the privacy of your data or directly the software, or the reason why you started with the remote desktop was punctual, and now you want to completely disable this port on your PC, then keep reading, you will know the easy way to do it.
How to disable Remote Desktop from PowerShell?
If you have the PRO version of Windows 10 installed, it is very easy to activate deactivate remote desktop or RPD (for the acronym in English for Remote Desktop Protocol), without resorting to external applications, so below we will tell you step by step what you must do to deactivate this protocol in your system.
The first thing is to open the configuration panel, you can do this by opening the start menu and clicking on the gear symbol, or simply pressing the “WIN + I” keys simultaneously. Next, you must click on the “system” section and locate “Remote Desktop” among the last options, when you are there, you will see a slider to enable or disable remote desktop.
From system properties
The second way to deactivate the RPD on our computer, you go to system properties, for this we must go to the “This computer” icon, located on the desktop, right click and choose the “Properties” option. Once you are there, look in the right panel for the “advanced settings” option and click on it, you will see a new window in which you must select the “Remote access” tab, there check the option “Do not allow remote connections on this computer”.
These are the first two methods you can try, to disable the possibility of remote connections to your computer, It is also very easy to activate it at the required moments., if they still occur, in those cases you may be interested in learning how to add new users to my remote desktop, remember that the key to a secure connection is to establish protection settings.
How do you disable Remote Desktop from a command line?
If you feel more comfortable and confident with the PowerShell command console, then you may prefer to choose to disable the Windows 10 remote desktop, through the terminal window, for this what you do is the following:
- Go to the start menu and enter the name “PowerShell”, on the result that is shown, right click and select “execute as an administrator”.
- As a result, you will have a new PowerShell window with administrator permissions, it is time to enter the command “Set-ItemProperty -Path ‘HKLM:SystemCurrentControlSetControlTerminal Server’-name “fDenyTSConnections” -Value 1”.
- It only remains to configure the firewall so that it automatically blocks any remote connection again, to do this type in the console “Disable-NetFirewallRule -DisplayGroup “Remote Desktop””
With these simple commands you can forget about RPD connections and the risks they entail, at least until you decide otherwise. Now, you might want to delete remote desktop connection history on your computer.
How can I disable Remote Desktop from the local interface?
Keeping the remote connection to your computer active, when it is not necessary, is an important security risk that you should avoid, but if, on the contrary, you need to keep the connection active 24/7, opt for take minimum security measures with your user, such as creating or changing password frequently, making it long enough and with a good character set (You can activate Windows Hello), so as not to enter it every time), also keeping the operating system up to date with the latest updates.
The way to avoid configuring rules in the firewall is to follow the deactivation of the RPD protocol, through the Windows 10 configuration panel. Remember, you get it by clicking on “Server Information”, then “Remote Options””, there you activate and deactivate as required the remote desktop connection option, in case you want to activate it, preferably it only allows computers with authentication in the network area.
From the Windows registry
If in the start search window you type “regedit” and choose the resulting option, it will open the Windows registry editor, so follow the path: HKEY_LOCAL_MACHINE> SYSTEM> CurrentControlSet> Control> Terminal Server:. Next, double click on fDenyTSConnections, there you will also be able to modify the connection permission to RPD, in “Value Data” you can write 1, to deny any connection or 0 with which you would allow it.
This last process excludes modification of the firewall, so if you follow this method you will have to manually configure the access permission in the firewall. In any case, it is important that you inform yourself very well about the advantages and disadvantages of having a remote desktop connection, and how to improve your security against it, you can find more information at Microsoft’s official site.