Methods to Enable and Disable Remote Desktop Locally

Home > Blogs > PowerShell > Methods to Enable and Disable Remote Desktop Locally

Methods to Enable and Disable Remote Desktop Locally

1 2Rick Trader
Added by January 29, 2016

By default on a Windows Server Product Windows Remote Management (WinRM) is enabled, but Remote Desktop (RDP) is Disabled.  On workstation operating systems neither is enabled by default.

For instructor-led Windows Server training, see our class schedule

Enabling RDP locally.

Method 1:  Graphical Interface

By far the easiest way is to enable RDP through the graphical interface.

  1. Launch System Properties and click Remote Settings in the left hand pane.
  2. Choose the Allow remote connections to this computer radial button.
  3. Click Select Users to add users to connect via RDP.

NOTE:  By default the local Administrators group will be allowed to connect with RDP.  Also the user that is currently logged in will also be allowed to connect.

001-enable-and-disable-remote-desktop-locally

  1. Click OK to close the interface, RDP is now enabled on the compute.

NOTE:  Enabling RDP through the GIU will also configure the Windows Firewall with the appropriate ports to allow RDP connections.

NOTE:  To Disable Remote Desktop select the Don’t allow remote connections to this computer radial button.

Method 2:  Registry

To enable remote desktop by directly editing the registry use the following steps:

  1. Launch the registry editing tool by typing REGEDIT in the run.
  2. Navigate to the following node: HKEY_LOCAL_MACHINE\SYSTEM\CurRentControlSet\Control\Terminal Server
  3. Select the fDenyTSConnections Name

002-enable-and-disable-remote-desktop-locally

  1. Change the Data Value from 1 to 0, select OK.

003-enable-and-disable-remote-desktop-locally

NOTE:  Enabling RDP through the registry will not configure the Windows Firewall with the appropriate ports to allow RDP connections.

You may also like:  Video - How to Recover and Reset Passwords in Azure by Mike Pfeiffer

Type the following in an administrative command prompt:

NOTE:  By default the local Administrators group will be allowed to connect with RDP.  Also the user that is currently logged in will also be allowed to connect.

NOTE:  To Disable Remote Desktop select enter 1 instead of 0.

Method 3:  Command Line

To enable RDP with the Command Prompt, use the following steps.

  1. Launch the Command Prompt as Administrator.
  2. Type the following command:

004-enable-RDP-with-the-Command-Prompt

NOTE:  Enabling RDP through the Command Prompt will not configure the Windows Firewall with the appropriate ports to allow RDP connections.

Type the following:

NOTE:  By default the local Administrators group will be allowed to connect with RDP.  Also the user that is currently logged in will also be allowed to connect.

To disable RDP with the Command Prompt, use the following steps.

  1. Launch the Command Prompt as Administrator.
  2. Type the following command:
You may also like:  How to use CSVDE Comma Separated Value Data Exchange to Import and Export users into an Active Directory Database in Windows Server 2016

Method 4:  Using PowerShell

To enable RDP with the PowerShell, use the following steps.

  1. Launch PowerShell as Administrator.
  2. Type the following command:

NOTE:  Enabling RDP through the Command Prompt will not configure the Windows Firewall with the appropriate ports to allow RDP connections.

Type the following:

005-PowerShell-enable-RDP-with-the-Command-Prompt

NOTE:  By default the local Administrators group will be allowed to connect with RDP.  Also the user that is currently logged in will also be allowed to connect.

To disable RDP with the PowerShell, use the following steps.

  1. Launch PowerShell as Administrator.
  2. Type the following command:

Until next time – Ride Safe!

Rick Trader
Windows Server Instructor – Interface Technical Training
Phoenix, AZ

Videos You May Like

Creating Users and Managing Passwords in Microsoft Office 365

0 95 1

In this Office 365 training video, instructor Spike Xavier demonstrates how to create users and manage passwords in Office 365.

Using Navigation Controls in a Collaboration Site in SharePoint

0 92 0

In this SharePoint training video, I want to talk about the Navigation Controls in SharePoint. They tend to fall into two kind of different categories; one with the navigation controls in a typical Collaboration Site such as a Team Site or a Project Site. These are Sites that are based on the Team Site Template … Continue reading Using Navigation Controls in a Collaboration Site in SharePoint

Detailed Forensic Investigation of Malware Infections – April 21, 2015

2 191 1

In this IT Security training video, Security expert Mike Danseglio (CISSP / CEH) will perform several malware investigations including rootkits, botnets, viruses, and browser toolbars.

Write a Comment

See what people are saying...

  1. Talha Nasiruddin

    Thanks for sharing.

    Nice work 🙂

  2. Fábio

    There is a little mistake in the reg add code, it’s missing the R letter in CurRentControlSet:

    Reg add “HKEY_LOCAL_MACHINE\SYSTEM\CurRentControlSet\Control\Terminal Server”  /v fDenyTSConnections /t REG_DWORD /d 0 /f

Share your thoughts...

Please fill out the comment form below to post a reply.