Open in the explorer

Propagate extended error information

Propager des informations complètes sur l’erreur

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Remote Procedure Call FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Appel de procédure distante
Supported on
At least Windows Server 2003 operating systems or Windows XP Professional FR: Au minimum Windows Server 2003 ou Windows XP Professionnel
ADMX file
RPC.admx
Internal name
RPC/RpcExtendedErrorInformation

Explanation

This policy setting controls whether the RPC runtime generates extended error information when an error occurs.

Extended error information includes the local time that the error occurred, the RPC version, and the name of the computer on which the error occurred, or from which it was propagated. Programs can retrieve the extended error information by using standard Windows application programming interfaces (APIs).

If you disable this policy setting, the RPC Runtime only generates a status code to indicate an error condition.

If you do not configure this policy setting, it remains disabled. It will only generate a status code to indicate an error condition.

If you enable this policy setting, the RPC runtime will generate extended error information. You must select an error response type in the drop-down box.

-- "Off" disables all extended error information for all processes. RPC only generates an error code.

-- "On with Exceptions" enables extended error information, but lets you disable it for selected processes. To disable extended error information for a process while this policy setting is in effect, the command that starts the process must begin with one of the strings in the Extended Error Information Exception field.

-- "Off with Exceptions" disables extended error information, but lets you enable it for selected processes. To enable extended error information for a process while this policy setting is in effect, the command that starts the process must begin with one of the strings in the Extended Error Information Exception field.

-- "On" enables extended error information for all processes.

Note: For information about the Extended Error Information Exception field, see the Windows Software Development Kit (SDK).

Note: Extended error information is formatted to be compatible with other operating systems and older Microsoft operating systems, but only newer Microsoft operating systems can read and respond to the information.

Note: The default policy setting, "Off," is designed for systems where extended error information is considered to be sensitive, and it should not be made available remotely.

Note: This policy setting will not be applied until the system is rebooted.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si l’exécution RPC génère des informations complètes sur l’erreur lorsqu’elle se produit.

Les informations complètes sur l’erreur comprennent l’heure locale à laquelle l’erreur s’est produite, la version RPC, ainsi que le nom de l’ordinateur sur lequel l’erreur s’est produite ou à partir duquel elle a été propagée. Les programmes peuvent récupérer les informations complètes sur l’erreur en utilisant les interfaces de programmation d’applications (API) Windows standard.

Si vous désactivez ce paramètre de stratégie, l’exécution RPC ne génère qu’un code d’état afin d’indiquer une condition d’erreur.

Si vous ne configurez pas ce paramètre de stratégie, il reste désactivé. Il ne génère qu’un code d’état indiquant une condition d’erreur.

Si vous activez ce paramètre de stratégie, l’exécution RPC génère des informations complètes sur l’erreur. Vous devez sélectionner un type de réponse d’erreur dans la zone déroulante.

-- « Inactif » désactive toutes les informations complètes sur l’erreur pour tous les processus. RPC ne génère qu’un code d’erreur.

-- « Actif avec exceptions » active les informations complètes sur l’erreur, mais vous permet de les désactiver pour les processus sélectionnés. Pour désactiver les informations complètes sur l’erreur pour un processus lorsque ce paramètre de stratégie est actif, la commande qui démarre le processus doit commencer par une des chaînes du champ Exception d’informations complètes sur l’erreur.

-- « Inactif avec exceptions » désactive les informations complètes sur l’erreur, mais vous permet de l’activer pour les processus sélectionnés. Pour activer les informations complètes sur l’erreur pour un processus lorsque ce paramètre de stratégie est actif, la commande qui démarre le processus doit commencer par une des chaînes du champ Exception d’informations complètes sur l’erreur.

-- « Actif » active les informations complètes sur l’erreur pour tous les processus.

Remarque : pour plus d’informations sur le champ Exception d’informations complètes sur l’erreur, voir le Kit de développement logiciel Windows (Kit SDK Windows).

Remarque : les informations complètes sur l’erreur sont formatées pour être compatibles avec d’autres systèmes d’exploitation et les systèmes d’exploitation Microsoft de version antérieure, mais seuls les systèmes d’exploitation Microsoft récents peuvent lire ces informations et y répondre.

Remarque : le paramètre de stratégie par défaut « Inactif » est conçu pour les systèmes sur lesquels les informations complètes sur l’erreur sont considérées comme des données sensibles qui ne devraient pas être disponibles à distance.

Remarque : ce paramètre de stratégie ne s’applique qu’après le redémarrage du système.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Rpc
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: RPC/RpcExtendedErrorInformation
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Propagation of extended error information
# Possible options:
#   Off = 0
#   On with Exceptions = 1
#   Off with Exceptions = 2
#   On = 3
Set-ItemProperty -Path $k -Name 'ExtErrorInformation' -Value 0 -Type DWord
# Extended Error Information Exceptions
Set-ItemProperty -Path $k -Name 'ExtErrorInfoExceptions' -Value '<value>' -Type String

Disable

# Disable: RPC/RpcExtendedErrorInformation
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": RPC/RpcExtendedErrorInformation
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc'
Remove-ItemProperty -Path $k -Name 'ExtErrorInformation' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'ExtErrorInfoExceptions' -ErrorAction SilentlyContinue

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Propagation of extended error information:Propagation des informations complètes sur l’erreur :RpcExtendedErrorInformationListDrop-down listenumExtErrorInformationREG_DWORD
Required · Default choice (UI): #0
LabelValue
OffREG_DWORD = 0
On with ExceptionsREG_DWORD = 1
Off with ExceptionsREG_DWORD = 2
OnREG_DWORD = 3
Extended Error Information Exceptions:Exceptions d’informations complètes sur l’erreur :RpcExtErrorExceptionsText boxtextExtErrorInfoExceptionsREG_SZ

Availability