Conserver les informations d’état de dépannage RPC : valeur de Registre StateInformationOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\Rpc
- ID de stratégie
- RpcStateInformation
- Étendue
- Configuration ordinateur
- Pris en charge sur
- Au minimum Windows Server 2003 ou Windows XP Professionnel
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Catégorie
- Système › Appel de procédure distante
Registre
StateInformation
REG_DWORDOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\Rpc Clé actuelle
- Valeur si activée
- Dépend de la valeur de l'option
- Élément
- Informations d’état d’exécution RPC à conserver :
| Entrée | Valeur stockée |
|---|---|
| Aucune | 0 |
| Automatique1 | 1 |
| Automatique2 | 2 |
| Serveur | 3 |
| Complètes | 4 |
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Rpc] ; Options (en utiliser une seule) ; Aucune "StateInformation"=dword:00000000 ; Automatique1 "StateInformation"=dword:00000001 ; Automatique2 "StateInformation"=dword:00000002 ; Serveur "StateInformation"=dword:00000003 ; Complètes "StateInformation"=dword:00000004
CMD
:: Options (en utiliser une seule) :: Aucune reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 0 /f :: Automatique1 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 1 /f :: Automatique2 reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 2 /f :: Serveur reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 3 /f :: Complètes reg add "HKLM\Software\Policies\Microsoft\Windows NT\Rpc" /v "StateInformation" /t REG_DWORD /d 4 /f
PowerShell
# Commun : créer la clé New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Force | Out-Null # Options (en utiliser une seule) # Aucune New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 0 -Force | Out-Null # Automatique1 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 1 -Force | Out-Null # Automatique2 New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 2 -Force | Out-Null # Serveur New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 3 -Force | Out-Null # Complètes New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Rpc' -Name 'StateInformation' -PropertyType DWord -Value 4 -Force | Out-Null