Configurer les paramètres de connexion RPC : valeur de Registre RpcUseNamedPipeProtocol et 1 autresOrdinateurHKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC

ID de stratégie
ConfigureRpcConnectionPolicy
Étendue
Configuration ordinateur
Pris en charge sur
Au moins Windows Server 2016, Windows 10
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Catégorie
Imprimantes

Registre

RpcUseNamedPipeProtocol

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Protocole à utiliser pour les connexions RPC sortantes :
Options
EntréeValeur stockée
RPC sur TCP0
RPC sur des canaux nommés1
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\RPC]

; Options (en utiliser une seule)
; RPC sur TCP
"RpcUseNamedPipeProtocol"=dword:00000000
; RPC sur des canaux nommés
"RpcUseNamedPipeProtocol"=dword:00000001
CMD
:: Options (en utiliser une seule)

:: RPC sur TCP
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 0 /f
:: RPC sur des canaux nommés
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcUseNamedPipeProtocol" /t REG_DWORD /d 1 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null

# Options (en utiliser une seule)
# RPC sur TCP
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 0 -Force | Out-Null
# RPC sur des canaux nommés
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcUseNamedPipeProtocol' -PropertyType DWord -Value 1 -Force | Out-Null

RpcAuthentication

REG_DWORDOrdinateur
Valeur si activée
Dépend de la valeur de l'option
Élément
Utilisez l’authentification pour les connexions RPC sortantes :
Options
EntréeValeur stockée
Par défaut0
Authentification activée1
Authentification désactivée2
Appliquer avec .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\RPC]

; Options (en utiliser une seule)
; Par défaut
"RpcAuthentication"=dword:00000000
; Authentification activée
"RpcAuthentication"=dword:00000001
; Authentification désactivée
"RpcAuthentication"=dword:00000002
CMD
:: Options (en utiliser une seule)

:: Par défaut
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 0 /f
:: Authentification activée
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 1 /f
:: Authentification désactivée
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\RPC" /v "RpcAuthentication" /t REG_DWORD /d 2 /f
PowerShell
# Commun : créer la clé
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Force | Out-Null

# Options (en utiliser une seule)
# Par défaut
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 0 -Force | Out-Null
# Authentification activée
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 1 -Force | Out-Null
# Authentification désactivée
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC' -Name 'RpcAuthentication' -PropertyType DWord -Value 2 -Force | Out-Null