Configure RPC listener settings
Configurer les paramètres de l’écouteur RPC
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.
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 DWordDisable
# 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 SilentlyContinueOptions (2)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Protocols to allow for incoming RPC connections:Protocoles pour autoriser les connexions RPC entrantes :RpcListenerProtocols_Enum | Drop-down listenum | RpcProtocols | REG_DWORD | Default choice (UI): #1
| ||||||||
| Authentication protocol to use for incoming RPC connections:Protocole d’authentification à utiliser pour les connexions RPC entrantes :RpcAuthenticationProtocol_Enum | Drop-down listenum | ForceKerberosForRpc | REG_DWORD | Default choice (UI): #0
|