Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

File Server Role

Direct answer

The File Server role (FS-FileServer) lets Windows Server share folders over SMB. Add related services like FSRM, DFS Namespaces, DFS Replication and Data Deduplication as needed.

When to use this

Use this when installing or reviewing the Windows file server role and its related services.

First 30 seconds

1. Get-WindowsFeature FS-FileServer.

2. LanmanServer running.

3. Firewall SMB-In.

4. Related features (FSRM, DFS).

5. Events.

Operational verification

role → SMB server → shares

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Shares on the system drive.
  • Hidden admin shares (C$) used by users.
  • No quotas or file screening, so volumes fill with personal media.
  • Not enabling SMB encryption or signing on sensitive shares.
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
Scope / prerequisiteUse this when installing or reviewing the Windows file server role and its related services.
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
  • Install only the role services you need.
  • SMB settings are server-wide.
  • Back up share definitions.
Key checks
  • Get-SmbShare — shares
  • Get-SmbShareAccess <share> — share permissions
  • icacls <path> — NTFS permissions
  • Get-FsrmQuota — FSRM quotas
  • Get-SmbOpenFile — open files
ReferenceWhy it matters1 section · depth on demand

Installing and sharing

Install-WindowsFeature FS-FileServer, FS-Resource-Manager -IncludeManagementTools
New-SmbShare -Name Data -Path D:\Data -FullAccess "EXAMPLE\FS-Admins" -ChangeAccess "EXAMPLE\Domain Users" -FolderEnumerationMode AccessBased
Set-SmbServerConfiguration -EnableSMB1Protocol $false -RequireSecuritySignature $true

Documented example, not captured output. Consider SMB encryption for sensitive shares (-EncryptData $true).

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Add FSRM controls to a file server

Microsoft describes FSRM as the role service for quotas, file screening, classification, file management tasks and storage reports — supported on NTFS volumes only, not ReFS.

PS C:\> Install-WindowsFeature FS-Resource-Manager -IncludeManagementTools
PS C:\> New-FsrmQuotaTemplate -Name 'Dept 200GB' -Size 200GB -Threshold (New-FsrmQuotaThreshold -Percentage 90 -Action (New-FsrmAction Event -EventType Warning -Body 'Quota [Quota Path] at 90%'))
PS C:\> New-FsrmAutoQuota -Path D:\Shares\Departments -Template 'Dept 200GB'
PS C:\> New-FsrmFileScreen -Path D:\Shares\Users -Template 'Block Audio and Video Files' -Active
PS C:\> Get-FsrmQuota | Select Path, Size, Usage, @{n='Pct';e={[int]($_.Usage/$_.Size*100)}}
FeatureUseNote
Hard quotaStop writes at the limitUsers see "disk full" — announce it
Soft quotaAlert onlyGood for discovery before enforcing
Auto-apply quotaNew subfolders get a template automaticallyPer-department or per-user folders
Active file screenBlock extensionsExtension-based only; renaming bypasses it
Passive file screenLog onlyUseful for ransomware canary extensions
Storage reportsLarge files, duplicates, by ownerSchedule monthly

Role layout decisions

DecisionRecommendation
Volume for dataNot C:; separate volumes per data class make quotas and restore simpler
File systemNTFS when FSRM is needed; ReFS for large VM/backup volumes without FSRM
Allocation unit4 KB default; 64 KB for large-file workloads
NamespacePublish shares through DFS Namespaces so servers can be replaced without changing paths
DeduplicationFS-Data-Deduplication for general file shares; exclude live VMs and databases

Verify the server is healthy

Get-SmbShare (shares and paths), Get-SmbSession (who is connected), Get-SmbOpenFile (locked files), Get-FsrmQuota and the File Server Resource Manager event source in the Application log for quota and screen events.

*The FSRM quota configuration commands above are illustrative examples, not captured from a lab or production system.*

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Method

File Server role setup checklist:

1. Data on separate volumes (not C:), NTFS or ReFS, 64 KB allocation for large-file shares.

2. Folder structure with permissions defined by AD groups (AGDLP), inheritance broken only at top level.

3. Shares with Authenticated Users Full/Change at share level, access-based enumeration on.

4. Shadow copies schedule (e.g. 07:00 and 12:00) with enough shadow storage.

5. Data deduplication for general file data.

6. Backups, auditing of sensitive folders, antivirus exclusions per vendor guidance.

vssadmin add shadowstorage /for=D: /on=D: /maxsize=10%
Enable-DedupVolume -Volume D: -UsageType Default
ReferenceConfiguration & state1 section · depth on demand

Commands

Install-WindowsFeature FS-FileServer
New-SmbShare -Name Projects -Path D:\Shares\Projects -FullAccess "CORP\DL_Projects_Admin" -ChangeAccess "CORP\DL_Projects_Modify" -FolderEnumerationMode AccessBased
Set-SmbShare -Name Projects -EncryptData $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 → File Server Role. 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?