Configure Report Archive
Configurer l’archive de rapport
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 0 |
| Disabled | REG_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 5000Disable
# 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 DWordRevert 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 SilentlyContinueOptions (2)
| Label | Control | Registry value | REG type | Constraints / details | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Archive behavior:Comportement d’archive :WerArchiveBehavior | Drop-down listenum | ConfigureArchive | REG_DWORD | Required
| ||||||
| Maximum number of reports to store:Nombre maximal de rapports à stocker :WerMaxArchiveCount | Numeric boxdecimal | MaxArchiveCount | REG_DWORD | Max: 5000 · Default (UI): 500 |