Как отключить удаленный доступ к компьютеру на windows 11

В Windows присутствует встроенная функция удаленного рабочего стола, которая может быть удобной, о чем подробнее в статье про Удаленный рабочий стол Microsoft (RDP), с другой стороны — если вы не используете функцию, из соображений безопасности разумным может быть её отключение.

В этой инструкции подробно о способах отключить функцию «Удаленный рабочий стол» в Windows 11 и Windows 10 так, чтобы к вашему компьютеру нельзя было подключиться по локальной сети, а отдельных сценариях — и через Интернет. На близкую тему: Лучшие программы удаленного рабочего стола.

  • Отключение удаленного рабочего стола в Параметрах и Свойствах системы
  • Как отключить удаленный рабочий стол в реестре, gpedit, службах
  • Видео инструкция

Отключение удаленного рабочего стола в Параметрах или свойства системы

Самый простой способ отключить возможность подключения через RDP или Удаленный рабочий стол Microsoft — использовать соответствующие Параметры:

  1. В Windows 11 зайдите в Параметры (можно нажать клавиши Win+I) — Система — Удаленный рабочий стол. Установите переключатель в положение «Выключено».
    Отключить удаленный рабочий стол в параметрах Windows 11

  2. В Windows 10 откройте Параметры, перейдите в раздел «Система» и откройте «Удаленный рабочий стол» слева. Измените положение переключателя «Включить удаленный рабочий стол».
    Отключить удаленный рабочий стол в параметрах Windows 10

Это действие запретит удаленные подключения к текущему компьютеру или ноутбуку. Но, если цель — полностью исключить такую возможность, дополнительно рекомендую выполнить следующие действия в свойствах системы:

  1. Нажмите Win+R на клавиатуре, введите команду sysdm.cpl и нажмите Enter.
  2. Перейдите на вкладку «Удаленный доступ». Обратите внимание: здесь вы тоже можете отключить удаленный рабочий стол в соответствующем разделе.
    Отключение удаленного рабочего стола в свойствах системы

  3. Снимите отметку «Разрешать подключения удаленного помощника к этому компьютеру» и примените настройки.

Дополнительные методы отключить удаленный рабочий стол

Помимо описанных выше способов для обычного пользователя, вы можете использовать следующие подходы отключения:

  1. В реестре, в разделе
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

    установить значение 1 для параметра с именем fDenyTSConnections — это будет равносильно отключению RDP в параметрах или свойствах системы.

  2. В редакторе локальной групповой политики (Win+Rgpedit.msc): Конфигурация компьютера — Административные шаблоны — Компоненты Windows — Службы удаленных рабочих столов — Узел сеансов удаленных рабочих столов — Подключения. В этом разделе отключаем параметр «Разрешить пользователям удаленное подключение».
  3. В службах (Win+Rservices.msc) можно остановить две службы и установить их тип запуска в «Отключено». Имена служб: «Службы удаленных рабочих столов» и «Перенаправитель портов пользовательского режима служб удаленных рабочих столов».
    Отключение служб удаленного рабочего стола

Видео инструкция

В случае если ваш вопрос касается не встроенной функции удаленного рабочего стола, а какого-то стороннего решения, то, как правило, бывает достаточно удалить соответствующую программу через Панель управления — Программы и компоненты или Параметры — Приложения.

Quick Links

  • Disable Remote Desktop From Settings

  • Shut Off Remote Desktop Using Command Prompt

  • Use Control Panel to Disable Remote Desktop

  • With Local Group Policy Editor

Summary

  • You can disable Windows 11’s Remote Desktop feature by heading to Settings > System > Remote Desktop and turning off the Remote Desktop toggle.
  • You can also use commands in Command Prompt and PowerShell to turn off Remote Desktop.
  • Later, it’s easy to turn the feature back on if you want.

If you don’t intend to remotely connect to your PC, it’s a good idea to keep the Remote Desktop feature disabled. This ensures your machine is secure even if your login credentials are compromised. Here are a few ways to turn off Remote Desktop on Windows 11.

All methods achieve the same end result, which is to deactivate Remote Desktop. Therefore, feel free to use the method you find convenient.

Disable Remote Desktop From Settings

The easiest graphical way to disable Remote Desktop is by using Settings.

Start by launching Settings using Windows+i. From the left sidebar, select «System.» On the right pane, scroll down and choose «Remote Desktop.»

'System' and 'Remote Desktop' highlighted in Settings.

