Ouvrir dans l'explorateur

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

Turn off downloading of print drivers over HTTP

Type
Utilisateur
Chemin GPO
Configuration utilisateur › Stratégies › Modèles d'administration › Système › Gestion de la communication Internet › Paramètres de communication Internet EN : User Configuration › Policies › Administrative Templates › System › Internet Communication Management › Internet Communication settings
Pris en charge sur
Au minimum Windows XP Professionnel avec SP2 EN : At least Windows XP Professional with SP2
Fichier ADMX
ICM.admx
Nom interne
ICM/DisableWebPnPDownload_1

Explication

Texte français issu de 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.

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.

Registre

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Printers
Nom de la valeur
DisableWebPnPDownload
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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

Désactiver

# Désactiver : 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

Revenir à « Non configuré »

# Revenir à « Non configuré » : ICM/DisableWebPnPDownload_1
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'DisableWebPnPDownload' -ErrorAction SilentlyContinue

Disponibilité