Ouvrir dans l'explorateur

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

Add Printer wizard - Network scan page (Managed 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/DomainPrinters

Explication

Texte français issu de Windows 11 26H2

Si vous activez ce paramètre de stratégie, il définit le nombre maximal d’imprimantes (de chaque type) que l’Assistant Ajout d’imprimante affiche sur un ordinateur d’un réseau géré (lorsque l’ordinateur peut atteindre un contrôleur de domaine, par exemple un ordinateur portable faisant partie d’un domaine dans un réseau d’entreprise.)

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

Si ce paramètre de stratégie n’est pas configuré, l’Assistant Ajout d’imprimante affiche le nombre par défaut d’imprimantes de chaque type :
Imprimantes Active Directory : 20
Imprimantes TCP/IP : 0
Imprimantes de services Web : 0
Imprimantes Bluetooth : 10
Imprimantes partagées : 0

Pour afficher les imprimantes de services Web disponibles sur votre réseau, veillez à ce que la découverte du réseau soit activée. Pour ce faire, cliquez successivement sur « Démarrer », « Panneau de configuration », puis « Réseau et Internet ». Sur la page « Réseau et Internet », cliquez sur « Centre Réseau et partage ». Sur la page Centre Réseau et partage, cliquez sur « Modifier les paramètres de partage avancés ». Dans la page qui s’affiche, cliquez sur la flèche en regard de « Domaine », cliquez sur « Activer la découverte de réseau », puis sur « Enregistrer les modifications ».

Si vous ne souhaitez pas afficher les imprimantes d’un certain type, activez cette stratégie et définissez le nombre d’imprimantes à afficher à 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.

If you enable this policy setting, it sets the maximum number of printers (of each type) that the Add Printer wizard will display on a computer on a managed network (when the computer is able to reach a domain controller, e.g. a domain-joined laptop on a corporate network.)

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

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

In order to view available Web Services printers on your network, ensure that network discovery is turned on. To turn on network discovery, click "Start", click "Control Panel", and then click "Network and Internet". On the "Network and Internet" page, click "Network and Sharing Center". On the Network and Sharing Center page, click "Change advanced sharing settings". On the Advanced sharing settings page, click the arrow next to "Domain" arrow, click "turn on network discovery", and then click "Save changes".

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
DomainDisplayPrinters_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/DomainPrinters
$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 'DomainDisplayPrinters_State' -Value 2 -Type DWord
# Nombre d’imprimantes Active Directory
Set-ItemProperty -Path $k -Name 'DomainADprinters' -Value 20 -Type DWord  # maximum 1000
# Nombre d’imprimantes TCT/IP
Set-ItemProperty -Path $k -Name 'DomainIPprinters' -Value 0 -Type DWord  # maximum 1000
# Nombre d’imprimantes des services Web
Set-ItemProperty -Path $k -Name 'DomainWSDprinters' -Value 0 -Type DWord  # maximum 1000
# Nombre d’imprimantes Bluetooth
Set-ItemProperty -Path $k -Name 'DomainBluetoothprinters' -Value 10 -Type DWord  # maximum 1000
# Nombre d’imprimantes partagées
Set-ItemProperty -Path $k -Name 'DomainShareprinters' -Value 0 -Type DWord  # maximum 1000

Désactiver

# Désactiver : Printing/DomainPrinters
$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 'DomainDisplayPrinters_State' -Value 1 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : Printing/DomainPrinters
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
Remove-ItemProperty -Path $k -Name 'DomainDisplayPrinters_State' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DomainADprinters' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DomainIPprinters' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DomainWSDprinters' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DomainBluetoothprinters' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'DomainShareprinters' -ErrorAction SilentlyContinue

Options (5)

LibelléContrôleValeur de registreType REGContraintes / détails
Nombre d’imprimantes Active DirectoryNumber of directory printersADprintersZone numériquedecimalDomainADprintersREG_DWORD
Max : 1000 · Défaut (interface) : 20
Nombre d’imprimantes TCT/IPNumber of TCP/IP printersIPprintersZone numériquedecimalDomainIPprintersREG_DWORD
Max : 1000 · Défaut (interface) : 0
Nombre d’imprimantes des services WebNumber of Web Services PrintersWSDprintersZone numériquedecimalDomainWSDprintersREG_DWORD
Max : 1000 · Défaut (interface) : 0
Nombre d’imprimantes BluetoothNumber of Bluetooth printersBluetoothprintersZone numériquedecimalDomainBluetoothprintersREG_DWORD
Max : 1000 · Défaut (interface) : 10
Nombre d’imprimantes partagéesNumber of shared printersShareprintersZone numériquedecimalDomainShareprintersREG_DWORD
Max : 1000 · Défaut (interface) : 0

Disponibilité