How to Set Up Remote Desktop (RDP) in Windows 10 and 11

6 min read

Complete guide to enabling and securing Remote Desktop Protocol (RDP) in Windows: enable RDP, configure firewall, connect from another PC, and secure against attacks.

Remote Desktop lets you control a Windows PC from anywhere. Here's how to enable it safely.


Enable Remote Desktop

Via Settings: SettingsSystemRemote Desktop → toggle Enable Remote DesktopConfirm.

Via PowerShell:

Set-ItemProperty "HKLM:\System\CurrentControlSet\Control\Terminal Server" fDenyTSConnections 0
Enable-NetFirewallRule -DisplayGroup "Remote Desktop"

Check Who Has RDP Access

Only Administrators can connect by default. To add other users:

SettingsRemote DesktopRemote Desktop usersAdd → type username.

Or via PowerShell:

Add-LocalGroupMember -Group "Remote Desktop Users" -Member "Username"

Connect from Another PC

Win + Rmstsc → enter the computer name or IP → Connect → enter credentials.

Save connection settings: In Remote Desktop Connection → Show OptionsSave As → saves as .rdp file.


Find Your PC's IP Address

(Get-NetIPAddress -AddressFamily IPv4 | Where-Object { $_.IPAddress -notmatch "^127" })[0].IPAddress

Or: ipconfig → look for IPv4 Address.


Secure RDP Against Attacks

RDP is a common attack target. Apply these protections:

1. Change default port (3389)

Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name PortNumber -Value 33890
New-NetFirewallRule -DisplayName "Custom RDP" -Direction Inbound -Protocol TCP -LocalPort 33890 -Action Allow

2. Enable Network Level Authentication (NLA)

Set-ItemProperty "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" -Name UserAuthentication -Value 1

3. Limit connection attempts Use GPO or Windows Firewall to block IPs after failed attempts.

4. Use VPN Instead of exposing RDP to the internet, connect via VPN first, then RDP to the internal IP.


RDP Over the Internet

Option A: VPN (recommended) — connect VPN, then RDP to local IP.

Option B: Port forwarding — forward port 3389 (or custom) on router to PC's local IP. Risky without additional security measures.


Performance Settings

For slow connections, reduce bandwidth usage:

In Remote Desktop Connection → Experience → select Modem (56 Kbps) or manually uncheck visual effects.


Troubleshoot Connection Issues

# Test if RDP port is open
Test-NetConnection -ComputerName 192.168.1.100 -Port 3389

# Check RDP service status
Get-Service TermService

# Check firewall rule
Get-NetFirewallRule -DisplayGroup "Remote Desktop"

Summary

Enable RDP via Settings → Remote Desktop. Connect with mstsc. For security: enable NLA, use a VPN instead of exposing port 3389 directly to the internet, and consider changing the default port.

Related articles

← All articles