SMB Shares
Cheat sheet · https://pcornel.dk/topic.php?topic=3313
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— sharesGet-SmbShareAccess <share>— share permissionsicacls <path>— NTFS permissionsGet-FsrmQuota— FSRM quotasGet-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