RDP
Cheat sheet · https://pcornel.dk/topic.php?topic=3119
Answer
RDP (Remote Desktop Protocol) carries a Windows desktop session over TCP and UDP 3389. Protect it with Network Level Authentication, MFA or a gateway, and never expose it directly to the internet.
Remember
- Network Level Authentication authenticates before the session starts.
- Use MFA or an RD Gateway; never expose 3389 directly.
- RDP uses TCP and UDP 3389.
First checks
Test-NetConnection <host> -Port 3389— RDP portGet-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections— RDP enabled (0)Test-WSMan <host>— WinRMGet-Service sshd— OpenSSH server
Verify in this order
TCP 3389 → TLS → CredSSP/NLA → session
Where it usually breaks
First mismatch in host/interface identity → local config/routing/name state → Windows service/provider → firewall/security/session → remote service → application-visible exchange; preserve identity/native error/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3119