Add Printer wizard - Network scan page (Managed network)
Assistant Ajout d’imprimante - Page d’analyse réseau (réseau géré)
Explanation
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.
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.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\Wizard- Value name
DomainDisplayPrinters_State
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 2 |
| Disabled | REG_DWORD = 1 |
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: 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
# Number of directory printers
Set-ItemProperty -Path $k -Name 'DomainADprinters' -Value 20 -Type DWord # maximum 1000
# Number of TCP/IP printers
Set-ItemProperty -Path $k -Name 'DomainIPprinters' -Value 0 -Type DWord # maximum 1000
# Number of Web Services Printers
Set-ItemProperty -Path $k -Name 'DomainWSDprinters' -Value 0 -Type DWord # maximum 1000
# Number of Bluetooth printers
Set-ItemProperty -Path $k -Name 'DomainBluetoothprinters' -Value 10 -Type DWord # maximum 1000
# Number of shared printers
Set-ItemProperty -Path $k -Name 'DomainShareprinters' -Value 0 -Type DWord # maximum 1000Disable
# Disable: 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 DWordRevert to "Not configured"
# Revert to "Not configured": 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 SilentlyContinueOptions (5)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Number of directory printersNombre d’imprimantes Active DirectoryADprinters | Numeric boxdecimal | DomainADprinters | REG_DWORD | Max: 1000 · Default (UI): 20 |
| Number of TCP/IP printersNombre d’imprimantes TCT/IPIPprinters | Numeric boxdecimal | DomainIPprinters | REG_DWORD | Max: 1000 · Default (UI): 0 |
| Number of Web Services PrintersNombre d’imprimantes des services WebWSDprinters | Numeric boxdecimal | DomainWSDprinters | REG_DWORD | Max: 1000 · Default (UI): 0 |
| Number of Bluetooth printersNombre d’imprimantes BluetoothBluetoothprinters | Numeric boxdecimal | DomainBluetoothprinters | REG_DWORD | Max: 1000 · Default (UI): 10 |
| Number of shared printersNombre d’imprimantes partagéesShareprinters | Numeric boxdecimal | DomainShareprinters | REG_DWORD | Max: 1000 · Default (UI): 0 |