Open in the explorer

Configure RPC connection settings

Configurer les paramètres de connexion RPC

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Printers FR: Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
Printing.admx
Internal name
Printing/ConfigureRpcConnectionPolicy

Explanation

This policy setting controls which protocol and protocol settings to use for outgoing RPC connections to a remote print spooler.

By default, RPC over TCP is used and authentication is always enabled. For RPC over named pipes, authentication is always enabled for domain joined machines but disabled for non domain joined machines.

Protocol to use for outgoing RPC connections:
-- "RPC over TCP": Use RPC over TCP for outgoing RPC connections to a remote print spooler
-- "RPC over named pipes": Use RPC over named pipes for outgoing RPC connections to a remote print spooler

Use authentication for outgoing RPC over named pipes connections:
-- "Default": By default domain joined computers enable RPC authentication for RPC over named pipes while non domain joined computers disable RPC authentication for RPC over named pipes
-- "Authentication enabled": RPC authentication will be used for outgoing RPC over named pipes connections
-- "Authentication disabled": RPC authentication will not be used for outgoing RPC over named pipes connections

If you disable or do not configure this policy setting, the above defaults will be used.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle les paramètres de protocole et de protocole à utiliser pour les connexions RPC sortantes à un spouleur d’impression distant.

Par défaut, RPC sur TCP est utilisé et l’authentification est toujours activée. Pour RPC sur des canaux nommés, l’authentification est toujours activée pour les ordinateurs joints à un domaine, mais désactivée pour les ordinateurs qui ne sont pas joints à un domaine.

Protocole à utiliser pour les connexions RPC sortantes :
-- « RPC sur TCP » : utiliser RPC sur TCP pour les connexions RPC sortantes à un spouleur d’impression distant
-- « RPC sur canaux nommés » : utiliser RPC sur les canaux nommés pour les connexions RPC sortantes à un spouleur d’impression distant

Utiliser l’authentification pour les connexions RPC sortantes sur des canaux nommés :
-- « Par défaut » : par défaut, les ordinateurs joints à un domaine activent l’authentification RPC pour RPC sur des canaux nommés alors que les ordinateurs non joints à un domaine désactivent l’authentification RPC pour RPC sur les canaux nommés
-- « Authentification activée » : l’authentification RPC est utilisée pour les connexions RPC sortantes sur des canaux nommés
-- « Authentification désactivée » : l’authentification RPC ne sera pas utilisée pour les connexions RPC sortantes sur des canaux nommés

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les valeurs par défaut ci-dessus sont utilisées.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\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: Printing/ConfigureRpcConnectionPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Protocol to use for outgoing RPC connections
# Possible options:
#   RPC over TCP = 0
#   RPC over named pipes = 1
Set-ItemProperty -Path $k -Name 'RpcUseNamedPipeProtocol' -Value 0 -Type DWord
# Use authentication for outgoing RPC connections
# Possible options:
#   Default = 0
#   Authentication enabled = 1
#   Authentication disabled = 2
Set-ItemProperty -Path $k -Name 'RpcAuthentication' -Value 0 -Type DWord

Disable

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

Revert to "Not configured"

# Revert to "Not configured": Printing/ConfigureRpcConnectionPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC'
Remove-ItemProperty -Path $k -Name 'RpcUseNamedPipeProtocol' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'RpcAuthentication' -ErrorAction SilentlyContinue

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Protocol to use for outgoing RPC connections:Protocole à utiliser pour les connexions RPC sortantes :RpcConnectionProtocol_EnumDrop-down listenumRpcUseNamedPipeProtocolREG_DWORD
Default choice (UI): #0
LabelValue
RPC over TCPREG_DWORD = 0
RPC over named pipesREG_DWORD = 1
Use authentication for outgoing RPC connections:Utilisez l’authentification pour les connexions RPC sortantes :RpcConnectionAuthentication_EnumDrop-down listenumRpcAuthenticationREG_DWORD
Default choice (UI): #0
LabelValue
DefaultREG_DWORD = 0
Authentication enabledREG_DWORD = 1
Authentication disabledREG_DWORD = 2

Availability

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016