On the following screen, turn off the «Remote Desktop» toggle.

To re-enable Remote Desktop in the future, turn on the «Remote Desktop» toggle.

The 'Remote Desktop' toggle highlighted in Settings.

In the Disable Remote Desktop prompt, select «Confirm.»

'Confirm' highlighted in the Remote Desktop prompt.

Remote Desktop is now disabled.

Shut Off Remote Desktop Using Command Prompt

You can use a command in Command Prompt to prevent the Remote Desktop service from launching on your PC’s boot. This doesn’t disable the feature but ensures the feature doesn’t run when your computer turns on.

To use this method, access Windows Search, type Command Prompt, and select «Run as Administrator.»

'Run as Administrator' highlighted for Command Prompt.

In the User Account Control prompt, choose «Yes.»

In Command Prompt, type the following command and press Enter. This command stops the Remote Desktop service.

        net stop termservice
    

Next up, type the following command and press Enter. This command prevents the Remote Desktop service from launching on the PC’s boot.

        sc config termservice start= disabled
    
The command to disable the Remote Desktop service typed in Command Prompt.

Close the Command Prompt window by typing the following command and pressing Enter:

        exit
    

You’re done.

To re-enable Remote Desktop in the future, run the following commands from an elevated Command Prompt window. Make sure to press Enter after each command.

        sc config termservice start= auto
net start termservice

Use Control Panel to Disable Remote Desktop

You can use the traditional Control Panel utility to turn Remote Desktop on and off.

Start by opening Control Panel. One way to do this is to open Windows Search, type Control Panel, and select the utility in the search results.

Control Panel highlighted in Windows Search.

In Control Panel, select «System and Security.»

'System and Security' highlighted in Control Panel.

In the System section, choose «Allow Remote Access.»

'Allow Remote Access' highlighted in Control Panel.

The System Properties window will launch. Access the «Remote» tab and enable the «Don’t Allow Remote Connections to This Computer» option. Then, choose «Apply» followed by «OK.»

To re-activate Remote Desktop, enable the «Allow Remote Connections to This Computer» option.

Various options highlighted in the 'Remote' tab of the 'System Properties' window.

You’ve successfully disabled Remote Desktop.

Using PowerShell

In PowerShell, you can run a command (called a cmdlet) to change a Windows registry value that disables Remote Desktop.

To use this method, open Windows Search, type PowerShell, and choose «Run as Administrator.»

'Run as Administrator' highlighted for PowerShell.

In the User Account Control prompt, select «Yes.»

In PowerShell, type the following command and press Enter:

        Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 1
    
The cmdlet to disable Remote Desktop typed in PowerShell.

Here’s what each parameter does in this cmdlet:

  • Set-ItemProperty: This changes the specified registry item’s value.
  • -Path: This is the path to the registry item to be modified.
  • fDenyTSConnections: This is the name of the item to be modified.
  • -value 1: This is the new value for the item.

PowerShell has disabled Remote Desktop. To re-enable the feature in the future, run the following cmdlet:

        Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0
    

With Local Group Policy Editor

On Windows 11’s Pro edition, you can use the Local Group Policy Editor tool to disable Remote Desktop. Note that this tool isn’t available on Windows 11’s Home edition. We have a guide on how to check your Windows 11 edition, so check that out to find your edition.

To use the method, open the Run dialog box by pressing Windows+R. Type the following in the box and press Enter (or select «OK»).

        gpedit.msc
    

When Local Group Policy Editor opens, navigate to the following path:

        Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections
    

On the right pane, double-click the item that says «Allow Users to Connect Remotely by using Remote Desktop Services.»

'Allow Users to Connect Remotely by using Remote Desktop Services' highlighted in Local Group Policy Editor.

On the open window, select the «Disabled» option. Then, at the bottom, choose «Apply» followed by «OK.»

In the future, you can re-enable the feature by choosing «Not Configured.»

Various options to disable Remote Desktop highlighted in Local Group Policy Editor.

Close Local Group Policy Editor.

Using Registry Editor

The Registry Editor method works on both Pro and Home editions of Windows 11. You simply change a registry item’s value and that disables Remote Desktop.

Start by launching Run using Windows+R. Type the following in the open box and press Enter or select «OK.»

        regedit
    

In the User Account Control prompt, select «Yes.»

In Registry Editor, navigate to the following path. A quick way to do this is to copy the following path, paste it in Registry Editor’s path box, and press Enter.

        HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
    

