Windows Server 2016: Enable Quotas on shared folders using File Server Resource Manager

Windows Server 2016: Enable Quotas on shared folders using FSRM
(File Server Resource Manager) 

Metadata:

Domain: mylab.local
IP: 192.168.49.101

// ------------------------------

// Install FSRM on server

1)  [Server Manager - Dashboard] - click on Manage - Click on Add roles and features - under Before you begin - click on Next - under Installation Type, select (x) role-based or feature-based installation - click on Next - under Server Selection ( // select your destination server, E,g: SRT-DC01.mylab.local) , click on (x) Select a server from the server pool, choose your selected server from the Server Pool -  click on Next - under Server Roles, click on File and Storage Services - click on File and iSCSI Services - select (x) File Server Resource Manager -  under Add Roles and Features Wizard, click on Add Features - click on Next - under Features, click on Next - under Confirmation, click on Install - under Results, click on Close .

// -----------------------------


// Create Shared Folder - D:/FOLDER1

2)  [Server Manager - Dashboard] - click on File and Storage Service - click on Shares - under Tasks, click on New Share - under Select Profile, select (x) SMB Share - Quick - click on Next - select (x) Type a custom path, under New Share Wizard, under Select Folder, click on New Folder - input Folder Name ( E.g. FOLDER1 ) - click on Select Folder - the custom path will  be displayed (e.g. D:\FOLDER1) - click on Next - under Share Name, input Share Name as SHARE1 ( // local path to share: - D:\FOLDER1 // Remote path to share:- \\SRT-DC01\SHARE1 ) click on Next - under Other Settings, select (x) Enable access-based enumeration - click on Next - under Permissions, click on Next - under Confirmation, click on Create - under Results, click on Close.

3) [Server Manager - Dashboard] - click on File and Storage Service - click on Shares - you will see a new Share (i.e. Share:- SHARE1 Local Path:- D:\FOLDER1 Protocol:- SMB ) .

// ------------------------------


// Create quota (i.e. Template Name: MYLAB_50MB - Space Limit: 50 MB)

4) [Server Manager - Dashboard] - click on Tools - click on File Server Resource Manager - under File Server Resource Manager, click on Quota Management - under Quota Templates - under Actions, click on Quota Templates - under Create Quota Templates, input: 100MB (i.e. Copy properties from quota template (optional) - input: MYLAB_50MB (i.e. Template Name) - input: Test Template (i.e. Description) - under Space Limit, input: 50 MB (i.e. Limit) - select (x) Hard quota: Do not allow users to exceed limit -

(a) under Notification Threshold, click on Add - under Generate notifications when usage reaches (%), input 75 - click on Event Log - select (x) Send warning to event log - click on OK -


(b) under Notification Threshold, click on Add - under Generate notifications when usage reaches (%), input 95 - click on Event Log - select (x) Send warning to event log - click on OK -


under Create Quota Template, click on Ok - under Quota Management, under Quota Templates,  you will see: Quota Template: MYLAB_50MB Limit: 50.0MB Quota Type: Hard -

5) [Server Manager - Dashboard] - click on Tools - click on File Server Resource Manager - under File Server Resource Manager, click on Quota Management - click on Quotas - under Actions, click on Create Quotas - under Quota Path, input D:/FOLDER1, select (x) Create quota on path - select (x) Derive properties from this quota template (recommended), select MYLAB_50MB - click on Create.

6) [Server Manager - Dashboard] - click on Tools - click on File Server Resource Manager - under File Server Resource Manager, click on Quota Management- click on Quotas - you will see: Source Template: MYLAB_50MB  (1 item) , Quota Path: D:\FOLDER1,  % Used: 0%, Limit: 50.0 MB, Quota Type: Hard,  Source Template: MYLAB_50MB - Match Template: Yes .

// -------------------------------

// To test if the quota works

7) Login to a workstation on the domain - RUN:- \\192.168.49.101 (UNC path) - under Network > 192.168,49.101 > share1 - copy files from C:\ into share1 & see if you get this warning: There is not enough space on share1 (if the files copied from C:\ exceeds 50 MB). 

8) (On FSRM Server) [Server Manager - Dashboard] - click on Tools - click on Event Viewer - click on Custom Views - click on Administrative Events - you should see Warning Source: SRMSVC (double-click on it) - you should see the general & detailed info on the warning message.

Comments