Turn off printing over HTTP
Désactiver l’impression via HTTP
Explanation
This policy setting specifies whether to allow printing over HTTP from this client.
Printing over HTTP allows a client to print to printers on the intranet as well as the Internet.
Note: This policy setting affects the client side of Internet printing only. It does not prevent this computer from acting as an Internet Printing server and making its shared printers available via HTTP.
If you enable this policy setting, it prevents this client from printing to Internet printers over HTTP.
If you disable or do not configure this policy setting, users can choose to print to Internet printers over HTTP.
Also, see the "Web-based printing" policy setting in Computer Configuration/Administrative Templates/Printers.
Ce paramètre de stratégie indique si l’impression via HTTP est autorisée à partir de ce client.
L’impression via HTTP permet à un client d’imprimer sur des imprimantes situées sur le réseau intranet ou sur Internet.
Remarque : ce paramètre de stratégie n’affecte que le côté client de l’impression Internet. Il n’empêche pas cet ordinateur d’agir en tant que serveur d’impression Internet et de partager ses imprimantes via HTTP.
Si vous activez ce paramètre de stratégie, ce client ne peut pas imprimer sur des imprimantes Internet via HTTP.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs peuvent choisir d’imprimer sur des imprimantes Internet via HTTP.
Consultez également le paramètre de stratégie « Impression via le Web » dans Configuration ordinateur/Modèles d’administration/Imprimantes.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers- Value name
DisableHTTPPrinting
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: ICM/DisableHTTPPrinting_2
$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 'DisableHTTPPrinting' -Value 1 -Type DWordDisable
# Disable: ICM/DisableHTTPPrinting_2
$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 'DisableHTTPPrinting' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ICM/DisableHTTPPrinting_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'DisableHTTPPrinting' -ErrorAction SilentlyContinue