Open in the explorer

Maintain RPC Troubleshooting State Information

Conserver les informations d’état de dépannage RPC

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/RpcStateInformation

Explanation

This policy setting determines whether the RPC Runtime maintains RPC state information for the system, and how much information it maintains. Basic state information, which consists only of the most commonly needed state data, is required for troubleshooting RPC problems.

If you disable this policy setting, the RPC runtime defaults to "Auto2" level.

If you do not configure this policy setting, the RPC defaults to "Auto2" level.

If you enable this policy setting, you can use the drop-down box to determine which systems maintain RPC state information.

-- "None" indicates that the system does not maintain any RPC state information. Note: Because the basic state information required for troubleshooting has a negligible effect on performance and uses only about 4K of memory, this setting is not recommended for most installations.

-- "Auto1" directs RPC to maintain basic state information only if the computer has at least 64 MB of memory.

-- "Auto2" directs RPC to maintain basic state information only if the computer has at least 128 MB of memory and is running Windows 2000 Server, Windows 2000 Advanced Server, or Windows 2000 Datacenter Server.

-- "Server" directs RPC to maintain basic state information on the computer, regardless of its capacity.

-- "Full" directs RPC to maintain complete RPC state information on the system, regardless of its capacity. Because this level can degrade performance, it is recommended for use only while you are investigating an RPC problem.

Note: To retrieve the RPC state information from a system that maintains it, you must use a debugging tool.

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 conserve les informations d’état RPC du système, ainsi que la quantité d’informations conservée. Les informations d’état de base, qui incluent uniquement les données d’état les plus souvent nécessaires, sont indispensables pour résoudre les problèmes RPC.

Si vous désactivez ce paramètre de stratégie, l’exécution RPC adopte par défaut le niveau « Automatique2 ».

Si vous ne configurez pas ce paramètre de stratégie, l’exécution RPC adopte par défaut le niveau « Automatique2 ».

Si vous activez ce paramètre de stratégie, vous pouvez utiliser la zone déroulante pour déterminer quels systèmes conservent les informations d’état RPC.

-- « Aucune » indique que le système ne conserve pas d’informations d’état RPC. Remarque : les informations d’état de base nécessaires au dépannage ont un effet négligeable sur les performances et n’utilisent qu’environ 4 Ko de mémoire ; ce paramètre n’est donc pas recommandé pour la plupart des installations.

-- « Automatique1 » indique à RPC qu’il doit conserver les informations d’état de base uniquement si l’ordinateur dispose d’au moins 64 Mo de mémoire.

-- « Automatique2 » indique à RPC qu’il doit conserver les informations d’état de base uniquement si l’ordinateur dispose d’au moins 128 Mo de mémoire et exécute Windows 2000 Server, Windows 2000 Advanced Server ou Windows 2000 Datacenter Server.

-- « Serveur » indique à RPC qu’il doit conserver les informations d’état de base sur l’ordinateur, sans tenir compte de sa capacité.

-- « Complète » indique à RPC qu’il doit conserver les informations d’état de base complètes sur le système, sans tenir compte de sa capacité. Puisque ce niveau peut dégrader les performances, il est recommandé de ne l’utiliser que lorsque vous effectuez des recherches sur un problème RPC.

Remarque : pour récupérer les informations d’état RPC d’un système qui les conserve, vous devez utiliser un outil de débogage.

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/RpcStateInformation
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# RPC Runtime state information to maintain
# Possible options:
#   None = 0
#   Auto1 = 1
#   Auto2 = 2
#   Server = 3
#   Full = 4
Set-ItemProperty -Path $k -Name 'StateInformation' -Value 2 -Type DWord

Disable

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

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
RPC Runtime state information to maintain:Informations d’état d’exécution RPC à conserver :RpcStateInformationListDrop-down listenumStateInformationREG_DWORD
Required · Default choice (UI): #2
LabelValue
NoneREG_DWORD = 0
Auto1REG_DWORD = 1
Auto2REG_DWORD = 2
ServerREG_DWORD = 3
FullREG_DWORD = 4

Availability