If you have file servers, you most likely run user quotas. Not running quotas would allow users to quickly fill up the entire drive. Quota’s are no guarantee of smooth sailing though. One of our file servers got down to 10% free space. In the same way that Social Security over promises benefits, we over allocated quotas. Too many users and not enough pie! There has to be a better way to manage the File Server Resource Manager quota email because it has some problems that I didn’t like.

With a bit of PowerShell – that old report can be extended. Here is how I wanted to extend it:

Be able to clearly see what users were at a warning limit (and to be able to lower/raise) the reporting level

$body="You are receiving this email because your U drive is nearly full. The attached document ($Name.TXT) lists your 30 largest files. If these files are not needed, please delete them and empty your Recycle Bin."

Be sure to change anything in all CAPS to fit your environment. EX: “DIRECTORY” to “\\SERVER\SHARE\”

While we attach the largest 30 files that belong to a user, we also attach a second PowerPoint that shows how to find other large files/unused files. If you are interested in that PowerPoint, you can download it from here.