Configurer le rapport d’erreurs
Vérifié avec Windows 11 25H2 — mis à jour le 30 juillet 2026
Pris en charge sur : Windows Server 2003 et Windows XP uniquement
Chemin dans la console GPO
Configuration ordinateur\Modèles d'administration\Composants Windows\Rapport d’erreurs Windows Description
Ce paramètre de stratégie configure la manière dont les erreurs sont signalées à Microsoft et le type d’informations qui sont envoyées lorsque Rapport d’erreurs Microsoft est activé. Ce paramètre de stratégie n’active ni ne désactive Rapport d’erreurs Windows. Pour activer ou désactiver Rapport d’erreurs Windows, utilisez le paramètre de stratégie Désactiver Rapport d’erreurs Windows dans Configuration ordinateur/Modèles d’administration/Système/Gestion de la communication Internet/Paramètres de communication Internet. Important : si le paramètre de stratégie Désactiver Rapport d’erreurs Windows n’est pas configuré, les paramètres du Panneau de configuration relatifs à Rapport d’erreurs Windows remplacent ce paramètre de stratégie. Si vous activez ce paramètre de stratégie, celui-ci remplace les modifications apportées par l’utilisateur aux paramètres Rapport d’erreurs Windows dans le Panneau de configuration et les valeurs par défaut sont appliquées pour les paramètres de stratégie Rapport d’erreurs Windows qui ne sont pas configurés (même si les utilisateurs ont modifié les paramètres à l’aide du Panneau de configuration). Si vous activez ce paramètre de stratégie, vous pouvez y configurer les paramètres suivants : - « Ne pas afficher les liens vers les sites Web ’Plus d’informations’ fournis par Microsoft »: sélectionnez cette option si vous ne souhaitez pas que les boîtes de dialogue d’erreur affichent des liens vers des sites Web Microsoft. - « Ne pas recueillir de fichiers supplémentaires »: sélectionnez cette option si vous ne souhaitez pas que des fichiers supplémentaires soient recueillis et inclus dans les rapports d’erreurs. - « Ne pas recueillir de données supplémentaires sur l’ordinateur » : sélectionnez cette option si vous ne voulez pas que des informations supplémentaires à propos de l’ordinateur soient recueillies et incluses dans les rapports d’erreurs. - « Forcer le mode file d’attente pour les erreurs d’application » : sélectionnez cette option si vous ne voulez pas que les utilisateurs signalent les erreurs. Lorsque cette option est sélectionnée, les erreurs sont placées dans un répertoire de file d’attente, et le prochain administrateur qui se connectera à l’ordinateur pourra envoyer les rapports d’erreurs à Microsoft. - « Chemin d’accès du dossier partagé de l’entreprise » : entrez un chemin d’accès UNC pour activer les rapports d’erreurs de l’entreprise. Toutes les erreurs sont enregistrées à l’emplacement spécifié plutôt que d’être envoyées directement à Microsoft, et le prochain administrateur qui se connectera à l’ordinateur pourra envoyer les rapports d’erreurs à Microsoft. - « Remplacer les occurrences du mot « Microsoft » par » : vous pouvez spécifier le texte avec lequel personnaliser vos boîtes de dialogue de rapport d’erreurs. Le mot « Microsoft » est remplacé par le texte spécifié. Si vous ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent modifier les paramètres Rapport d’erreurs Windows dans le Panneau de configuration. Par défaut, ces paramètres sont Activer les rapports sur les ordinateurs qui exécutent Windows XP et Rapports en file d’attente sur les ordinateurs qui exécutent Windows Server 2003. Si vous désactivez ce paramètre de stratégie, les paramètres de configuration sont laissés vides dans le paramètre de stratégie. Consultez les paramètres de stratégie associés Afficher les paramètres de notification d’erreurs (même dossier que ce paramètre de stratégie) et Désactiver Rapport d’erreurs Windows dans Configuration ordinateur/Modèles d’administration/Système/Gestion de la communication Internet/Paramètres de communication Internet.
Registre
Software\Policies\Microsoft\PCHealth\ErrorReporting MDM / Intune (CSP)
./Device/Vendor/MSFT/Policy/Config/ADMX_ErrorReporting/PCH_ConfigureReport Documentation Microsoft Learn Données de correspondance : Microsoft Learn (CC BY 4.0)
Générateur d'exports
BETAConfigurez l'état, la portée et les options, puis générez les sorties .reg, PowerShell, Intune et SCCM — ou ajoutez le paramètre à une collection multi-paramètres.
Ces exports écrivent le registre — ce n'est pas une GPO managée. ⓘ
Fichier .reg
Windows Registry Editor Version 5.00
; Exported from gporais.com
; Policy: Configurer le rapport d’erreurs
; State: Enabled
; Supported on: Windows Server 2003 et Windows XP uniquement
[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\PCHealth\ErrorReporting]
"DWNoExternalURL"=dword:00000000
"DWNoFileCollection"=dword:00000000
"DWNoSecondLevelCollection"=dword:00000000
"ForceQueueMode"=dword:00000000
"DWFileTreeRoot"=""
"DWReporteeName"="" Autres formats (PowerShell, Intune, SCCM)
PowerShell
# Exported from gporais.com
# Policy: Configurer le rapport d’erreurs
# State: Enabled
# Supported on: Windows Server 2003 et Windows XP uniquement
$path = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'DWNoExternalURL' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWNoFileCollection' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWNoSecondLevelCollection' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'ForceQueueMode' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWFileTreeRoot' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'DWReporteeName' -Value '' -Type String Intune XML
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/ADMX_ErrorReporting/PCH_ConfigureReport
Data type: String
Value:
<enabled/>
<data id="PCH_NoExternalURL_Chk" value="0"/>
<data id="PCH_NoFileCollect_Chk" value="0"/>
<data id="PCH_NoLevelTwo_Chk" value="0"/>
<data id="PCH_ForceQ_Chk" value="0"/>
<data id="PCH_DumpPath_Edit" value=""/>
<data id="PCH_CompanyText_Edit" value=""/> Intune Remediation
# === Detection script ===
# Exported from gporais.com
# Policy: Configurer le rapport d’erreurs
# State: Enabled
# Supported on: Windows Server 2003 et Windows XP uniquement
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWNoExternalURL' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWNoFileCollection' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWNoSecondLevelCollection' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'ForceQueueMode' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWFileTreeRoot' -Expected '' -Kind String)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWReporteeName' -Expected '' -Kind String)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Configurer le rapport d’erreurs
# State: Enabled
# Supported on: Windows Server 2003 et Windows XP uniquement
$path = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'DWNoExternalURL' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWNoFileCollection' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWNoSecondLevelCollection' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'ForceQueueMode' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWFileTreeRoot' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'DWReporteeName' -Value '' -Type String Scripts SCCM
# Exported from gporais.com
# Policy: Configurer le rapport d’erreurs
# State: Enabled
# Supported on: Windows Server 2003 et Windows XP uniquement
# SCCM Configuration Item guidance:
# Create a Configuration Item of type "Setting: Script".
# Discovery script: use the Detection script below.
# Remediation script: use the Remediation script below.
# Compliance rule: the Discovery script output equals 'Compliant'.
# === Detection script ===
# Exported from gporais.com
# Policy: Configurer le rapport d’erreurs
# State: Enabled
# Supported on: Windows Server 2003 et Windows XP uniquement
function Test-RegistryValue {
param(
[Parameter(Mandatory = $true)][string]$Path,
[Parameter(Mandatory = $true)][string]$Name,
[object]$Expected,
[ValidateSet('String', 'DWord', 'MultiString')][string]$Kind = 'String',
[switch]$Absent
)
try {
$item = Get-ItemProperty -LiteralPath $Path -Name $Name -ErrorAction Stop
} catch {
return $Absent.IsPresent
}
if ($Absent.IsPresent) { return $false }
$actual = $item.$Name
if ($Kind -eq 'DWord') { return ([int64]$actual) -eq ([int64]$Expected) }
if ($Kind -eq 'MultiString') {
$actualValues = @($actual)
$expectedValues = @($Expected)
if ($actualValues.Count -ne $expectedValues.Count) { return $false }
for ($i = 0; $i -lt $expectedValues.Count; $i++) {
if ([string]$actualValues[$i] -ne [string]$expectedValues[$i]) { return $false }
}
return $true
}
return [string]$actual -eq [string]$Expected
}
$checks = @(
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWNoExternalURL' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWNoFileCollection' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWNoSecondLevelCollection' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'ForceQueueMode' -Expected 0 -Kind DWord)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWFileTreeRoot' -Expected '' -Kind String)
(Test-RegistryValue -Path 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting' -Name 'DWReporteeName' -Expected '' -Kind String)
)
if ($checks -notcontains $false) {
Write-Output 'Compliant'
exit 0
}
Write-Output 'Non-compliant'
exit 1
# === Remediation script ===
# Exported from gporais.com
# Policy: Configurer le rapport d’erreurs
# State: Enabled
# Supported on: Windows Server 2003 et Windows XP uniquement
$path = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
New-Item -Path $path -Force | Out-Null
Set-ItemProperty -Path $path -Name 'DWNoExternalURL' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWNoFileCollection' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWNoSecondLevelCollection' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'ForceQueueMode' -Value 0 -Type DWord
Set-ItemProperty -Path $path -Name 'DWFileTreeRoot' -Value '' -Type String
Set-ItemProperty -Path $path -Name 'DWReporteeName' -Value '' -Type String Vous construisez une collection multi-paramètres ? Ajoutez ce paramètre et générez des exports combinés (.reg, PowerShell, GPO).