How to Restrict File Size in a Specific Folder Using FSRM or Other Methods?

Researcher 6 Reputation points
2024-08-06T12:51:25.8133333+00:00

Hello everyone,

I need to restrict the size of every single file that is stored in a specific folder on our File Server. The main objective is to avoid large files being stored and transferred on the network. I've tried using File Screening Management in File Server Resource Manager (FSRM), but it only allows me to put restrictions based on file type and it allows to give a limit to Folder using Quota Template, but this cannot be applied to files.

The actual requirement is to enforce a size restriction on every file in the folder, regardless of the file type. For example, if I set the maximum file size to 5MB, it should check every file being saved, moved, or downloaded into the folder. If a file exceeds 5MB, it should trigger a warning message ideally, if that's not possible , then give a hard limit on the file operation and should not allow operation to succeed.

https://learn.microsoft.com/en-us/windows-server/storage/fsrm/file-screening-management

https://learn.microsoft.com/en-us/windows-server/storage/fsrm/create-quota-template

We use Windows Server 2012R2

Is there any other method to achieve this using FSRM, or another method or tool that can accomplish this? Any guidance or detailed steps would be greatly appreciated!

Thank you!

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,271 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue 37,721 Reputation points Microsoft Vendor
    2024-08-07T01:55:41.8666667+00:00

    Hi,

    I don't think you can limit file size using FSRM. FSRM can only limit the size of a given directory using directory quotas. You can use wildcard in the file extension in file screen, but it prevents users from creating files of the specified types, not limits the file size. Maybe some third-party software can do this, or you may create a script to check the file size.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.