Open in the explorer

Allow Print Spooler to accept client connections

Autoriser le spouleur d’impression à accepter les connexions des clients

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 2003 FR: Au minimum Windows Server 2003
ADMX file
Printing2.admx
Internal name
Printing2/RegisterSpoolerRemoteRpcEndPoint

Explanation

This policy controls whether the print spooler will accept client connections.

When the policy is unconfigured or enabled, the spooler will always accept client connections.

When the policy is disabled, the spooler will not accept client connections nor allow users to share printers. All printers currently shared will continue to be shared.

The spooler must be restarted for changes to this policy to take effect.

French text from Windows 11 26H2

Cette stratégie indique si le spouleur d’impression accepte les connexions client.

Lorsque vous activez ou déconfigurez cette stratégie, le spouleur accepte toujours les connexions clientes.

Lorsque vous désactivez cette stratégie, le spouleur n’accepte pas les connexions clientes et n’autorise pas les utilisateurs à partager des imprimantes. Toutes les imprimantes actuellement partagées continueront à l’être.

Vous devez redémarrer le spouleur pour que les modifications apportées à cette stratégie soient prises en compte.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers
Value name
RegisterSpoolerRemoteRpcEndPoint
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 2

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: Printing2/RegisterSpoolerRemoteRpcEndPoint
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RegisterSpoolerRemoteRpcEndPoint' -Value 1 -Type DWord

Disable

# Disable: Printing2/RegisterSpoolerRemoteRpcEndPoint
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'RegisterSpoolerRemoteRpcEndPoint' -Value 2 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Printing2/RegisterSpoolerRemoteRpcEndPoint
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'RegisterSpoolerRemoteRpcEndPoint' -ErrorAction SilentlyContinue

Availability