Use this when users should only see folders they can open in a file share.
Access-Based Enumeration
Access-based enumeration hides files and folders in a share from users who have no permission to read them, so users only see what they can open. Enable it per share in Server Manager or with Set-SmbShare.
1. Get-SmbShare <s> | Select FolderEnumerationMode = AccessBased?
2. Enable: Set-SmbShare -FolderEnumerationMode AccessBased.
3. Users see only folders they can read.
4. Not a security control by itself.
5. Test as user.
ABE hides folders without read access
Context & applicabilityCommon mistakes · platform/version boundaries
- ABE hides folders in listings, but users with the path can still try to open them — permissions still decide access.
- Large folders with many items slow enumeration with ABE enabled.
- DFS namespaces need ABE enabled on the namespace too (
Set-DfsnRoot -EnableAccessBasedEnumeration $true).
Operational reference
Fast context before you go deeper.
Get-SmbShare Projects | Select Name,FolderEnumerationModeEvidence · 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-based enumeration hides items; it does not secure them.
- NTFS permissions still decide access.
- It adds a small cost on large folders.
Get-SmbShare— sharesGet-SmbShareAccess <share>— share permissionsicacls <path>— NTFS permissionsGet-FsrmQuota— FSRM quotasGet-SmbOpenFile— open files
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Access-Based Enumeration hides files and folders that a user has no Read permission to when listing a share. It reduces confusion and information leakage (folder names) but does not change access itself.
Set-SmbShare -Name Projects -FolderEnumerationMode AccessBased
Get-SmbShare | ft Name,FolderEnumerationMode
For DFS namespaces, enable ABE on the namespace too (Set-DfsnRoot -EnableAccessBasedEnumeration $true) and set folder target permissions accordingly. ABE adds CPU cost on folders with very many entries.
ReferenceConfiguration & state2 sections · depth on demand
Enabling ABE
Set-SmbShare -Name Data -FolderEnumerationMode AccessBased
Documented example, not captured output. Users see only folders they have at least Read permission on. It hides names but is not a security control by itself (NTFS permissions still decide access). Large shares with many folders may list slower.
Commands
Set-SmbShare -Name Projects -FolderEnumerationMode AccessBased
Get-SmbShare Projects | Select Name,FolderEnumerationMode
Set-DfsnRoot -Path \\corp.local\files -EnableAccessBasedEnumeration $true
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 File Server → Access-Based Enumeration. 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%