Ouvrir dans l'explorateur

Assistant Ajout d’imprimante - Page d’analyse réseau (réseau non géré)

Add Printer wizard - Network scan page (Unmanaged network)

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes EN : Computer Configuration › Policies › Administrative Templates › Printers
Pris en charge sur
Au minimum Windows Vista EN : At least Windows Vista
Fichier ADMX
Printing.admx
Nom interne
Printing/NonDomainPrinters

Explication

Texte français issu de Windows 11 26H2

Cette stratégie définit le nombre maximal d’imprimantes (de chaque type) que l’Assistant Ajout d’imprimante affichera sur un ordinateur d’un réseau non géré (dans le cas où l’ordinateur ne peut pas atteindre un contrôleur de domaine, par exemple un ordinateur portable faisant partie d’un domaine dans un réseau domestique).

Si ce paramètre est désactivé, la page d’analyse réseau ne s’affiche pas.

Si ce paramètre n’est pas configuré, l’Assistant Ajout d’imprimante affiche le nombre d’imprimantes par défaut de chaque type :
Imprimantes TCP/IP : 50
Imprimantes des services web : 50
Imprimantes Bluetooth : 10
Imprimantes partagées : 50

Si vous ne souhaitez pas afficher les imprimantes d’un certain type, activez cette stratégie et définissez le nombre d’imprimantes à afficher sur 0.

Dans Windows 10 et versions ultérieures, seules les imprimantes TCP/IP peuvent s’afficher dans l’Assistant. Si vous activez ce paramètre de stratégie, seules les limites relatives aux imprimantes TCP/IP sont applicables. Sur Windows 10 uniquement, si vous désactivez ou ne configurez pas ce paramètre de stratégie, la limite par défaut s’applique.

Dans Windows 8 et versions ultérieures, les imprimantes Bluetooth ne s’affichent pas, si bien que leurs limites ne s’appliquent pas à ces versions de Windows.

This policy sets the maximum number of printers (of each type) that the Add Printer wizard will display on a computer on an unmanaged network (when the computer is not able to reach a domain controller, e.g. a domain-joined laptop on a home network.)

If this setting is disabled, the network scan page will not be displayed.

If this setting is not configured, the Add Printer wizard will display the default number of printers of each type:
TCP/IP printers: 50
Web Services printers: 50
Bluetooth printers: 10
Shared printers: 50

If you would like to not display printers of a certain type, enable this policy and set the number of printers to display to 0.

In Windows 10 and later, only TCP/IP printers can be shown in the wizard. If you enable this policy setting, only TCP/IP printer limits are applicable. On Windows 10 only, if you disable or do not configure this policy setting, the default limit is applied.

In Windows 8 and later, Bluetooth printers are not shown so its limit does not apply to those versions of Windows.

Registre

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\Wizard
Nom de la valeur
NonDomainDisplayPrinters_State
ÉtatValeur écrite
ActivéREG_DWORD = 2
DésactivéREG_DWORD = 1

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 : Printing/NonDomainPrinters
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NonDomainDisplayPrinters_State' -Value 2 -Type DWord
# Nombre d’imprimantes TCT/IP
Set-ItemProperty -Path $k -Name 'NonDomainIPprinters' -Value 50 -Type DWord  # maximum 1000
# Nombre d’imprimantes des services Web
Set-ItemProperty -Path $k -Name 'NonDomainWSDprinters' -Value 50 -Type DWord  # maximum 1000
# Nombre d’imprimantes Bluetooth
Set-ItemProperty -Path $k -Name 'NonDomainBluetoothprinters' -Value 10 -Type DWord  # maximum 1000
# Nombre d’imprimantes partagées
Set-ItemProperty -Path $k -Name 'NonDomainShareprinters' -Value 50 -Type DWord  # maximum 1000

Désactiver

# Désactiver : Printing/NonDomainPrinters
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'NonDomainDisplayPrinters_State' -Value 1 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : Printing/NonDomainPrinters
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
Remove-ItemProperty -Path $k -Name 'NonDomainDisplayPrinters_State' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NonDomainIPprinters' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NonDomainWSDprinters' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NonDomainBluetoothprinters' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'NonDomainShareprinters' -ErrorAction SilentlyContinue

Options (4)

LibelléContrôleValeur de registreType REGContraintes / détails
Nombre d’imprimantes TCT/IPNumber of TCP/IP printersIPprintersZone numériquedecimalNonDomainIPprintersREG_DWORD
Max : 1000 · Défaut (interface) : 50
Nombre d’imprimantes des services WebNumber of Web Services PrintersWSDprintersZone numériquedecimalNonDomainWSDprintersREG_DWORD
Max : 1000 · Défaut (interface) : 50
Nombre d’imprimantes BluetoothNumber of Bluetooth printersBluetoothprintersZone numériquedecimalNonDomainBluetoothprintersREG_DWORD
Max : 1000 · Défaut (interface) : 10
Nombre d’imprimantes partagéesNumber of shared printersShareprintersZone numériquedecimalNonDomainShareprintersREG_DWORD
Max : 1000 · Défaut (interface) : 50

Disponibilité