Settings package size warning threshold: registry value MaxPackageSizeInBytesUserHKCU\Software\Policies\Microsoft\UEV\Agent\Configuration

Policy ID
MaxPackageSizeInBytes
Scope
Computer Configuration, User Configuration
Supported on
At least Windows Server 2008 R2 or Windows 7
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Microsoft User Experience Virtualization

Registry

MaxPackageSizeInBytes

REG_DWORDUserComputer
Enabled value
Depends on the option value
Element
Package size threshold (in bytes):
Value type
REG_DWORD
Required
true
Maximum value
4000000000
Store as text
false
Apply with .reg · CMD · PowerShell
UserPer-account setting
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\UEV\Agent\Configuration]

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

reg add "HKCU\Software\Policies\Microsoft\UEV\Agent\Configuration" /v "MaxPackageSizeInBytes" /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\Policies\Microsoft\UEV\Agent\Configuration' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\Software\Policies\Microsoft\UEV\Agent\Configuration' -Name 'MaxPackageSizeInBytes' -PropertyType DWord -Value '<enter value>' -Force | Out-Null
ComputerMachine-wide setting
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\UEV\Agent\Configuration]

; Value names and types follow the ADMX. Replace <enter value> below with your own data
"MaxPackageSizeInBytes"=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\UEV\Agent\Configuration" /v "MaxPackageSizeInBytes" /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\UEV\Agent\Configuration' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\UEV\Agent\Configuration' -Name 'MaxPackageSizeInBytes' -PropertyType DWord -Value '<enter value>' -Force | Out-Null