Allow Print Spooler to accept client connections
Autoriser le spouleur d’impression à accepter les connexions des clients
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.
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
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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 DWordDisable
# 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 DWordRevert 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