On the right pane, right-click anywhere blank and choose New > DWORD (32-bit) Value.

New > DWORD (32-bit) Value highlighted in Registry Editor.» src=»https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2024/09/14-regedit-new-dword.jpg»></p>
<div class= Картинка с сайта: www.howtogeek.com

Type fDenyTSConnections as the new item name and press Enter. Then, right-click the newly created item and choose «Modify.»

'Modify' highlighted for 'fDenyTSConnections' in Registry Editor.

Type 1 in the «Value Data» field and select «OK.»

In the future, you can reactivate the feature by typing 0 in the «Value Data» field.

'Value Data' and 'OK' highlighted for 'fDenyTSConnections' in Registry Editor.

Close Registry Editor.

Using a Batch File

If you often need to toggle Remote Desktop off and on, create a batch file to automate the task. This file will turn off the feature if it’s enabled and turn on the feature if it’s disabled. You simply have to double-click the file to make that happen.

To make the batch file, open Windows Search, type Notepad, and select the app in the search results.

Notepad highlighted in Windows Search.

Copy the following code and paste it in Notepad. This code runs a query to check whether Remote Desktop is enabled or disabled. It then toggles the feature on or off, depending on the current status.

        @echo off

for /f "tokens=3" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v fDenyTSConnections') do set fDenyTSConnections=%%a

if "%fDenyTSConnections%"=="0x0" (
    echo Remote Desktop is enabled. Disabling...
    powershell.exe -Command "Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'fDenyTSConnections' -Value 1"
) else (
    echo Remote Desktop is disabled. Enabling...
    powershell.exe -Command "Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services' -Name 'fDenyTSConnections' -Value 0"
)

Save the file by choosing File > Save As from Notepad’s menu bar.

File > Save As highlighted in Notepad.» src=»https://static1.howtogeekimages.com/wordpress/wp-content/uploads/2024/09/18-save-remote-desktop-batch-script.jpg»></p>
<div class= Картинка с сайта: www.howtogeek.com

Select your desktop as the preferred location to save the file. Click the «Save as Type» drop-down menu and choose «All Files.» Select the «File Name» field, type a name for the file, and add .bat as the file extension. Then, click «Save.»

Saving the batch script to disable Remote Desktop.

To use the file, right-click the file and choose «Run as Administrator.»

'Run as Administrator' highlighted for the batch script to disable Remote Desktop.

And that’s how you toggle off Remote Desktop when you aren’t using it. It’s easy to turn Remote Desktop back on in Windows 11, and you even have third-party tools for Windows and Mac remote connections. Enjoy!

Windows Remote Desktop is a handy feature if you need to access your computer but cannot do so physically. In fact, it became so popular that multiple remote desktop apps popped up on the radar. Apps like AnyDesk and TeamViewer facilitate the same remote desktop connection with a more intuitive user experience.

However, if you don’t use the Windows Remote Desktop feature to connect to your computer frequently, it is best to disable it. This guide will help you understand the glaring concerns with an open remote desktop connection and will list all the methods to disable the features on your Windows 11 computer.

How Does Windows Remote Desktop Work?

It is pretty straightforward — there is a host computer and a connecting computer. The app uses the Remote Desktop Protocol (RDP) to facilitate the connection between the two computers. When connected, you can access the host computer’s files and settings. However, Microsoft reserves the Remote Desktop tool for Windows Pro, Enterprise, and Education versions only.

It isn’t difficult to set up and use the remote desktop tool on your Windows computer. But there are some risks associated with the tool as well.

Why Should You Disable Remote Desktop on Windows 11?

Remote Desktop uses the RDP protocol and is a hot target for attackers, like in a remote desktop protocol attack. Often, hackers try to get control of systems running a remote desktop connection with a weak password.

Once they are in, it is an absolute nightmare to get back control of your system. So, it is wise to disable the feature if you don’t use it anymore. You can always re-enable it later on.

How to Disable Remote Desktop on Windows 11

You can disable Remote Desktop from the control panel, or settings app, or use the Command Prompt or Registry editor. Moreover, you can even create a batch file and run it directly from the desktop.

1. Using the Settings App

You can quickly turn off the Remote Desktop feature on your system using the settings app. Here’s how:

  1. Press Win + I to launch the settings app.
  2. Under the System section, scroll down and click on the Remote Desktop option.
  3. Then, click on the toggle next to the Remote Desktop option to turn it off.

    Disable Remote Desktop Using the Settings App

  4. Windows will prompt you to confirm your decision. Click on the Disable button and exit the settings app.

