Open in the explorer

Configure RPC listener settings

Configurer les paramètres de l’écouteur 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/ConfigureRpcListenerPolicy

Explanation

This policy setting controls which protocols incoming RPC connections to the print spooler are allowed to use.

By default, RPC over TCP is enabled and Negotiate is used for the authentication protocol.

Protocols to allow for incoming RPC connections:
-- "RPC over named pipes": Incoming RPC connections are only allowed over named pipes
-- "RPC over TCP": Incoming RPC connections are only allowed over TCP (the default option)
-- "RPC over named pipes and TCP": Incoming RPC connections will be allowed over TCP and named pipes

Authentication protocol to use for incoming RPC connections:
-- "Negotiate": Use the Negotiate authentication protocol (the default option)
-- "Kerberos": Use the Kerberos authentication protocol

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 quels protocoles de connexions RPC entrantes au spouleur d’impression sont autorisées à utiliser.

Par défaut, RPC sur TCP est activé et Negotiate est utilisé pour le protocole d’authentification.

Protocole pour autoriser les connexions RPC entrantes :
: « RPC sur des canaux nommés » : les connexions RPC entrantes sont uniquement autorisées sur les canaux nommés
« RPC sur TCP » : les connexions RPC entrantes sont uniquement autorisées sur TCP (option par défaut)
« RPC sur des canaux nommés et TCP » : les connexions RPC entrantes sont autorisées sur TCP et les canaux nommés

Protocole d’authentification à utiliser pour les connexions RPC entrantes :
« Negotiate » : utilisez le protocole d’authentification Negotiate (option par défaut)
« Kerberos » : utilisez le protocole d’authentification Kerberos

Si vous désactivez ou ne configurez pas ce paramètre de stratégie, les valeurs par défaut ci-dessus seront 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/ConfigureRpcListenerPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\RPC'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Protocols to allow for incoming RPC connections
# Possible options:
#   RPC over named pipes = 3
#   RPC over TCP = 5
#   RPC over named pipes and TCP = 7
Set-ItemProperty -Path $k -Name 'RpcProtocols' -Value 5 -Type DWord
# Authentication protocol to use for incoming RPC connections
# Possible options:
#   Negotiate = 0
#   Kerberos = 1
Set-ItemProperty -Path $k -Name 'ForceKerberosForRpc' -Value 0 -Type DWord

Disable

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

Revert to "Not configured"

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

Options (2)

LabelControlRegistry valueREG typeConstraints / details
Protocols to allow for incoming RPC connections:Protocoles pour autoriser les connexions RPC entrantes :RpcListenerProtocols_EnumDrop-down listenumRpcProtocolsREG_DWORD
Default choice (UI): #1
LabelValue
RPC over named pipesREG_DWORD = 3
RPC over TCPREG_DWORD = 5
RPC over named pipes and TCPREG_DWORD = 7
Authentication protocol to use for incoming RPC connections:Protocole d’authentification à utiliser pour les connexions RPC entrantes :RpcAuthenticationProtocol_EnumDrop-down listenumForceKerberosForRpcREG_DWORD
Default choice (UI): #0
LabelValue
NegotiateREG_DWORD = 0
KerberosREG_DWORD = 1

Availability

Windows 10

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

Windows Server

✓ 2025— 2022— 2016