Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Access-Based Enumeration

Direct answer

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.

When to use this

Use this when users should only see folders they can open in a file share.

First 30 seconds

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.

Operational verification

ABE hides folders without read access

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Limits
  • 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).
Platform / version applicability
Windows storage and file services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows storage and file services
Key commandGet-SmbShare Projects | Select Name,FolderEnumerationMode
Scope / prerequisiteUse this when users should only see folders they can open in a file share.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

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.

observation · 1
Key points
  • Access-based enumeration hides items; it does not secure them.
  • NTFS permissions still decide access.
  • It adds a small cost on large folders.
Key checks
  • Get-SmbShare — shares
  • Get-SmbShareAccess <share> — share permissions
  • icacls <path> — NTFS permissions
  • Get-FsrmQuota — FSRM quotas
  • Get-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows storage and file services current

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%
Confirmation

Confirm action

Continue?