Quota Management on subfolders (Auto-Apply) W2k3 R2

Posted on 2008-10-20
Last Modified: 2012-05-05
Dear Experts
We are looking for a solution to manage the user home disk quotas on a W2k3 R2 File Server. Actually, we auto-apply quotas on f:\users\* (where * is the username) with the R2 built-in Management Tools. Our file structure looks like this:


The home folder path in the users' AD objects refer to this path. Now we want to set the quota directly on the folder "home", not the folder with the username, because besides the "home" folder, there are folders which the users must not see and on this folders, no quotas should be applied. Is there a possibility with wildcards (e.g. \\server\users$\*\home)?

Thanks for assistance!
Question by:chassouna
  • 6
  • 3
LVL 77

Expert Comment

by:Rob Williams
ID: 22843803
Are you saying you currently have disk quotas configured for a folder? Disk quotas in a windows environment can only be enabled on an entire disk and configured per user.
Perhaps I have mis-understood.

Author Comment

ID: 22865004
I attached an image of the folder structure for you for better understanding.

Currently, quotas are defined on the user's directory (marked red). This was easy with the auto-apply function of the W2k3 R2 "File Server Resource Manager" (there you can define that quotas should be applied on every subfolder in a folder, as in the attached image, the folder "HomeFolderShare")

But, we want them to be configured on the folder "home" in the user's folder. That's the path the home drive connects to. The other folders under the user's folder are for temporary program files and administrative purposes. The quota should no applied there.

Thank you.
LVL 77

Expert Comment

by:Rob Williams
ID: 22883194
Perhaps there is a new feature that I am not aware of, but quotas are applied to an entire drive and entries are made for each user (rather than folder) such as User1, User2, and so forth. This limits the amount of data any user can place anywhere on that driver, within any folder. I was not aware there were any new Microsoft options to limit quotas by folders.
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.


Author Comment

ID: 22883387
There IS the possibility of defining quotas on folders. The W2k3 R2 built-in tool "File Server Resource Manager" even allows you to auto-apply quotas on subfolders. So we defined "x:\HomeFolderShare\*" where the wildcard * stands for every subfolder in it, in our case user1, user2, and so on. But we want them to be configure like this: "x:\HomeFolderShare\*\home". The quotas should only be applied on the folder "home" in every user's folder.
LVL 77

Expert Comment

by:Rob Williams
ID: 22885619
I am quite embarrassed to say I have never seen that feature (reading about it now). I jut tried adding the console but it requires the CD and I do not have it here on this site. I will install tonight and see if I may be of any help tomorrow.
Again my apologies and thank you for pointing it out.
LVL 77

Accepted Solution

Rob Williams earned 500 total points
ID: 22919212
Sorry, I had to go out of town for a few days.
I have installed the add-on (very useful), created a duplicate file structure, and tried numerous options. I would have to conquer with your findings. There is no way to create a wildcard at the folder level to apply the quotas in the manor you described. It can only be done on a folder by folder basis.

However, there is also a command line tool dirquota.exe that will allow you to create the quotas. This is installed along with the "file Server Management" tools. Unfortunately the full documentation for this has not even been released as of yet:

I am afraid I have not worked with the command line tool and although I write some basic scripts, it is not a strong point of mine. I am sure though that if you were to post a question in the DOS or VBS scripting forums they could write a simple script that would run through all user directories and set the quotas for your home folders, substituting the "variable" with each loop, using the following plus the options/switches you choose:
dirquota.exe  quota  add  /Path:\\server\users$\%variable%\home  /limit:500mb
Though this would work well and be relatively simple, you would have to re-run if you added a new user.

You can see the options/switches available by running from a command line:
dirquota.exe quota add /?
or the additional basic commands with:
dirquota.exe /?
LVL 77

Expert Comment

by:Rob Williams
ID: 22919272
If you don't have too many users you could write a simple batch file to set the quota for a given users.
For example the batch file below could be named SetQ, and to set the quota for a new user just enter at a command line (assuming the batch file contains your quota specifications):    
  SetQ  User1

:: Batch file to set quota for user %1
dirquota.exe  quota  add  /Path:D:\users$\%1\home  /limit:500mb


Author Comment

ID: 22919671
I hoped that there is a way to automatically set the quotas on subfolders in the user's folder. But I think I will write a batch or VB script that comes out with dirquota.exe. This script must then also be integrated in the user account lifecycle process... Not sure about how I will do that exactly.

Many thanks for your engagement!
LVL 77

Expert Comment

by:Rob Williams
ID: 22921127
Thanks chassouna. Good luck with it.
Cheers !

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Having difficulty adding an additional domain controller 11 38
Domain Logon scripts 14 49
Domain trust created by PDC name 6 39
exchange, active directory 3 28
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question