Specify default quota limit and warning level: registry value Limit and 3 moreComputerHKLM\Software\Policies\Microsoft\Windows NT\DiskQuota
- Policy ID
- DQ_Limit
- Scope
- Computer Configuration
- Supported on
- At least Windows 2000
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- System › Disk Quotas
Registry
Limit
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Value
- Value type
- REG_DWORD
- Client extension
- {3610eda5-77ef-11d2-8dc5-00c04fa31a66}
- Required
- true
- Maximum value
- 1000
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "Limit"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "Limit" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'Limit' -PropertyType DWord -Value '<enter value>' -Force | Out-Null
LimitUnits
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Units
| Item | Stored value |
|---|---|
| KB | 1 |
| MB | 2 |
| GB | 3 |
| TB | 4 |
| PB | 5 |
| EB | 6 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota] ; Options (use only one) ; KB "LimitUnits"=dword:00000001 ; MB "LimitUnits"=dword:00000002 ; GB "LimitUnits"=dword:00000003 ; TB "LimitUnits"=dword:00000004 ; PB "LimitUnits"=dword:00000005 ; EB "LimitUnits"=dword:00000006
CMD
:: Options (use only one) :: KB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "LimitUnits" /t REG_DWORD /d 1 /f :: MB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "LimitUnits" /t REG_DWORD /d 2 /f :: GB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "LimitUnits" /t REG_DWORD /d 3 /f :: TB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "LimitUnits" /t REG_DWORD /d 4 /f :: PB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "LimitUnits" /t REG_DWORD /d 5 /f :: EB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "LimitUnits" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Force | Out-Null # Options (use only one) # KB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'LimitUnits' -PropertyType DWord -Value 1 -Force | Out-Null # MB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'LimitUnits' -PropertyType DWord -Value 2 -Force | Out-Null # GB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'LimitUnits' -PropertyType DWord -Value 3 -Force | Out-Null # TB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'LimitUnits' -PropertyType DWord -Value 4 -Force | Out-Null # PB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'LimitUnits' -PropertyType DWord -Value 5 -Force | Out-Null # EB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'LimitUnits' -PropertyType DWord -Value 6 -Force | Out-Null
Threshold
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Value
- Value type
- REG_DWORD
- Client extension
- {3610eda5-77ef-11d2-8dc5-00c04fa31a66}
- Required
- true
- Maximum value
- 1000
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "Threshold"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "Threshold" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'Threshold' -PropertyType DWord -Value '<enter value>' -Force | Out-Null
ThresholdUnits
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Units
| Item | Stored value |
|---|---|
| KB | 1 |
| MB | 2 |
| GB | 3 |
| TB | 4 |
| PB | 5 |
| EB | 6 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota] ; Options (use only one) ; KB "ThresholdUnits"=dword:00000001 ; MB "ThresholdUnits"=dword:00000002 ; GB "ThresholdUnits"=dword:00000003 ; TB "ThresholdUnits"=dword:00000004 ; PB "ThresholdUnits"=dword:00000005 ; EB "ThresholdUnits"=dword:00000006
CMD
:: Options (use only one) :: KB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "ThresholdUnits" /t REG_DWORD /d 1 /f :: MB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "ThresholdUnits" /t REG_DWORD /d 2 /f :: GB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "ThresholdUnits" /t REG_DWORD /d 3 /f :: TB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "ThresholdUnits" /t REG_DWORD /d 4 /f :: PB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "ThresholdUnits" /t REG_DWORD /d 5 /f :: EB reg add "HKLM\Software\Policies\Microsoft\Windows NT\DiskQuota" /v "ThresholdUnits" /t REG_DWORD /d 6 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Force | Out-Null # Options (use only one) # KB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'ThresholdUnits' -PropertyType DWord -Value 1 -Force | Out-Null # MB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'ThresholdUnits' -PropertyType DWord -Value 2 -Force | Out-Null # GB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'ThresholdUnits' -PropertyType DWord -Value 3 -Force | Out-Null # TB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'ThresholdUnits' -PropertyType DWord -Value 4 -Force | Out-Null # PB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'ThresholdUnits' -PropertyType DWord -Value 5 -Force | Out-Null # EB New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota' -Name 'ThresholdUnits' -PropertyType DWord -Value 6 -Force | Out-Null