限制設定檔大小 的登錄值 EnableProfileQuota 等 5 個使用者HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System

原則 ID
LimitSize
適用範圍
使用者設定
支援的作業系統
至少需要 Windows 2000
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
系統 › 使用者設定檔

登錄

EnableProfileQuota

-使用者

ProfileQuotaMessage

REG_SZ使用者
啟用時的值
取決於選項值
元素
自訂訊息
值類型
REG_SZ
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>
"ProfileQuotaMessage"="<輸入值>"
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ProfileQuotaMessage" /t REG_SZ /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

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 '<輸入值>' -Force | Out-Null

MaxProfileSize

REG_DWORD使用者
啟用時的值
取決於選項值
元素
設定檔大小上限 (KB)
值類型
REG_DWORD
必要
true
最小值
300
最大值
30000000
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>
"MaxProfileSize"=dword:<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "MaxProfileSize" /t REG_DWORD /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

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 '<輸入值>' -Force | Out-Null

IncludeRegInProQuota

REG_DWORD使用者
已核取
1
未核取
0
元素
在檔案清單顯示登錄檔
值類型
REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; 已核取
"IncludeRegInProQuota"=dword:00000001
; 未核取
"IncludeRegInProQuota"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 已核取
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "IncludeRegInProQuota" /t REG_DWORD /d 1 /f
:: 未核取
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "IncludeRegInProQuota" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# 選項 (只使用其中一個)
# 已核取
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'IncludeRegInProQuota' -PropertyType DWord -Value 1 -Force | Out-Null
# 未核取
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'IncludeRegInProQuota' -PropertyType DWord -Value 0 -Force | Out-Null

WarnUser

REG_DWORD使用者
已核取
1
未核取
0
元素
當設定檔儲存空間超過限制時通知使用者。
值類型
REG_DWORD
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 選項 (只使用其中一個)
; 已核取
"WarnUser"=dword:00000001
; 未核取
"WarnUser"=dword:00000000
CMD
:: 選項 (只使用其中一個)

:: 已核取
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "WarnUser" /t REG_DWORD /d 1 /f
:: 未核取
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "WarnUser" /t REG_DWORD /d 0 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null

# 選項 (只使用其中一個)
# 已核取
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'WarnUser' -PropertyType DWord -Value 1 -Force | Out-Null
# 未核取
New-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'WarnUser' -PropertyType DWord -Value 0 -Force | Out-Null

WarnUserTimeout

REG_DWORD使用者
啟用時的值
取決於選項值
元素
每隔 X 分鐘提醒使用者:
值類型
REG_DWORD
必要
true
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

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

; 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>
"WarnUserTimeout"=dword:<輸入值>
CMD
:: 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "WarnUserTimeout" /t REG_DWORD /d "<輸入值>" /f
PowerShell
# 值名稱與類型依照 ADMX。請自行填入下方的 <輸入值>

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 '<輸入值>' -Force | Out-Null