Open in the explorer

Turn off downloading of print drivers over HTTP

Désactiver le téléchargement des pilotes d’imprimantes via HTTP

Type
User
GPO path
User Configuration › Policies › Administrative Templates › System › Internet Communication Management › Internet Communication settings FR: Configuration utilisateur › Stratégies › Modèles d'administration › Système › Gestion de la communication Internet › Paramètres de communication Internet
Supported on
At least Windows XP Professional with SP2 FR: Au minimum Windows XP Professionnel avec SP2
ADMX file
ICM.admx
Internal name
ICM/DisableWebPnPDownload_1

Explanation

This policy setting specifies whether to allow this client to download print driver packages over HTTP.

To set up HTTP printing, non-inbox drivers need to be downloaded over HTTP.

Note: This policy setting does not prevent the client from printing to printers on the Intranet or the Internet over HTTP. It only prohibits downloading drivers that are not already installed locally.

If you enable this policy setting, print drivers cannot be downloaded over HTTP.

If you disable or do not configure this policy setting, users can download print drivers over HTTP.

French text from Windows 11 26H2

Ce paramètre de stratégie indique si ce client est autorisé à télécharger les packages de pilotes d’imprimantes via HTTP.

Pour configurer l’impression HTTP, les pilotes non fournis avec Windows doivent être téléchargés via HTTP.

Remarque : ce paramètre de stratégie n’empêche pas le client d’imprimer vers des imprimantes sur le réseau intranet ou sur Internet via HTTP. Il empêche uniquement le téléchargement des pilotes qui ne sont pas déjà installés localement.

Si vous activez ce paramètre de stratégie, il est impossible de télécharger les pilotes d’imprimantes via HTTP.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les utilisateurs peuvent télécharger des pilotes d’imprimantes via HTTP.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Printers
Value name
DisableWebPnPDownload
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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/DisableWebPnPDownload_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DisableWebPnPDownload' -Value 1 -Type DWord

Disable

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

Revert to "Not configured"

# Revert to "Not configured": ICM/DisableWebPnPDownload_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'DisableWebPnPDownload' -ErrorAction SilentlyContinue

Availability