Limit profile size: registry value EnableProfileQuota and 5 moreUserHKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System

Policy ID
LimitSize
Scope
User Configuration
Supported on
At least Windows 2000
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
System › User Profiles

Registry

EnableProfileQuota

-User

ProfileQuotaMessage

REG_SZUser
Enabled value
Depends on the option value
Element
Custom Message
Value type
REG_SZ
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"ProfileQuotaMessage"="<enter value>"
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ProfileQuotaMessage" /t REG_SZ /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data

New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ProfileQuotaMessage' -PropertyType String -Value '<enter value>' -Force | Out-Null

MaxProfileSize

REG_DWORDUser
Enabled value
Depends on the option value
Element
Max Profile size (KB)
Value type
REG_DWORD
Required
true
Minimum value
300
Maximum value
30000000
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"MaxProfileSize"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "MaxProfileSize" /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 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'MaxProfileSize' -PropertyType DWord -Value '<enter value>' -Force | Out-Null

IncludeRegInProQuota

REG_DWORDUser
Checked
1
Unchecked
0
Element
Show registry files in the file list
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

; Options (use only one)
; Checked
"IncludeRegInProQuota"=dword:00000001
; Unchecked
"IncludeRegInProQuota"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "IncludeRegInProQuota" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "IncludeRegInProQuota" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'IncludeRegInProQuota' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'IncludeRegInProQuota' -PropertyType DWord -Value 0 -Force | Out-Null

WarnUser

REG_DWORDUser
Checked
1
Unchecked
0
Element
Notify user when profile storage space is exceeded.
Value type
REG_DWORD
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

; Options (use only one)
; Checked
"WarnUser"=dword:00000001
; Unchecked
"WarnUser"=dword:00000000
CMD
:: Options (use only one)

:: Checked
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "WarnUser" /t REG_DWORD /d 1 /f
:: Unchecked
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "WarnUser" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# Options (use only one)
# Checked
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'WarnUser' -PropertyType DWord -Value 1 -Force | Out-Null
# Unchecked
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'WarnUser' -PropertyType DWord -Value 0 -Force | Out-Null

WarnUserTimeout

REG_DWORDUser
Enabled value
Depends on the option value
Element
Remind user every X minutes:
Value type
REG_DWORD
Required
true
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"WarnUserTimeout"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "WarnUserTimeout" /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 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'WarnUserTimeout' -PropertyType DWord -Value '<enter value>' -Force | Out-Null