Remote Access
Windows remote access covers Remote Desktop (RDP), Remote Assistance, PowerShell Remoting over WinRM, and the built-in OpenSSH client and server for managing machines over the network.
1. Which method: RDP, PowerShell remoting, SSH, Remote Assistance?
2. Port reachable (3389/5985/22).
3. Allowed users/groups for that method.
4. NLA/TLS/MFA via gateway.
5. Test login.
client → port → authentication → session
Context & applicabilityCommon mistakes · platform/version boundaries
- RDP exposed directly to the internet.
- Third-party remote tools installed ad hoc (often abused by attackers).
- Remote access without MFA.
- Remote support sessions not logged.
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Remote Desktop lets users log on to a Windows computer's desktop over the network.
Subtopic RDPRDP (Remote Desktop Protocol) carries a Windows desktop session over TCP and UDP 3389.
Subtopic Remote AssistanceRemote Assistance lets a helper view or control a user's session after the user sends an invitation or accepts an offer, for support rather than administration.
Subtopic PowerShell RemotingPowerShell Remoting runs commands on remote computers over WinRM or SSH with Enter-PSSession for interactive sessions and Invoke-Command for one or many machines.
Subtopic WinRMWinRM is Microsoft's WS-Management service used by PowerShell Remoting, listening on 5985 (HTTP) and 5986 (HTTPS).
Subtopic OpenSSH ServerOpenSSH Server is an optional Windows feature (Add-WindowsCapability -Name OpenSSH.Server) providing sshd for secure remote shells and file transfer.
Subtopic SSH ClientThe built-in Windows SSH client (ssh.exe) connects to Linux and network devices and Windows OpenSSH servers, supports keys created with ssh-keygen and reads its config from %USERPROFILE%\.ssh\config.
Subtopic Remote Access TroubleshootingTroubleshoot Windows remote access by checking the port is reachable (Test-NetConnection -Port 3389, 5985 or 22), the service is running, firewall rules, group membership such as Remote Desktop Users, NLA and certificates.
- Never expose RDP directly to the internet.
- WinRM and RDP use different ports.
- Group membership controls remote access.
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
ReferenceWhy it matters1 section · depth on demand
Remote access options
| Method | Port | Use |
|---|---|---|
| RDP | TCP/UDP 3389 | Desktop sessions |
| PowerShell Remoting (WinRM) | 5985 / 5986 | Remote management |
| SSH (OpenSSH Server) | 22 | Scripted access, cross-platform |
| Windows Admin Center | 443 | Web-based server management |
| Remote Assistance / Quick Assist | — | Helpdesk support |
Never expose RDP directly to the internet; use VPN, RD Gateway or ZTNA with MFA.
ReferenceImportant terms & boundaries2 sections · depth on demand
Options compared
| Option | Use |
|---|---|
| RDP via RD Gateway | Full desktop over HTTPS 443 with MFA |
| Azure Virtual Desktop / Windows 365 | Cloud-hosted desktops |
| Always On VPN | Device and user tunnels |
| Entra application proxy | Publish internal web apps |
| Windows Admin Center | Browser-based server management |
In depth
Remote management options for Windows:
| Method | Port | Use |
|---|---|---|
| RDP | TCP/UDP 3389 | Interactive desktop |
| PowerShell remoting (WinRM) | 5985/5986 | Scripted administration |
| OpenSSH | 22 | Shell/PowerShell over SSH, SCP/SFTP |
| Windows Admin Center | 443 (gateway) | Browser-based server management |
| MMC/RPC (Computer Management etc.) | 135 + dynamic | Legacy tools |
| Out-of-band (iDRAC/iLO) | 443 | Hardware console |
Expose none of them directly to the internet; use VPN, RD Gateway or a bastion with MFA.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Remote Access. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/ · confidence 94%