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.
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."
On the following screen, turn off the "Remote Desktop" toggle.
To re-enable Remote Desktop in the future, turn on the "Remote Desktop" toggle.
In the Disable Remote Desktop prompt, select "Confirm."
Remote Desktop is now disabled.
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."
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 termserviceNext 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= disabledClose the Command Prompt window by typing the following command and pressing Enter:
exitYou’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= autoYou 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.
In Control Panel, select "System and Security."
In the System section, choose "Allow Remote Access."
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.
You’ve successfully disabled Remote Desktop.
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."
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 1Here’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 0On 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.mscWhen Local Group Policy Editor opens, navigate to the following path:
Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > ConnectionsOn the right pane, double-click the item that says "Allow Users to Connect Remotely by using Remote Desktop Services."
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."
Close Local Group Policy 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."
regeditIn 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 ServicesOn the right pane, right-click anywhere blank and choose New > DWORD (32-bit) Value.
Type fDenyTSConnections as the new item name and press Enter. Then, right-click the newly created item and choose "Modify."
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.
Close Registry Editor.
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.
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 offSave the file by choosing File > Save As from Notepad’s menu bar.
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."
To use the file, right-click the file and choose "Run as Administrator."
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!
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.
Comments