How to Set Up File Server Resource Manager (FSRM) on Windows Server 2012 R2

File Server Resource Manager (FSRM) is a Windows Server 2012 R2 role service that provides granular control over file storage through disk quotas, file screening, storage reports, and classification rules. FSRM enables administrators to enforce storage policies that prevent individual users or departments from consuming disproportionate disk space, block prohibited file types from being stored on company servers, and generate automated reports on storage usage trends. This guide covers full FSRM deployment including quota templates, hard and soft quotas, file screen templates, email notifications, and scheduled report generation.

Prerequisites

Windows Server 2012 R2 with the File and Storage Services role installed. Administrator privileges are required. An SMTP server must be available and reachable if email notifications are to be used. Plan quota limits and file screening policies before deployment by reviewing current storage usage and business requirements.

Step 1: Install File Server Resource Manager

Install FSRM via PowerShell:

Install-WindowsFeature FS-Resource-Manager -IncludeManagementTools

Verify installation and open the FSRM management console:

Get-WindowsFeature FS-Resource-Manager
fsrm.exe

Alternatively, launch the console from Server Manager → Tools → File Server Resource Manager.

Step 2: Configure Email Notification Settings

Before creating quotas and file screens, configure the SMTP settings FSRM uses to send alert emails. In the FSRM console, right-click File Server Resource Manager (Local) and select Configure Options. On the Email Notifications tab, enter your SMTP server address and the default From and To addresses.

Configure via PowerShell:

Set-FsrmSetting -SmtpServer "smtp.yourdomain.com" -AdminEmailAddress "[email protected]" -FromEmailAddress "[email protected]"

# Send a test email to verify configuration
Send-FsrmTestEmail -ToEmailAddress "[email protected]"

Step 3: Create Quota Templates

Quota templates define reusable quota policies that can be applied to multiple paths. Create a standard user home directory quota template:

New-FsrmQuotaTemplate -Name "User Home 10GB" -Description "10GB home directory quota with warnings" -Size 10GB -SoftLimit:$false -Threshold @(
    New-FsrmQuotaThreshold -Percentage 80 -Action @(
        New-FsrmAction -Type Email -MailTo "[Admin Email]" -MailCc "[Quota User]" -Subject "Warning: Quota at 80% on [Quota Path]" -Body "User [Source Io Owner] has used [Quota Used Percent] of their quota on [Quota Path]. Current usage: [Quota Used]."
    ),
    New-FsrmQuotaThreshold -Percentage 95 -Action @(
        New-FsrmAction -Type Email -MailTo "[Admin Email]" -MailCc "[Quota User]" -Subject "ALERT: Quota at 95% on [Quota Path]" -Body "URGENT: User [Source Io Owner] has nearly exhausted their quota."
    ),
    New-FsrmQuotaThreshold -Percentage 100 -Action @(
        New-FsrmAction -Type Email -MailTo "[Admin Email]" -Subject "QUOTA EXCEEDED on [Quota Path]" -Body "Quota limit has been reached on [Quota Path]."
    )
)

Create a department share quota with a soft limit (allows overage with warning):

New-FsrmQuotaTemplate -Name "Department Share 100GB Soft" -Description "100GB soft quota for department shares" -Size 100GB -SoftLimit:$true

Step 4: Apply Quotas to Folder Paths

Apply a quota directly to a folder:

# Apply 10GB hard quota to a user's home directory
New-FsrmQuota -Path "D:UserHomesjsmith" -Template "User Home 10GB"

# Apply quota to all existing user home directories using auto-apply quota
New-FsrmAutoQuota -Path "D:UserHomes" -Template "User Home 10GB" -Disabled $false

The auto-apply quota automatically applies the quota template to all existing and future subdirectories of the specified path. This is ideal for user home directory shares where each subdirectory represents one user.

View all configured quotas and their current usage:

Get-FsrmQuota | Select-Object Path, Size, Usage, PeakUsage, SoftLimit | Format-Table -AutoSize

Step 5: Create File Screen Templates

File screens prevent specific file types from being stored on server shares. Create a file group for prohibited file types first:

# Create file group for executable and script files
New-FsrmFileGroup -Name "Executable Files" -IncludePattern @("*.exe","*.com","*.bat","*.cmd","*.msi","*.vbs","*.ps1","*.scr")

# Create file group for audio/video files to keep off file server shares
New-FsrmFileGroup -Name "Media Files" -IncludePattern @("*.mp3","*.mp4","*.avi","*.mkv","*.mov","*.wav","*.flac","*.wmv")

Create a file screen template using these file groups:

New-FsrmFileScreenTemplate -Name "Block Executables" -Description "Block executable files on file shares" -Active:$true -IncludeGroup @("Executable Files") -Notification @(
    New-FsrmAction -Type Email -MailTo "[Admin Email]" -MailCc "[Source Io Owner Email]" -Subject "Blocked file: [Source File Path]" -Body "User [Source Io Owner] attempted to save a blocked file type to [File Screen Path]. File: [Source File Path]"
)

Step 6: Apply File Screens to Shares

Apply file screen templates to specific share paths:

# Apply executable block to the company file share
New-FsrmFileScreen -Path "D:CompanyShares" -Template "Block Executables"

# Apply media file block to project shares
New-FsrmFileScreen -Path "D:ProjectShares" -Template "Block Executables" -IncludeGroup @("Executable Files","Media Files")

# View all configured file screens
Get-FsrmFileScreen | Select-Object Path, MatchesTemplate | Format-Table -AutoSize

Step 7: Configure Storage Reports

FSRM generates automated storage reports that provide insight into disk usage trends, largest files, and file type distribution:

# Create a scheduled storage report task
New-FsrmStorageReport -Name "Weekly Storage Report" -Namespace @("D:") -ReportType @("LargeFiles","FilesbyOwner","DuplicateFiles","QuotaUsage") -Schedule (New-FsrmScheduledTask -Weekly -DaysOfWeek Sunday -Time "06:00") -MailTo "[email protected]" -Format HTML

Run an immediate on-demand storage report:

Start-FsrmStorageReport -Name "Weekly Storage Report"

Check the status and output location of generated reports:

Get-FsrmStorageReport -Name "Weekly Storage Report" | Select-Object Name, Status, LastGeneratedReportPath

Step 8: Monitor Quota Events

FSRM logs quota events to the Application event log. Monitor for quota violations and file screen events:

Get-WinEvent -LogName Application | Where-Object {$_.ProviderName -eq "SRMSVC"} | Select-Object TimeCreated, LevelDisplayName, Message | Format-List | More

Check quota usage across all paths and identify approaching limits:

Get-FsrmQuota | Where-Object {$_.PeakUsagePercent -gt 80} | Select-Object Path, Size, Usage, PeakUsagePercent | Sort-Object PeakUsagePercent -Descending | Format-Table -AutoSize

Summary

File Server Resource Manager on Windows Server 2012 R2 provides essential storage governance capabilities for file server environments. Through quota templates, auto-apply quotas, file screening, and automated storage reports, FSRM enforces storage policies that prevent runaway disk consumption, block prohibited file types at the server level, and give administrators clear visibility into how storage is being used. Combined with regular review of FSRM reports and proactive email notifications, FSRM significantly reduces storage management overhead while improving compliance with data governance policies.