Pcornel
Windows · SMB

SMB Client

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

Back to the Topic

Answer

The SMB client (LanmanWorkstation) connects Windows to file shares. Map drives with net use or New-SmbMapping and inspect connections and dialects with Get-SmbConnection.

Remember

  • The SMB client runs as the LanmanWorkstation service.
  • Dialect is negotiated with each server.
  • Mapped drives are per user session.

First checks

  • Get-SmbShare — shares on the server
  • Get-SmbSession / Get-SmbOpenFile — sessions and open files
  • Get-SmbConnection — client connections and dialect
  • Get-SmbServerConfiguration — server settings (signing, encryption, SMB1)
  • Test-NetConnection <server> -Port 445 — SMB port reachability

Verify in this order

client resolves name → 445 → auth → share

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=3108

Confirmation

Confirm action

Continue?