Add Printer wizard - Network scan page (Unmanaged network)
Assistant Ajout d’imprimante - Page d’analyse réseau (réseau non géré)
Explanation
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.
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.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\Wizard- Value name
NonDomainDisplayPrinters_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/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
# Number of TCP/IP printers
Set-ItemProperty -Path $k -Name 'NonDomainIPprinters' -Value 50 -Type DWord # maximum 1000
# Number of Web Services Printers
Set-ItemProperty -Path $k -Name 'NonDomainWSDprinters' -Value 50 -Type DWord # maximum 1000
# Number of Bluetooth printers
Set-ItemProperty -Path $k -Name 'NonDomainBluetoothprinters' -Value 10 -Type DWord # maximum 1000
# Number of shared printers
Set-ItemProperty -Path $k -Name 'NonDomainShareprinters' -Value 50 -Type DWord # maximum 1000Disable
# Disable: 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 DWordRevert to "Not configured"
# Revert to "Not configured": 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 SilentlyContinueOptions (4)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Number of TCP/IP printersNombre d’imprimantes TCT/IPIPprinters | Numeric boxdecimal | NonDomainIPprinters | REG_DWORD | Max: 1000 · Default (UI): 50 |
| Number of Web Services PrintersNombre d’imprimantes des services WebWSDprinters | Numeric boxdecimal | NonDomainWSDprinters | REG_DWORD | Max: 1000 · Default (UI): 50 |
| Number of Bluetooth printersNombre d’imprimantes BluetoothBluetoothprinters | Numeric boxdecimal | NonDomainBluetoothprinters | REG_DWORD | Max: 1000 · Default (UI): 10 |
| Number of shared printersNombre d’imprimantes partagéesShareprinters | Numeric boxdecimal | NonDomainShareprinters | REG_DWORD | Max: 1000 · Default (UI): 50 |