Pcornel
Windows

Remote Access

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

Back to the Topic

Answer

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.

Remember

  • Never expose RDP directly to the internet.
  • WinRM and RDP use different ports.
  • Group membership controls remote access.

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

Verify in this order

client → port → authentication → 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=3117

Confirmation

Confirm action

Continue?