Pcornel
Windows · File Server

SMB Shares

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

Back to the Topic

Answer

SMB shares on a Windows file server publish folders under a share name, such as \\fs01\projects, with share permissions, caching and access-based enumeration settings. Create them with New-SmbShare.

Remember

  • Share name is what users see.
  • Hidden shares end with $.
  • Share settings include caching and encryption.

First checks

  • Get-SmbShare — shares
  • Get-SmbShareAccess <share> — share permissions
  • icacls <path> — NTFS permissions
  • Get-FsrmQuota — FSRM quotas
  • Get-SmbOpenFile — open files

Verify in this order

share definition → path → settings

Where it usually breaks

First mismatch in device/provider → Windows storage mapping/pool → volume/filesystem/encryption → share/namespace/access policy → client/process read-back; 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=3313

Confirmation

Confirm action

Continue?