TechnologyWindows

How to Enable Remote Desktop using Command Tools

Distant Desktop is a superb device on Home windows 11/10 that allows you to function your private laptop remotely on a unique laptop. With this device enabled, you may entry all of your recordsdata and edit or modify them instantly utilizing a distant PC. This text presents two completely different command instruments that allow you to allow distant desktop and they’re Command Immediate and PowerShell. 

Enable Remote Desktop using Command Tools

In case you are not comfy with operating codes, chances are you’ll learn this information on easy methods to allow and arrange Distant Desktop through Settings on Home windows PC. The Settings technique works equally nicely, nevertheless, it includes extra steps and thus you may discover this information helpful to allow the Distant desktop by operating 1-2 codes. 

Repair – Lacking Taskbar on a distant desktop in Home windows 10

Allow Distant Desktop utilizing Command Immediate

To allow Distant Desktop in your Home windows PC utilizing Command Immediate, use these steps –

  • Press Home windows + S, and begin typing CMD within the search subject. 
  • Proper-click on the highest end result and choose Run as administrator.
  • The UAC window may immediate subsequent, hit Sure to authorize accessing the Command immediate as an admin. 
  • On the elevated console, copy/paste the beneath code, and press Enter

reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f

  • The above command will add a brand new entry contained in the registry that works to allow Distant desktop connection on Home windows. 
  • Though you’ve gotten enabled the Distant desktop, you may not nonetheless be accessing the Distant Desktop. It’s because Home windows Firewall is obstructing this request of yours. You could execute the beneath command on the CMD subsequent to allow distant desktop connection via Firewall on Home windows – 

netsh advfirewall firewall set rule group="distant desktop" new allow=Sure

Enable Remote Desktop using Command Prompt

  • This command will now add a brand new rule inside your working system that authorizes enabling Distant Desktop in your laptop. 

Now that you’ve enabled Distant Desktop and allowed its opening via Home windows Firewall as nicely, restart your PC. Signal again into your gadget once more and examine in case you can entry this device usually. 

Easy methods to arrange and use Distant Desktop in Home windows 10 [Complete Guide]

Disable Distant Desktop utilizing Command Immediate

When you ever change your thoughts and need to disable utilizing Distant Desktop in your laptop, do the next –

  • Open the Run dialog by urgent Home windows + R
  • Sort CMD on it and press Ctrl + Shift + Enter keys altogether. 
  • Doing so will invoke the Command Immediate having administrative privileges. 
  • On the elevated console, copy/paste the next, and press Enter – 

reg add "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTerminal Server" /v fDenyTSConnections /t REG_DWORD /d 1 /f

  • The above code will add one other entry contained in the registry forcing your laptop to disable all distant desktop connections on it. 
  • In case you are not keen to make use of Distant Desktop quickly, disable its utilization via Home windows Firewall as nicely. To take action, you have to run the next code on the identical immediate – 

netsh advfirewall firewall set rule group="distant desktop" new allow=No

  • Shut the Command Immediate and restart your Home windows PC.

Signal again into your gadget once more and you can see the Distant desktop not working in your laptop. 

Repair – Black display screen difficulty on Distant Desktop in Home windows 10

Activate Distant Desktop utilizing PowerShell

Alternatively, one might also use Home windows PowerShell to activate Distant Desktop on a Home windows PC. Home windows 11 customers could go for the terminal and comply with the beneath steps – 

  • Proper-click on the Home windows icon and choose Terminal (Admin). 
  • The Person account management will pop up subsequent, hit Sure to authorize accessing the terminal. 
  • On the terminal, copy/paste the next code, and press the Enter key. 

Set-ItemProperty -Path 'HKLM:SystemCurrentControlSetControlTerminal Server' -name "fDenyTSConnections" -value 0

  • The “Worth 0” stands for enabling Distant desktop within the above command. When you ever need to disable this utility program on Home windows, simply exchange the identical with “Worth 1” and re-run this code. 
  • After this command runs efficiently, the distant desktop might be enabled in your laptop. Nonetheless, you may not nonetheless open this Distant Desktop. This occurs largely as a result of the Home windows Firewall is obstructing this app from beginning on Home windows 11 PCs. 
  • To permit the distant desktop performance via Home windows Firewall, it’s essential to run this command on the identical terminal – 

Allow-NetFirewallRule -DisplayGroup "Distant Desktop"

Enable Remote Desktop using Terminal or PowerShell

  • After this command runs efficiently as nicely, shut the terminal, and restart your PC. 

From the following login, chances are you’ll use the Distant desktop connection app to entry all of your computer systems remotely. 

5 Methods to Disable Distant Desktop Connection on Home windows 10 PC

Disable Distant Desktop utilizing PowerShell

To disable utilizing Distant Desktop on Home windows PC via PowerShell, use these steps – 

  • Press Win + X, and choose Home windows Terminal (Admin). 
  • When the UAC prompts, hit Sure to authorize opening this command device. 
  • The terminal will launch into Home windows PowerShell (Admin) by default. 
  • Now, copy/paste the beneath code on it and press Enter – 

Set-ItemProperty -Path 'HKLM:SystemCurrentControlSetControlTerminal Server' -name "fDenyTSConnections" -value 1

  • Look ahead to this command to execute efficiently and when that is over, you can see the Distant Desktop protocol disabled in your laptop. 
  • In case you need to disable Home windows Firewall permitting Distant Desktop, chances are you’ll execute this command subsequent – 

Disable-NetFirewallRule -DisplayGroup "Distant Desktop"

  • Shut the terminal and restart your Home windows PC. 

From the following login, you’ll not discover the Distant Desktop operating in your laptop. 

Repair – Distant desktop licensing mode not configured in Home windows 10

Related Articles

Leave a Reply

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

Back to top button