Use this when installing or reviewing the Windows file server role and its related services.
File Server Role
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.
role → SMB server → shares
Context & applicabilityCommon mistakes · platform/version boundaries
- 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.
Operational reference
Fast context before you go deeper.
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.
- Install only the role services you need.
- SMB settings are server-wide.
- Back up share definitions.
Get-SmbShare— sharesGet-SmbShareAccess <share>— share permissionsicacls <path>— NTFS permissionsGet-FsrmQuota— FSRM quotasGet-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)}}
| Feature | Use | Note |
|---|---|---|
| Hard quota | Stop writes at the limit | Users see "disk full" — announce it |
| Soft quota | Alert only | Good for discovery before enforcing |
| Auto-apply quota | New subfolders get a template automatically | Per-department or per-user folders |
| Active file screen | Block extensions | Extension-based only; renaming bypasses it |
| Passive file screen | Log only | Useful for ransomware canary extensions |
| Storage reports | Large files, duplicates, by owner | Schedule monthly |
Role layout decisions
| Decision | Recommendation |
|---|---|
| Volume for data | Not C:; separate volumes per data class make quotas and restore simpler |
| File system | NTFS when FSRM is needed; ReFS for large VM/backup volumes without FSRM |
| Allocation unit | 4 KB default; 64 KB for large-file workloads |
| Namespace | Publish shares through DFS Namespaces so servers can be replaced without changing paths |
| Deduplication | FS-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.*
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.
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 → 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%