Written by Tom on Tuesday 12/12/06
I have had troubles implementing disk quotas. I believe it has to do with Group Policy Objects (GPO). The school I work at is running Win Server 2003. One of the main jobs of an IT manager is the limiting of hard disk space on the server. Here’s what I call ‘Toms first law of Hard Drives: That whatever disk space made available will be used.’
The issue is that when I went to set up Disk Quotas on the HD containing our data via ‘HD->Properties->Quota the’
‘Enable Quota Management’ and ‘Deny disk space to users exceeding quota limit’
check boxes where grayed out even though I am logged on as Administrator.
So I enabled ‘Enable disk quota’, ‘Enforce disk quota limit 1 GB’
and ‘Default quota limit and warning level 0.9 GB’ via the GPO.
Then logged on to a client PC and the HD on the client PC was been limited to 1 GB
this was not the effect I wanted and caused all sorts of pain. So I disabled the above GPO settings.
After a lot of googling I found a solution.
A vb script from here.
' only dis/enables D:
' to disable Const ENFORCE_QUOTAS = 0
Const ENFORCE_QUOTAS = 2
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\\\\\\" & strComputer & "\\\\root\\\\cimv2")
Set colDisks = objWMIService.ExecQuery _
("Select * from Win32_QuotaSetting Where VolumePath = 'D:\\\\\\\\'")
For Each objDisk in colDisks
objDisk.DefaultLimit = 1000000000 'bytes
objDisk.DefaultWarningLimit = 900000000 'bytes
objDisk.State = ENFORCE_QUOTAS
This enables disk quotas, sets default limit and set default warning limits on the D drive in this instance
I still think there is a GPO problem but don’t have the energy to sort it out as the above works.