2. Using the Control Panel

While Microsoft is trying to move most of the control panel options to the settings app, the transition is not yet complete. So, you can even disable the remote desktop feature using the control panel. Repeat the following steps:

  1. Press Win + R to launch the Run command box. Type control and press the enter key.
  2. The control panel will launch. Click on the System and Security option.
  3. Navigate to the System section and click on the Allow remote access option.
  4. Then, select the Don’t allow remote desktop connections to this computer radio button and click the Apply button.

    Disable Remote Desktop Using Control Panel

  5. Lastly, click on the OK button to finalize changes and close the Remote Desktop tool.

3. Using the Registry Editor

You can manually create a registry key to disable the Remote Desktop Feature on your system. However, tweaking the Registry is a risky affair, and you must always create a Registry backup before making any changes. Even if things go south, you can always import the backup and make your system work again.

Repeat the following steps to disable Remote Desktop using the Registry editor:

  1. Press Win + R to launch the Run command box. Type Regedit in the text input area and press the enter key to launch the utility.
  2. Now, go to the address bar on the top of the Registry Editor windows, paste the following path, and press the enter key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server
  3. Once, you are in the Terminal Server key, locate the fDenyTSConnections DWORD value. If it is not present, right-click and select New > DWORD (32-bit) Value.
  4. Name the newly created key as ‘fDenyTSConnections’ and do not capitalize it.
  5. Double-click on the fDenyTSConnections DWORD value and change the Value Data to 1. Keep the Base as Hexadecimal.

    Disable Remote Desktop Using Registry Editor

  6. Lastly, click on the OK button and exit the registry editor.
  7. Restart your system to allow the changes to take effect.

4. Using Windows Firewall

You can block the Remote Desktop from the list of allowed apps in the Windows Firewall. After that, even if the feature is active on your system, no other computer will be able to connect with it. Here’s how:

  1. Press Win + R to launch the Run command box. Type control firewall.cpl in the text box and press the enter key.
  2. On the Windows Defender Firewall page, click on the Allow an app or feature through the Windows Defender Firewall option.
  3. Click on the Change settings button. Scroll down and uncheck the Remote Desktop and Remote Desktop (WebSocket) option in the list.

    Disable Remote Desktop Using Windows Firewall

  4. Click on the OK button and exit the control panel window.

5. Using the Command Prompt

You can use the Command Prompt to disable Remote Desktop without navigating the Control Panel or the settings app. Repeat the following steps:

  1. Press Win + X to open the Power User Menu. Locate the Terminal (Admin) option from the list and click on it.
  2. In the Command Prompt window, type the following command and press the enter key: net stop termservice
  3. Type Y and press enter to stop Remote Desktop and its related services.
  4. Then, type sc config termservice start= disabled command and press the enter key.

    Disable Remote Desktop Using CMD

  5. After the command executes successfully, type exit to close the Command Prompt window.

6. Using a Batch File

A batch file is a more easy way to toggle Remote Desktop on or off. You can save it on the desktop and run it after you no longer need the feature active on your system. Here’s how:

  1. Press Win + D to switch to the desktop.
  2. Right-click on the Desktop and select New > Text Document.
  3. Open the empty text file and paste the following code snippet:

    @echo off powershell.exe Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 1
    Disable Remote Desktop Using a Batch File

  4. Press Ctrl + Shift + S to open the Save as option. Name the file RD.bat and keep the File Type as All Files. Now, click on the Save button.
  5. Press Win + D to switch to the desktop and right-click on the RD.bat file. Select the Run as administrator option from the context menu.
  6. The batch file will launch PowerShell, execute the disable command, and close automatically. You don’t need to intervene.

Windows Remote Desktop Is Now Disabled

Remote Desktop should be only active when you need the feature. You can use the Settings app or Control Panel to disable the feature. In addition, you can edit the registry values or disable the app from Windows Firewall. Lastly, you can create and run a batch file if you want to disable the feature in just one click.

Do you want to disable Remote Desktop access functions in Windows 11? If you need to protect your device from unauthorized logins during times when you do not need remote desktop access, then this article is just for you.

