設定報告保存 的登錄值 DisableArchive 等 2 個 (HKCU Windows Error Reporting)使用者HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting

原則 ID
WerArchive_1
適用範圍
使用者設定
支援的作業系統
至少需要 Windows Vista
來源
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (版本 1.0)
類別
Windows 元件 › Windows 錯誤報告 › 進階錯誤報告設定

登錄

DisableArchive

REG_DWORD使用者
啟用時的值
0
停用時的值
1
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting]

; 選項 (只使用其中一個)
; 已啟用
"DisableArchive"=dword:00000000
; 已停用
"DisableArchive"=dword:00000001
CMD
:: 選項 (只使用其中一個)

:: 已啟用
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "DisableArchive" /t REG_DWORD /d 0 /f
:: 已停用
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "DisableArchive" /t REG_DWORD /d 1 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting' -Force | Out-Null

# 選項 (只使用其中一個)
# 已啟用
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting' -Name 'DisableArchive' -PropertyType DWord -Value 0 -Force | Out-Null
# 已停用
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting' -Name 'DisableArchive' -PropertyType DWord -Value 1 -Force | Out-Null

ConfigureArchive

REG_DWORD使用者
啟用時的值
取決於選項值
元素
保存行為:
選項
項目儲存的值
全部儲存2
僅儲存參數1
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting]

; 選項 (只使用其中一個)
; 全部儲存
"ConfigureArchive"=dword:00000002
; 僅儲存參數
"ConfigureArchive"=dword:00000001
CMD
:: 選項 (只使用其中一個)

:: 全部儲存
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "ConfigureArchive" /t REG_DWORD /d 2 /f
:: 僅儲存參數
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v "ConfigureArchive" /t REG_DWORD /d 1 /f
PowerShell
# 共通: 建立機碼
New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting' -Force | Out-Null

# 選項 (只使用其中一個)
# 全部儲存
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting' -Name 'ConfigureArchive' -PropertyType DWord -Value 2 -Force | Out-Null
# 僅儲存參數
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting' -Name 'ConfigureArchive' -PropertyType DWord -Value 1 -Force | Out-Null

MaxArchiveCount

REG_DWORD使用者
啟用時的值
取決於選項值
元素
儲存的報告最大數目:
值類型
REG_DWORD
最大值
5000
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting]

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

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

New-Item -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting' -Force | Out-Null
New-ItemProperty -Path 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting' -Name 'MaxArchiveCount' -PropertyType DWord -Value '<輸入值>' -Force | Out-Null