Pcornel
Windows

SMB

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

Back to the Topic

Answer

SMB is the Windows file and printer sharing protocol. SMB 3 adds encryption, signing, multichannel and transparent failover; SMB1 is obsolete and should be disabled.

Remember

  • SMB1 is obsolete and should be disabled everywhere.
  • Connecting by name allows Kerberos; by IP address forces NTLM.
  • Signing or encryption mismatches block older NAS and printers.

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

Commands

New-SmbShare
Create an SMB share.
Get-SmbSession
Display open SMB sessions on a Windows server.

Verify in this order

client → TCP 445 → negotiate dialect → authenticate → tree connect → file access

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

Confirmation

Confirm action

Continue?