Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Remote Access Troubleshooting

Direct answer

Troubleshoot 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.

When to use this

Use this when any remote access method to Windows fails.

First 30 seconds

1. Which method and exact error.

2. Port reachable?

3. User in the allowed group?

4. Event logs for the method.

5. NLA/certificate/keys issues.

Operational verification

port → auth → authorisation → session

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services · Windows PowerShell · Windows Server / Remote Access
Key commandTest-NetConnection <host> -Port <port>
Scope / prerequisiteUse this when any remote access method to Windows fails.
Verify · 2Reference · 1
What next?3 suggested next steps
Catalog command links3
Evidence0
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verify tunnel state, assigned network parameters and the original remote application request Verify boundary

Capture the Remote Access session with tunnel protocol, authenticated identity, assigned VPN address, DNS configuration and effective routes. Expect the session to remain Connected without new authentication/tunnel errors while a controlled ping/TCP or service test reaches the intended internal target through the VPN route. Resolve the original hostname using the expected DNS path and repeat the actual remote application request. A connected VPN session shows tunnel/control-plane establishment, but it does not show DNS selection, route symmetry, firewall policy or application authorization.

Step 2 Branch remote-access failure at transport, authentication, address/route and application path Narrow the fault

If the Remote Access tunnel never establishes, verify internet reachability and the exact IKE/IPsec/SSTP transport plus certificate trust before inspecting internal routes. If transport reaches the server but authentication fails, inspect NPS/RADIUS, certificate/user state and policy result. If the tunnel is Connected but internal resources fail, inspect assigned IP, route table, DNS/NRPT and server forwarding/firewall; test an IP and a hostname separately. If one application alone fails after basic reachability works, move to that service/authorization boundary rather than changing the VPN tunnel.

Step 3 Common mistakes Narrow the fault
  • Not checking the firewall profile.
Key points
  • Test the port before anything else.
  • The right service must be running.
  • Group membership controls who may connect.
Key checks
  • Test-NetConnection <host> -Port 3389 — RDP port
  • Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections — RDP enabled (0)
  • Test-WSMan <host> — WinRM
  • Get-Service sshd — OpenSSH server
ReferenceWhy it matters1 section · depth on demand

Windows remote access spans tunnel establishment, authentication, policy, routes and name resolution

Remote Access Troubleshooting must separate tunnel transport from user/device authentication and from traffic forwarding after the tunnel is up. RRAS/Always On VPN or another Windows remote-access stack can report a connected session while routes, DNS suffix/NRPT, firewall policy or backend reachability still prevent application access. Certificate validation, NPS/RADIUS policy and IP address assignment are separate control boundaries. Record tunnel type, client public/private addresses, assigned VPN address, authentication method and installed routes before disconnecting the failing session.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Check the listener on the target

C:\> qwinsta
 SESSIONNAME       USERNAME     ID  STATE   TYPE   DEVICE
 services                        0  Disc
 console                         1  Conn
 rdp-tcp                     65536  Listen
C:\> netstat -ano | findstr :3389
  TCP    0.0.0.0:3389    0.0.0.0:0    LISTENING    1180
PS C:\> Test-NetConnection rds01 -Port 3389 -InformationLevel Detailed

Microsoft's RDS connectivity guidance walks through the RDP protocol state, the rdp-tcp listener, the self-signed certificate, MachineKeys permissions and the listener port, including another application using the same port.

Error → cause

Client message / codeCauseCheck
0x204 / can't connectPort blocked, listener down, wrong portTest-NetConnection -Port 3389, firewall profile
"The connection was denied because the user account is not authorized"Not in *Remote Desktop Users* / denied by policyLocal group, GPO Allow/Deny log on through Remote Desktop Services
"An authentication error has occurred… CredSSP encryption oracle remediation"Patch level mismatchUpdate both sides
"The remote computer requires Network Level Authentication"NLA required, client cannot do it (local account issues, no DC)Credentials, domain reachability
Certificate warning / name mismatchSelf-signed or wrong certificateDeploy a certificate via GPO or RD Gateway
"No Remote Desktop License Servers available"RDSH licensing grace period endedLicense server and mode configuration
Black screen after logonProfile/shell issue or display driverEvent logs, try mstsc /admin

Event logs on the target

LogContains
Microsoft-Windows-TerminalServices-RemoteConnectionManager/OperationalConnection attempts (event 1149 = network authentication succeeded)
Microsoft-Windows-TerminalServices-LocalSessionManager/OperationalSession logon/logoff/reconnect (21, 23, 24, 25)
Security4624 type 10 (RemoteInteractive), 4625 failures

Event 1149 followed by no 21 means authentication worked but the session did not start — look at profile and Group Policy processing rather than the network.

Hardening while fixing

Keep NLA enabled, restrict RDP to management networks or RD Gateway, and use firewall rules scoped to admin subnets instead of opening 3389 broadly.

*The RDP session and TCP listener entries are illustrative, not observations from an actual remote desktop server.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Method

Remote access troubleshooting covers RDP, VPN (RRAS/Always On VPN) and remote management failures.

Test-NetConnection srv01 -Port 3389
Get-ItemProperty 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name fDenyTSConnections
Get-NetFirewallRule -DisplayGroup 'Remote Desktop' | Select-Object DisplayName, Enabled, Profile
qwinsta /server:srv01
Get-WinEvent -LogName 'Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational' -MaxEvents 20
Get-VpnConnection; Get-WinEvent -LogName Application -MaxEvents 20 | Where-Object ProviderName -eq 'RasClient'
SymptomCheck
RDP connection refusedRDP enabled, firewall, port, NLA requirements
"You don't have permission"Remote Desktop Users / user rights assignment
Session limit reachedDisconnected sessions, RDS licensing
VPN fails to connectCertificates, authentication method, NPS logs, firewall
Black screen after loginGraphics driver, profile issues
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

Authoritative/upstream documentation reviewed for bounded claims in Remote Access → Remote Access Troubleshooting. 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%
Confirmation

Confirm action

Continue?