How to Enable Remote Desktop Protocol (RDP) on Windows? | Windows OS Hub

The Remote Desktop Protocol ( RDP ) allows you to remotely connect to the background of a calculator running Windows and employment with it as if it is your local anesthetic calculator. By nonpayment, Remote Desktop access is disabled in Windows. In this article, we ’ ll indicate how to enable and configure RDP access on Windows 10/11 and Windows Server 2019/2022 .

How to Enable and Use the Remote Desktop Connection on Windows 10 or 11?

The easiest way to enable Remote Desktop Connection in Windows is to use the Control Panel GUI .
Open the system properties in the Control Panel or run the SystemPropertiesRemote command .
SystemPropertiesRemote
Open the Remote Settings yellow journalism and enable the Allow remote connection to this computer option .
For security reasons, it is recommended to allow connections only for RDP clients with NLA support ( Allow connections only from computers running Remote Desktop with Network Level Authentication ) .
Allow remote connection to this computer on Windows
Save the changes by clicking OK .
By nonpayment, only the members of the local Administrators group can remotely connect to a computer over RDP. If you want to allow RDP entree for early users, chatter Select Users .
Users who are allowed to connect to the Remote Desktop
local Remote Desktop Users group. You can display a list of users in the group using the command:
All users you specify here will be added to thegroup. You can display a list of users in the group using the command : net localgroup "Remote Desktop Users"
Remote Desktop Users group - granted the permissions to logon remotely over RDP
Members in this group are granted the right to logon remotely .
To add a fresh exploiter to the RDP access group, run the command below :
net localgroup "Remote Desktop Users" /add a.williams
In current builds of Windows 10 and Windows 11, the classic System Properties dialogue for enabling RDP access is hidden, and Microsoft recommends using the new Settings panel :

  1. Open Settings -> System —> Remote Desktop;
  2. Switch Enable Remote Desktop to ON; Enable Remote Desktop on Windows 10
  3. Confirm enabling RDP on the computer.

note that you are not able to enable RDP on Windows 10 Home version. A outside Desktop service works only on Windows 10 Pro and Enterprise. however, there is a workaround You can enable RDP on Windows 11 using the modern Settings app. Go to System -> Remote Desktop -> Turn on the Remote Desktop using the toggle push button .
enable rdp on windows 11
note that by default two options are enabled when you enable remote control background :

  • Keep my PC awake for connection when it is plugged in
  • Make my PC discoverable on private networks to enable automatic connection from a remote device

Click Advanced settings. here you can enable Network Level Authentication for your RDP connection ( recommended ) .
Configure Network Level Authentication for RDP on Windows 10
If Windows Defender Firewall is enabled on a computer, make sure that it allows incoming RDP connections. By default, TCP port 3389 is used for RDP connections, and the latest Windows build up besides use UDP 3389 ( see the article about the case when a black screen appears rather of the desktop during an RDP connection ) .
Open the Control Panel and choose Windows Defender Firewall. Open a list of default Windows Firewall rules by clicking the Allow an app or feature through Windows Firewall in the leave column .
Allow RDP in Windows Firewall
Make sure that the Remote Desktop dominion is enabled for the Private visibility ( home or corporate network ) and for the Public one ( public networks ) if needed .
Enable the Remote Desktop rule in Windows Defender Firewall

Learn more about network types and Windows Firewall profiles hera If you want, you can set a limit ( timeout ) on the duration of RDP sessions using GPO .
now you can remotely connect to this calculator using an RDP client. Windows has a built-in RDP node – mstsc.exe. It keeps the history of RDP connections and supports copying files between local anesthetic and outside computers via the RDP clipboard .
You can besides use RDP joining managers, like RDCMan or mRemoteNG, angstrom good as option clients .
remote desktop connection client in windows (mstsc.exe)
To make it easier for the users, you can save your RDP connection password in Windows Credential Manager .

Enabling RDP on Windows Using PowerShell

You can cursorily enable RDP access on Windows using a couple of PowerShell commands .

  1. Run PowerShell.exe as administrator;
  2. Enable RDP access through the registry using the Set-ItemProperty cmdlet: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -value 0 In order to disable RDP, change the fDenyTSConnections value to 1 .
  3. Allow RDP connections to the computer in Windows Defender Firewall. To do it, enable the following firewall rule: Enable-NetFirewallRule -DisplayGroup "Remote Desktop" Enable RDP in Windows using PowerShell
  4. If you want to add a user to the local RDP access group, run this command: Add-LocalGroupMember -Group "Remote Desktop Users" -Member a.williams

To make sure that the RDP interface is open on the calculator, use the Test-NetConnection cmdlet :
Test-NetConnection -ComputerName wksde133 -CommonTCPPort RDP
powershell: check for open RDP port TCP 3389

