Enable Remote Desktop:

  • Open the Command Prompt as an administrator.
  • Enter the following command:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

Disable Remote Desktop:

  • Open the Command Prompt as an administrator.
  • Enter the following command:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f

Configuring Windows Firewall for Remote Desktop:

  • To ensure that the Remote Desktop feature works seamlessly, you need to configure the Windows Firewall to allow RDP connections. Use the following commands:
netsh advfirewall firewall set rule group="Assistance à distance" new enable=Yes
netsh advfirewall firewall set rule group="Bureau à distance" new enable=Yes


0 Comments

Leave a Reply

Avatar placeholder

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.