How To enable Remote Desktop Connection using PowerShell?

Remote Desktop Connection is also Known by several names formerly Microsoft Terminal Services Client, mstsc, Remote Desktop, or tsclient. In IT terms we used to call Remote Desktop or RDP. It is one of the components of Microsoft windows that allow a user to take control of a remote computer or virtual machine over a network connection. To access Remote connection both the devices should be connected to the same network or to the internet. Once the connection is established the users can now access and take control of the other system. You can have unrestricted control over the Mouse, Keyboard, or basically the entire computer. Mostly Remote Desktop is used by IT professionals, Customer support representatives, Managed service providers, or MSPs. In most of the Corporate companies Users use RDP to access the client machines to work remotely. As I mentioned above Remote Desktop is installed and enabled by default in windows machines. If you are still searching for a way to enable Remote Desktop connection, this article will guide you to achieve this.

Table of Contents

Follow the below-mentioned methods to enable Remote Desktop connection.

  1. Enable Remote Desktop connection using Windows Settings
  2. Enable Remote Desktop connection using System properties
  3. Enable Remote Desktop connection using Command Prompt
  4. Enable Remote Desktop connection using PowerShell

This article will guide you to Enable Remote Desktop connection using several methods.

1.Enable RDP using Windows Settings

Open Windows Settings by pressing windows + I and Click on System.

From the Right-hand pane click on Remote Desktop.

From the Left-hand pane Click the toggle Enable Remote Desktop

enable Remote Desktop Connection

Click on the confirm when Prompted.

2.Enable RDP using System properties

Open run command by pressing Windows + R and type control and hit enter, this command will open the control panel. Set the View by to Large icons Search for System and click on it.

Control panel system

From the Right-hand pane choose Remote Settings.

Click the Remote tab and select Allow remote connections to this computer. 

Keep the box checked for Network Level Authentication for better security. Also, note that you will need to enable incoming remote connections on the PC you’re connecting.

enable Remote Desktop Connection system properties

3.Enable Remote Desktop connection using Command Prompt

Note: Modifying the Registry is risky, and it cause irreversible damage to your OS Installation Follow the steps correctly. Friendly advice Before Modifying Registry Creating Restore Point is recommended.

Open Run command with Admin Privileges. Search for command prompt in Cortana search right click on command prompt and choose run as admin.

Now type the following command and hit enter

reg add “HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server” /v fDenyTSConnections /t REG_DWORD /d 0 /f

fDenyTSConnections specifies whether Remote Desktop connections are enabled.

By default, this value will be set to 1, once you execute this command will change the value to 0.

using command prompt

Next, execute the following command to allow RDP in the firewall.

netsh advfirewall firewall set rule group=”remote desktop” new enable=yes

This command will update the firewall rules and now you can start using Remote Desktop connection.

4.Enable Remote Desktop connection using PowerShell

Note: Modifying the Registry is risky, and it cause irreversible damage to your OS Installation Follow the steps correctly. Friendly advice Before Modifying Registry Creating Restore Point is recommended.

Open Windows PowerShell in admin mode, search for PowerShell in Cortana search, right-click and choose run as admin.

Now enter the following command and hit enter.

Set-ItemProperty -Path ‘HKLM:\System\CurrentControlSet\Control\Terminal Server’-name “fDenyTSConnections” -Value 0

fDenyTSConnections specifies whether Remote Desktop connections are enabled.

By default, this value will be set to 1, once you execute this command will change the value to 0.

using command powershell

Next execute the following command to allow RDP in firewall.

Enable-NetFirewallRule -DisplayGroup “Remote Desktop”

This command will update the firewall rules and now you can start using Remote Desktop connection. 

Read Also:

Fix RDP Authentication Error has Occurred in Windows 11/10

Fix RDP Error Code 0x104 in Windows 10

Leave a Comment

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.

Scroll to Top