Use this when any remote access method to Windows fails.
Remote Access Troubleshooting
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.
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.
port → auth → authorisation → session
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Test-NetConnection <host> -Port <port>Primary Commands
Configuration and operational commands for this Topic.
Test-NetConnection <host> -Port <port>ReferenceTest DNS/path/TCP reachability from Windows.
Windows PowerShell · mixedGet-NetTCPConnectionVerifyInspect Windows TCP connection state and endpoints.
Use when: Use after confirming the PowerShell target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows PowerShell · mixedGet-RemoteAccessVerifyOperational command for Inspect Windows Remote Access service state. Focus fields: DA/VPN status, server status, external/internal addresses and configuration state.
Use when: Use when working the canonical Topic windows--remote-access-remote-access-troubleshooting and the matching failure boundary.
Quick note: Known-good: Remote Access reports the expected enabled state and server role configuration. Suspicious: service role/state is stopped, partially configured or differs from the intended VPN/DirectAccess design. Next discriminating check: inspect RemoteAccess/RRAS events plus listener/interface/routing state for the active access method.
Windows Server / Remote Access · serviceVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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.
- Test the port before anything else.
- The right service must be running.
- Group membership controls who may connect.
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
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 / code | Cause | Check |
|---|---|---|
| 0x204 / can't connect | Port blocked, listener down, wrong port | Test-NetConnection -Port 3389, firewall profile |
| "The connection was denied because the user account is not authorized" | Not in *Remote Desktop Users* / denied by policy | Local group, GPO Allow/Deny log on through Remote Desktop Services |
| "An authentication error has occurred… CredSSP encryption oracle remediation" | Patch level mismatch | Update 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 mismatch | Self-signed or wrong certificate | Deploy a certificate via GPO or RD Gateway |
| "No Remote Desktop License Servers available" | RDSH licensing grace period ended | License server and mode configuration |
| Black screen after logon | Profile/shell issue or display driver | Event logs, try mstsc /admin |
Event logs on the target
| Log | Contains |
|---|---|
Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational | Connection attempts (event 1149 = network authentication succeeded) |
Microsoft-Windows-TerminalServices-LocalSessionManager/Operational | Session logon/logoff/reconnect (21, 23, 24, 25) |
| Security | 4624 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.*
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'
| Symptom | Check |
|---|---|
| RDP connection refused | RDP enabled, firewall, port, NLA requirements |
| "You don't have permission" | Remote Desktop Users / user rights assignment |
| Session limit reached | Disconnected sessions, RDS licensing |
| VPN fails to connect | Certificates, authentication method, NPS logs, firewall |
| Black screen after login | Graphics driver, profile issues |
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 → 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%