Pcornel
Windows · SMB

SMB Shares

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

Back to the Topic

Answer

SMB shares are folders a Windows machine publishes over SMB, listed with Get-SmbShare or net share. Each has share permissions, caching and encryption settings, on top of NTFS permissions.

Remember

  • Access is the combination of share and NTFS permissions.
  • Shares ending in $ are hidden.
  • Encryption can be set per share.

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

share → path → share permissions → NTFS permissions

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

Confirmation

Confirm action

Continue?