Solved

Quota Management on subfolders (Auto-Apply) W2k3 R2

Posted on 2008-10-20
11
1,746 Views
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:

\\server\users$\%username%\home

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!
0
Comment
Question by:chassouna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
11 Comments
 
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.
0
 

Author Comment

by:chassouna
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.
homefolder-structure.jpg
0
 
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.
0
Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

 

Author Comment

by:chassouna
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.
0
 
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.
0
 
LVL 77

Accepted Solution

by:
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:
http://technet.microsoft.com/en-us/library/cc731290.aspx

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 /?
0
 
LVL 77

Expert Comment

by:Rob Williams
ID: 22919272
ps-
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


0
 

Author Comment

by:chassouna
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!
0
 
LVL 77

Expert Comment

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

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

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…
Here's a look at newsworthy articles and community happenings during the last month.
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

630 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