Pcornel
Windows · Remote Access

Remote Access Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3125

Back to the Topic

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.

Remember

  • Test the port before anything else.
  • The right service must be running.
  • Group membership controls who may connect.

First 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

Commands

Test-NetConnection <host> -Port <port>
Test DNS/path/TCP reachability from Windows.
Get-NetTCPConnection
Inspect Windows TCP connection state and endpoints.
Get-RemoteAccess
Operational command for Inspect Windows Remote Access service state. Focus fields: DA/VPN status, server status, extern…

Verify in this order

port → auth → authorisation → 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=3125

Confirmation

Confirm action

Continue?