Automatically send memory dumps for OS-generated error reports
Envoyer automatiquement des images mémoire pour les rapports d’erreurs générés par le système d’exploitation
Explanation
This policy setting controls whether memory dumps in support of OS-generated error reports can be sent to Microsoft automatically. This policy does not apply to error reports generated by 3rd-party products, or additional data other than memory dumps.
If you enable or do not configure this policy setting, any memory dumps generated for error reports by Microsoft Windows are automatically uploaded, without notification to the user.
If you disable this policy setting, then all memory dumps are uploaded according to the default consent and notification settings.
Ce paramètre de stratégie contrôle si des images mémoire peuvent être envoyées automatiquement à Microsoft en complément des rapports d’erreurs générés par le système d’exploitation. Cette stratégie ne s’applique pas aux rapports d’erreurs générés par des produits tiers, ou aux données supplémentaires autres que les images mémoire.
Si vous activez ou ne configurez pas ce paramètre de stratégie, toutes les images mémoire générées pour les rapports d’erreurs par Microsoft Windows sont automatiquement téléchargées, sans notification à l’utilisateur.
Si vous désactivez ce paramètre de stratégie, toutes les images mémoire sont téléchargées en fonction du consentement par défaut et des paramètres de notification.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting- Value name
AutoApproveOSDumps
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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/WerAutoApproveOSDumps_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 'AutoApproveOSDumps' -Value 1 -Type DWordDisable
# Disable: ErrorReporting/WerAutoApproveOSDumps_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 'AutoApproveOSDumps' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ErrorReporting/WerAutoApproveOSDumps_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
Remove-ItemProperty -Path $k -Name 'AutoApproveOSDumps' -ErrorAction SilentlyContinue