Enable Remote Desktop Connections on Windows Server 2022/2019

Unlike background Windows 10 ( 11 ) versions, Windows Server supports two coincident RDP connections by default. These connections are used by administrators to manage the server .
RDP is enabled on Windows Server in the like room : using the SystemPropertiesRemote, Server Manager, or PowerShell commands described above .
Enabling Remote Desktop on Windows Server 2022 or 2019
You can use Windows Server as a terminal server. In this case, multiple users can simultaneously connect to their own desktops on the waiter. To do it, install and configure the Remote Desktop Session Host (RDSH) role on the server. To use it, you must purchase and activate special RDS licenses ( CALs ). Learn more about RDS license .
Remote Desktop Session Host (RDSH) role on Windows Server 2019
besides, you can use SSL/TLS certificates to secure your RDP connections .

How to Enable RDP via Group Policy (GPO) in an Active Directory Domain?

If you need to enable Remote Desktop on multiple computers at once, you can use Group Policy ( GPO ). We assume that all computers are joined to an active directory world .

  1. Run the Group Policy Management console (gpmc.msc);
  2. Create a new Group Policy Object (or edit an existing one) and link it to a target OU containing computers or servers; enable RDP using GPP
  3. Switch to the policy edit mode and go to the GPO section Computer Configuration -> Administrative Templates -> Windows Components -> Remote Desktop Services -> Remote Desktop Session Host -> Connections;
  4. Find and enable the Allow Users to connect remotely by using Remote Desktop Services parameter; Group Policy entry to allow remote administration to domain computers
  5. Update GPO settings on the clients;
  6. After applying the policy, you will be able to connect to all computers via RDP (the policy will be applied both to desktop clients running Windows 10/11 and Windows Server). If needed, you can target the RDP policy to specific computers using the WMI GPO filters;
  7. If Windows Defender Firewall is enabled on computers, you need to allow RDP traffic for the domain profile in the same GPO. To do it, activate the Windows Firewall: Allow inbound Remote Desktop Exceptions rule (located in Computer Configuration -> Administrative Templates -> Network -> Network Connections -> Windows Firewall -> Domain Profile). Windows Firewall: Allow inbound Remote Desktop Exceptions - GPO

Enabling Remote Desktop (RDP) Remotely on Windows

besides, you can enable RDP remotely on any computer running Windows. To do it, you must have distant access to the computer ( via PowerShell or WMI ) and your report must be a member of the local Administrators group on the distant calculator .
You can enable RDP remotely via the register. To do it, the Remote Registry service must be enabled on the distant calculator ( it is disabled by nonpayment ). To run the service :

  1. Open the service management console (services.msc);
  2. Select Connect to another computer and specify the name of the remote computer; connect to services on another computer
  3. Find the Remote Registry service in the list, change the startup type to Manual, and start the service. Remote Registry service

The like can be done remotely from the instruction prompt using the built-in sc joyride ( it allows to create, oversee, and remove Windows services ) :
sc \\wksde133 config RemoteRegistry start= demand
sc \\wksde133 start RemoteRegistry

command promt: start the RemoteRegistry service on remote computer using sc tool
then on the local computer :

  1. Run the Registry Editor (regedit.exe);
  2. Select Connect Network Registry in the File menu;
  3. Specify the name or IP address of the remote computer you want to enable RDP on;
  4. Go to the reg key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server;
  5. Find the fDenyTSConnections parameter (REG_DWORD). If you cannot find it, create it. Change its value to 0 to enable RDP. set fDenyTSConnections to 0 via remote registry editor

To disable RDP access, you need to change the fDenyTSConnections value to 1 .
then the remote control computer becomes accessible over RDP immediately without a restart .
But it is much faster to enable RDP in the register of the distant calculator via the command motivate :
REG ADD "\\wksde133\HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f
If PowerShell remoting is configured on a outside computer, you can run a outside dominate on it via Invoke-Command :
Invoke-Command -Computername wksde133 -ScriptBlock {Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Terminal Server" -Name "fDenyTSConnections" –Value 0}
besides, you can connect to a outback calculator and enable RDP via WMI :
$computername = “wksde133”
(Get-WmiObject -Class Win32_TerminalServiceSetting -Namespace root\CIMV2\TerminalServices -Computer $computername -Authentication 6).SetAllowTSConnections(1,1)

enablle rdp remotely wmi SetAllowTSConnections

reference : https://thefartiste.com
Category : Tech

About admin

I am the owner of the website thefartiste.com, my purpose is to bring all the most useful information to users.

Check Also

articlewriting1

Manage participants in a zoom meeting webinar

Call the people who attend the meet as follows Alternate host host Who scheduled the …

Leave a Reply

Your email address will not be published.