Sub topic 10
RDP: Remote Windows Desktops
Prerequisites
This chapter assumes you can use the Windows command line and know basic networking terms: IP address, port, and firewall. You should also know the difference between a local and a domain account.
What RDP is
Remote Desktop Protocol (RDP) is a Microsoft protocol that gives you a full graphical Windows session on another computer over the network. You see the remote desktop in a window on your own machine. Your keyboard and mouse input go to the remote machine.
On the A+ Core 2 exam, RDP is the standard answer when a technician or user needs a full Windows desktop on another Windows system. The default port is TCP 3389. Newer versions can also use UDP 3389 to improve performance.
RDP has two sides:
- The client is the computer you sit at. On Windows it is Remote Desktop Connection, started with
mstsc. - The host (or server) is the computer you connect to. It must run a Windows edition that can accept incoming RDP connections.
Home editions of Windows can act as RDP clients but cannot act as hosts. Pro, Enterprise, and Education editions, and Windows Server, can host.
How a session works
When you connect, the host asks for credentials, checks that you are allowed in, and starts a desktop session for you. By default, a normal Windows client allows one interactive session at a time. If someone is signed in at the physical screen of the host, connecting with RDP locks their session and shows you a separate one. Windows Server can host several sessions at once when the right roles and licenses are in place.
Enabling RDP on a host
You can turn RDP on in Settings under System, then Remote Desktop. The older route is System Properties, on the Remote tab. Both set the same option.
Enabling it does two things. It starts accepting connections on port 3389, and it opens the matching Windows Defender Firewall rule. If the connection still fails, check the firewall first.
Not everyone can connect. Members of the local Administrators group can always connect. Other users must be in the Remote Desktop Users group. You can add a user from the Remote Desktop settings page, or from an elevated command prompt:
@echo off
REM Allow a user to connect by RDP (run as administrator)
net localgroup "Remote Desktop Users" jsmith /add
if %ERRORLEVEL% EQU 0 (
echo User added.
) else (
echo Could not add user.
)Replace jsmith with a real account name. For a domain account, use the form DOMAIN\jsmith.
Connecting from the client
To connect from Windows:
- Press Windows+R, type
mstsc, and press Enter. - Enter the host name or IP address in the Computer box.
- Click Show Options to set the user name, display size, and local resources.
- Click Connect and enter the password.
You can also pass options on the command line. This example connects to the host from the SSH chapter's example network in full-screen mode:
mstsc /v:192.168.1.10 /fThe /v option names the host. The /f option starts the session full screen. The option /admin connects to the administrative session on older server versions.
On the Local Resources tab you can share the clipboard, printers, and local drives with the remote session. This is convenient for copying files. It also opens a path for data leaving the remote machine, so turn it off where policy requires.
Clients also exist for macOS, Linux, iOS, and Android. Microsoft publishes the macOS and mobile clients, which connect to a Windows host in the same way.
Connecting across networks
RDP works best on a trusted network. Inside an office LAN, you connect straight to the host's address. From outside, you have three common options:
- Connect through a VPN. The VPN gives you an address on the private network, then you use RDP as normal. This is the preferred approach.
- Use a Remote Desktop Gateway. A gateway server accepts RDP wrapped in HTTPS on TCP 443 and passes it to internal hosts. Only the gateway is exposed.
- Forward port 3389 on the router. This publishes the host to the internet. Avoid it.
Internet-facing RDP is one of the most common ways attackers get into networks. Automated scanners find open port 3389 within hours. Attackers then guess passwords or use stolen credentials, and ransomware crews often start this way.
Securing RDP
Apply these controls on any host that accepts RDP:
- Network Level Authentication (NLA). The user authenticates before a full session is created. This blocks unauthenticated users from using host resources and reduces the effect of some attacks. Leave it enabled.
- Strong passwords and account lockout. A lockout policy slows password guessing.
- Least privilege. Add only the users who need access to Remote Desktop Users. Avoid using shared administrator accounts for daily access.
- Firewall scope. Limit the RDP firewall rule to known addresses, such as the management subnet.
- Patching. RDP has had serious remote-code-execution flaws. Keep the host updated.
- Encryption. RDP encrypts the session, and TLS is used with NLA. Do not click through certificate warnings without checking the host.
- Logging. Review failed sign-in events in the Security log for signs of guessing.
Changing the listening port away from 3389 hides the service from lazy scans only. It is not a real defense.
Common problems and fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| "Remote Desktop can't connect to the remote computer" | RDP is off, or the host is asleep or off | Enable RDP and change the power plan so the host does not sleep |
| Connection times out | Firewall or router blocks TCP 3389, or wrong address | Check the firewall rule, then test the port |
| "The connection was denied because the user account is not authorized for remote login" | User is not in Remote Desktop Users | Add the user to the group |
| Credentials rejected | Wrong password, or NLA cannot reach a domain controller | Re-enter with `DOMAIN\user` and check connectivity |
| Home edition will not accept connections | Home cannot host RDP | Upgrade the edition, or use another tool |
| Slow or choppy display | Low bandwidth, high color depth, heavy visuals | Lower the color depth and turn off wallpaper and animation on the Experience tab |
| Another user is kicked off | Only one interactive session is allowed on a client edition | Tell the user first, or arrange a time |
To test whether the port is reachable from a client, use PowerShell:
# Test whether the RDP port answers on the host
Test-NetConnection -ComputerName 192.168.1.10 -Port 3389If TcpTestSucceeded is True, the network path and the service work, and the problem is likely credentials or permissions. If it is False, look at the firewall, routing, or whether RDP is enabled.
RDP compared with similar tools
| Tool | What you get | Typical use |
|---|---|---|
| RDP | A new, separate Windows desktop session | Managing Windows PCs and servers |
| VNC | A view of the existing screen, on many platforms | Cross-platform screen sharing |
| SSH | Encrypted command line only | Managing Linux and network devices |
| Microsoft Remote Assistance | A shared view of the user's current screen, with their permission | Helping a user at their own desk |
The key point for support work is that RDP does not usually show you what the user sees. It starts its own session and locks the local one. When you must watch the user's problem happen on their own screen, use Remote Assistance or a screen sharing tool instead.
Exam tips
- RDP means Windows desktop, TCP 3389.
- Home editions cannot host. Pro and above can.
- Users need Administrators or Remote Desktop Users membership.
- Do not forward 3389 to the internet. Use a VPN.
mstscstarts the client.
Exercise
A user is working from home and needs to reach the Windows 11 Pro desktop in her office. The office router does not forward any ports. What is the safest way to let her use RDP, and what two things must be true on the office PC?
Show answer
She should connect to the office network over a VPN, then open Remote Desktop Connection (mstsc) and enter the office PC's private address. On the office PC, Remote Desktop must be enabled, and her account must be an administrator or a member of the Remote Desktop Users group. The PC must also be powered on and not asleep, and the firewall rule for TCP 3389 must allow her.
Exercise
A technician tries to RDP into a Windows 11 Home laptop. The connection fails, and Test-NetConnection to port 3389 returns TcpTestSucceeded False. Why, and what are two alternatives?
Show answer
Windows Home cannot host RDP, so nothing listens on port 3389. The technician can upgrade the laptop to Pro, or use another tool such as Microsoft Remote Assistance for a shared view with the user, or a third-party screen sharing tool or VNC server.