Use this when listing or managing SMB shares.
SMB Shares · SMB
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.
1. Get-SmbShare -Name <share> | fl *.
2. Share permissions: Get-SmbShareAccess.
3. NTFS on the path: icacls.
4. Create: New-SmbShare -Name x -Path D:\x -ChangeAccess 'DOMAIN\Group'.
5. Access-based enumeration if needed.
share → path → share permissions → NTFS permissions
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
- Share permission Everyone Full with no NTFS restrictions.
- Hidden
$shares mistaken for security.
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.
- Access is the combination of share and NTFS permissions.
- Shares ending in $ are hidden.
- Encryption can be set per share.
Get-SmbShare— shares on the serverGet-SmbSession / Get-SmbOpenFile— sessions and open filesGet-SmbConnection— client connections and dialectGet-SmbServerConfiguration— server settings (signing, encryption, SMB1)Test-NetConnection <server> -Port 445— SMB port reachability
ReferenceWhy it matters1 section · depth on demand
What it is
An SMB share publishes a folder over the network under a share name. Each share has share-level permissions (Read/Change/Full Control), while the folder underneath keeps its NTFS permissions; the effective access is the most restrictive of the two. Options such as access-based enumeration, caching (offline files) and encryption are set per share.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Creating and managing SMB shares:
New-SmbShare -Name Projects -Path D:\Shares\Projects -FullAccess 'CORP\FS-Admins' -ChangeAccess 'CORP\Projects-RW' -ReadAccess 'CORP\Projects-RO' -FolderEnumerationMode AccessBased -CachingMode None
Get-SmbShare | ft Name,Path,FolderEnumerationMode,CachingMode,EncryptData,CurrentUsers
Set-SmbShare -Name Projects -EncryptData $true
Remove-SmbShare -Name OldShare -Force
Caching mode None disables Offline Files for that share; Documents (default manual) allows users to make files available offline.
Commands
Get-SmbShare
New-SmbShare -Name Finance -Path D:\Shares\Finance -FullAccess 'CORP\Domain Admins' -ChangeAccess 'CORP\Finance'
Get-SmbShareAccess -Name Finance
Set-SmbShare -Name Finance -FolderEnumerationMode AccessBased
Documented example, not captured output.
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 SMB → 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/smb-overview · confidence 94%