Open in the explorer

Configure Report Archive

Configurer l’archive de rapport

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Error Reporting › Advanced Error Reporting Settings FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rapport d’erreurs Windows › Paramètres de rapport d’erreurs avancés
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
ErrorReporting.admx
Internal name
ErrorReporting/WerArchive_2

Explanation

This policy setting controls the behavior of the Windows Error Reporting archive.

If you enable this policy setting, you can configure Windows Error Reporting archiving behavior. If Archive behavior is set to Store all, all data collected for each error report is stored in the appropriate location. If Archive behavior is set to Store parameters only, only the minimum information required to check for an existing solution is stored. The Maximum number of reports to store setting determines how many reports are stored before older reports are automatically deleted.

If you disable or do not configure this policy setting, no Windows Error Reporting information is stored.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle le comportement de l’archive de rapport d’erreurs Windows.

Si vous activez ce paramètre de stratégie, vous pouvez configurer le comportement d’archivage de Rapport d’erreurs Windows. Si le comportement d’archive est défini sur Tout stocker, toutes les données recueillies pour chaque rapport d’erreurs sont stockées à l’emplacement approprié. Si le comportement d’archive est défini sur Stocker les paramètres seulement, seules les informations minimales requises pour vérifier l’existence d’une solution sont stockées. Le paramètre Nombre maximal de rapports à stocker détermine combien de rapports sont stockés avant que les rapports plus anciens soient automatiquement supprimés.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, aucune information de Rapport d’erreurs Windows n’est stockée.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting
Value name
DisableArchive
StateValue written
EnabledREG_DWORD = 0
DisabledREG_DWORD = 1

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: ErrorReporting/WerArchive_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableArchive' -Value 0 -Type DWord
# Archive behavior
# Possible options:
#   Store all = 2
#   Store parameters only = 1
Set-ItemProperty -Path $k -Name 'ConfigureArchive' -Value 2 -Type DWord
# Maximum number of reports to store
Set-ItemProperty -Path $k -Name 'MaxArchiveCount' -Value 500 -Type DWord  # maximum 5000

Disable

# Disable: ErrorReporting/WerArchive_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableArchive' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": ErrorReporting/WerArchive_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
Remove-ItemProperty -Path $k -Name 'DisableArchive' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ConfigureArchive' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'MaxArchiveCount' -ErrorAction SilentlyContinue

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Archive behavior:Comportement d’archive :WerArchiveBehaviorDrop-down listenumConfigureArchiveREG_DWORD
Required
LabelValue
Store allREG_DWORD = 2
Store parameters onlyREG_DWORD = 1
Maximum number of reports to store:Nombre maximal de rapports à stocker :WerMaxArchiveCountNumeric boxdecimalMaxArchiveCountREG_DWORD
Max: 5000 · Default (UI): 500

Availability