Use this when creating or reviewing SMB shares on a Windows file server.
SMB Shares · File Server
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.
1. Get-SmbShare <name> | fl *.
2. Caching, ABE, encryption settings.
3. Path exists.
4. Create with New-SmbShare.
5. Test UNC.
share definition → path → settings
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Granting permissions to users instead of groups.
- Continuous availability shares used for user data (meant for Hyper-V/SQL).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Share name is what users see.
- Hidden shares end with $.
- Share settings include caching and encryption.
Get-SmbShare— sharesGet-SmbShareAccess <share>— share permissionsicacls <path>— NTFS permissionsGet-FsrmQuota— FSRM quotasGet-SmbOpenFile— open files
ReferenceWhy it matters1 section · depth on demand
What it is
On a file server, a share is the network entry point to a folder. Good practice is one share per department or application, share permissions broad (Authenticated Users: Change or Full), and the real access control done with NTFS permissions and AD groups. Access-based enumeration hides folders a user cannot open.
ReferenceImportant terms & boundaries2 sections · depth on demand
Commands
Get-SmbShare | Where Special -eq $false
Get-SmbShareAccess -Name Finance
(Get-Acl D:\Shares\Finance).Access | Select IdentityReference,FileSystemRights
In depth
Share creation on file servers (beyond basic New-SmbShare): set caching for offline files, encryption for sensitive shares, and continuous availability for clustered application shares.
New-SmbShare -Name HR$ -Path E:\Shares\HR -FullAccess 'CORP\FS-Admins' -ChangeAccess 'CORP\HR-RW' -EncryptData $true -FolderEnumerationMode AccessBased -CachingMode None
Get-SmbShare HR$ | Get-SmbShareAccess
Get-SmbOpenFile | Group-Object ClientUserName | Sort Count -Desc | Select -First 10
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in File Server → SMB Shares. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/file-server/ · confidence 94%