The accessibility feature of Remote Desktop provides convenient PC access. However, it creates security vulnerabilities when users fail to monitor its usage, or it does not work on Windows 11/10. Hence, this detailed guide presents step-by-step instructions with six different ways to disable Remote Desktop access on Windows 11.

Page Contents

Method 1: Disable Remote Desktop via Windows Firewall

Windows Firewall disables access, which blocks RDP (Remote Desktop Protocol) traffic while leaving all other system configurations intact.

Note: The change disables all external devices from accessing your PC through Remote Desktop regardless of the feature status.

1. Open the Windows + S dialog and search for Windows Defender Firewall. Click to open it.

open windows defender firewall

2. Choose Allow an app or feature through Windows Defender Firewall from the left sidebar.

Click on Change settings.

allow an app or feature windows defender firewall

3. Locate Remote Desktop among the listed options. Disable Remote Desktop access by unchecking both Private and Public options under Windows Firewall. You can save your modifications by selecting OK.

disable remote desktop through windows defender firewall

Method 2: Disable Remote Desktop Using the Settings App

Users can manage Remote Desktop access through the Settings application in Windows 11 by using its simple interface.

1. Open Settings by pressing Windows + I. Access the System through the menu and select Remote Desktop.

remote desktop in windows 11 settings system

2. Toggle off the switch next to Remote Desktop. Confirm your choice when prompted.

Disable Remote Desktop Using the Settings App

Method 3: Disable Remote Desktop Using the Registry Editor

The Registry Editor enables advanced users to disable it through its powerful system settings modifications.

1. Open the Run dialog by pressing Windows + R, then enter the command followed by pressing Enter.

regedit

open registry editor with run box

2. Navigate to the following path-

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server

The entry “fDenyTSConnections” exists on the right side of the pane. Use the double-click function to access the entry and change its value to 1.

Disable Remote Desktop Using the Registry Editor

After making changes in the Registry Editor, click OK, then close the application. The system requires a computer restart to implement these modifications.

Note: Modifying the registry system requires caution because mistakes can lead to severe problems. Proceed with caution while making sure to create a backup of your registry before starting.

Method 4: Disable Remote Desktop Using the Control Panel

The classic Control Panel in Windows 11 provides users with an alternative method to disable Remote Desktop access.

1. Open the search bar by pressing Windows + S and type Control Panel into the search field.

open control panel

2. Open System and Security, followed by System from the menu.

system and security in control panel

3. Select Remote settings from the sidebar options. The Remote Desktop section contains an option to select “Don’t allow remote connections to this computer”. Click Apply, then OK.

Disable Remote Desktop Using the Control Panel

Method 5: Disable via Command Prompt

A single command in Command Prompt enables advanced users to disable Remote Desktop functionality.

1. Open the Windows Terminal (Admin) or Command Prompt (Admin) by pressing Windows + X.

open powershell terminal admin from taskbar start

2. Enter the following command, then press Enter

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

This command enables “fDenyTSConnections” with a value of 1 in the Terminal Server key under CurrentControlSet\Control.

fDenyTSConnections terminal

3. The command to stop Remote Desktop Services is-

net stop termservice

Disable Remote Desktop via Command Prompt

Method 6: Disable Remote Desktop Using a Batch File

A batch file provides automatic control of settings when you need to enable or disable them frequently.

1. Open Notepad.

open notepad

2. Paste the following code.

@echo off
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f
net stop termservice

paste code in notepad

3. Save the file as “Disable_RDP.bat”. After saving, right-click the file. Then, choose the “Run as administrator” option from the drop-down menu.

Disable Remote Desktop Using a Batch File

Frequently Asked Questions (FAQs)

#1 Is it safe to disable Remote Desktop in Windows 11?

The procedure is entirely safe for your system because it enhances security and performance while Remote Desktop remains disabled.

#2 Will disabling Remote Desktop affect other services?

The disablement of Remote Desktop functions solely on remote access capabilities. The local usage, together with other network services, operates normally.

#3 Can I enable Remote Desktop again after disabling it?

Absolutely. You can reactivate Remote Desktop through the same procedures after reversing the configuration changes.

That’s it!

RELATED ARTICLES

  • To disable Remote Desktop on Windows 11, open Settings > System > Remote Desktop and turn off the “Remote Desktop” option.
  • You can also turn off the feature using commands with PowerShell and Command Prompt. Other options include using the Group Policy Editor or the Registry Editor.

