Configure Corporate Windows Error Reporting
Configurer Rapport d’erreurs d’entreprise Windows
Explanation
This policy setting specifies a corporate server to which Windows Error Reporting sends reports (if you do not want to send error reports to Microsoft).
If you enable this policy setting, you can specify the name or IP address of an error report destination server on your organization’s network. You can also select Connect using SSL to transmit error reports over a Secure Sockets Layer (SSL) connection, and specify a port number on the destination server for transmission.
If you disable or do not configure this policy setting, Windows Error Reporting sends error reports to Microsoft.
Ce paramètre de stratégie spécifie un serveur d’entreprise sur lequel Rapport d’erreurs Windows envoie les rapports (si vous ne souhaitez pas qu’ils soient envoyés à Microsoft).
Si vous activez ce paramètre de stratégie, vous pouvez spécifier le nom et l’adresse IP d’un serveur de destination des rapports d’erreurs sur le réseau de votre entreprise. Vous pouvez également sélectionner Connexion avec SSL pour transmettre les rapports d’erreurs sur une connexion SSL (Secure Sockets Layer) et spécifier un numéro de port sur le serveur de destination pour la transmission.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, Rapport d’erreurs Windows envoie les rapports d’erreurs à Microsoft.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
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/WerCER
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Corporate server name
Set-ItemProperty -Path $k -Name 'CorporateWerServer' -Value '<value>' -Type String
# Connect using SSL
# value not defined in the ADMX (the GPO editor usually writes 1/0)
# 1 = checked, 0 = unchecked; default state taken from the ADML
Set-ItemProperty -Path $k -Name 'CorporateWerUseSSL' -Value 1 -Type DWord
# Only upload on free networks
Set-ItemProperty -Path $k -Name 'CorporateWerUploadOnFreeNetworksOnly' -Value 1 -Type DWord # value not defined in the ADMX; 1 = checked, 0 = unchecked
# Server port
Set-ItemProperty -Path $k -Name 'CorporateWerPortNumber' -Value 1273 -Type DWord # maximum 65535Disable
# Disable: ErrorReporting/WerCER
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": ErrorReporting/WerCER
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
Remove-ItemProperty -Path $k -Name 'CorporateWerServer' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'CorporateWerUseSSL' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'CorporateWerUploadOnFreeNetworksOnly' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'CorporateWerPortNumber' -ErrorAction SilentlyContinueOptions (4)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Corporate server name:Nom du serveur d’entreprise :WerCERServer | Text boxtext | CorporateWerServer | REG_SZ | Required · Max length: 256 |
| Connect using SSLConnexion avec SSLWerCERUseSSL | Check boxboolean | CorporateWerUseSSL | REG_DWORD | Checked: implicit: 1Unchecked: implicit: 0 |
| Only upload on free networksTélécharger uniquement sur des réseaux libresWerCerUploadOnFreeNetworksOnly | Check boxboolean | CorporateWerUploadOnFreeNetworksOnly | REG_DWORD | Checked: implicit: 1Unchecked: implicit: 0 |
| Server port:Port du serveur :WerCERCorporatePortNumber | Numeric boxdecimal | CorporateWerPortNumber | REG_DWORD | Required · Max: 65535 · Default (UI): 1273 |