How to enable/disable Remote Desktop using Command Prompt on

Configurare noua (How To)

Situatie

To enable the remote desktop protocol with Command Prompt, use these steps:

  1. Open Start on Windows 10
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option
  3. Type the following command to enable the remote desktop protocol and press Enter:
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
  4. (Optional) Type the following command to enable remote desktop through the Windows Firewall and press Enter:
    netsh advfirewall firewall set rule group="remote desktop" new enable=Yes

Once you complete the steps, the protocol will enable on Windows 10, and you will be able to access the device remotely.

Disable Remote Desktop from Command Prompt

To turn off the remote desktop protocol with Command Prompt, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to disable the remote desktop protocol and press Enter:
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f
  4. (Optional) Type the following command to disable Remote Desktop through the Windows Firewall and press Enter:
    netsh advfirewall firewall set rule group="remote desktop" new enable=No

After you complete the steps, the Remote Desktop service will be turned off, and the Windows Firewall port will be closed. This guide focuses on Command Prompt, but you can use the same commands to manage the remote desktop protocol using PowerShell.

Solutie

Tip solutie

Permanent

Voteaza

(4 din 8 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?