On Windows 11, if you don’t use Remote Desktop, it’s best to disable the feature to minimize the risk of malicious individuals trying to gain unauthorized access to your computer remotely. The chances of someone exploiting this feature are relatively low, but it could happen.

Remote Desktop allows anyone with the right user and password to access a computer from another location using the Remote Desktop Protocol (RDP) available on Windows 11 (and older versions) to access files and applications or offer assistance to other users. Although the feature is relatively secure, if your account credentials are compromised, someone may be able to access the device without your consent. If you don’t use this feature, I’d recommend that you disable it.

In this guide, I will teach you the different methods to disable Remote Desktop on Windows 11. 

Warning: Before proceeding, it’s crucial to acknowledge the risks associated with modifying the Windows Registry. Incorrect changes can lead to system instability or operational issues. Therefore, ensure you have a full system backup before making any changes. Proceed with caution and understanding. This feature is not available on Windows 11 Home. It is only available on Windows 11 Pro and Enterprise. If you have to enable Remote Desktop, you can use these instructions.

On Windows 11, you can disable the Remote Desktop feature from the Settings app, Control Panel, and commands from PowerShell and Command Prompt.

Method 1: Use the Settings app

To disable Remote Desktop on Windows 11 from the Settings app, use these steps:

  1. Open Settings on Windows 11.

  2. Click on System.

  3. Click the Remote Desktop page.

  4. Turn off the Remote Desktop toggle switch.

    Remote Desktop disabled

  5. Click the Confirm button.

Method 2: Use the Control Panel

To disable Remote Desktop from the Control Panel, use these steps:

  1. Open Control Panel.

  2. Click on System and Security.

  3. Click the Allow remote access option under the “System” section.

    Control Panel allow remote access option

  4. Select the “Don’t allow remote connections to this computer” option under the “Remote Desktop” section.

    Control Panel disable Remote Desktop

  5. Click the Apply button.

  6. Click the OK button.

Method 3: Use Command Prompt commands

To disable the remote desktop protocol from 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 enable 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

    Command Prompt disable Remote Desktop

  4. (Optional) Type the following command to disable the feature through the Windows Firewall and press Enter:

    netsh advfirewall firewall set rule group="remote desktop" new enable=No

Method 4: Use PowerShell commands

To disable Remote Desktop with PowerShell commands, use these steps:

  1. Open Start.

  2. Search for PowerShell, 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:

    Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 1

    PowerShell disable RDP

  4. (Optional) Type the following command to disable the feature through the Windows Firewall and press Enter

    Disable-NetFirewallRule -DisplayGroup "Remote Desktop"

Method 5: Use the Group Policy Editor

To turn off the Remote Desktop feature on Windows 11 through the Group Policy Editor, use these steps:

  1. Open Start.

  2. Search for gpedit and click the top result to open the Group Policy Editor.

  3. Browse to the following path:

    Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections
  4. Double-click the “Allow users to connect remotely by using Remote Desktop Services” policy.

    Group Policy Connections folder

  5. Select the Disabled option.

    Group Policy disable Remote Desktop

  6. Click the Apply button.

  7. Click the OK button.

You can always undo the changes with the same instructions, but in step 5, choose the “Not Configured” option.

Method 6: Use the Registry Editor

To disable Remote Desktop through the Registry, use these steps:

  1. Open Start.

  2. Search for regedit and click the top result to open the Registry Editor.

  3. Browse to the following path:

    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
  4. Right-click the Terminal Services key, select the New menu, and choose the “DWORD (32-bit) Value” option.

    Registry Terminal Services key

  5. Name the key fDenyTSConnections and press Enter.

  6. Right-click the newly created key and choose the Modify option.

  7. Change key value from 0 to 1.

    Registry disable Remote Desktop

  8. Click the OK button.

Once you complete the steps, the Remote Desktop feature will be disabled on Windows 11.

If you no longer need this configuration, you can undo the changes with the same instructions, but on step 4, right-click the “fDenyTSConnections” DWORD and choose the “Delete” option.

It’s important to note that whether you use the Group Policy or Registry Editor, you will also be unable to configure the feature through the Settings app, and the settings page will display the “Some settings are managed by your organization” message.

Update July 18, 2024: This guide has been updated to ensure accuracy and reflect changes to the process.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как настроить pycharm для python windows
  • Где найти параметры папок в windows 11
  • Как добавить нового пользователя в windows 10 без создания учетной записи майкрософт
  • Anniversary update for windows 10
  • Pantum p2500w driver windows 10