Open in the explorer

Default Active Directory path when searching for printers

Chemin Active Directory par défaut pour la recherche d’imprimantes

Type
User
GPO path
User Configuration › Policies › Administrative Templates › Control Panel › Printers FR: Configuration utilisateur › Stratégies › Modèles d'administration › Panneau de configuration › Imprimantes
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
Printing.admx
Internal name
Printing/PrinterDirectorySearchScope

Explanation

Specifies the Active Directory location where searches for printers begin.

The Add Printer Wizard gives users the option of searching Active Directory for a shared printer.

If you enable this policy setting, these searches begin at the location you specify in the "Default Active Directory path" box. Otherwise, searches begin at the root of Active Directory.

This setting only provides a starting point for Active Directory searches for printers. It does not restrict user searches through Active Directory.

French text from Windows 11 26H2

Spécifie l’emplacement dans Active Directory à partir duquel les recherches d’imprimantes doivent démarrer.

L’Assistant Ajout d’imprimante permet aux utilisateurs de rechercher une imprimante partagée dans Active Directory.

Si vous activez ce paramètre de stratégie, ces recherches débutent à l’emplacement spécifié dans la zone « Chemin Active Directory par défaut ». Dans le cas contraire, les recherches débutent à la racine d’Active Directory.

Ce paramètre fournit uniquement un point de départ pour les recherches d’imprimantes dans Active Directory. Il ne restreint pas la recherche de l’utilisateur dans l’annuaire Active Directory.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows NT\Printers\Wizard
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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/PrinterDirectorySearchScope
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Default Active Directory path
Set-ItemProperty -Path $k -Name 'Default Search Scope' -Value '<value>' -Type String

Disable

# Disable: Printing/PrinterDirectorySearchScope
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Printing/PrinterDirectorySearchScope
$k = 'HKCU:\Software\Policies\Microsoft\Windows NT\Printers\Wizard'
Remove-ItemProperty -Path $k -Name 'Default Search Scope' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Default Active Directory pathChemin Active Directory par défautPrinterDirectorySearchScope_NameText boxtextDefault Search ScopeREG_SZ
Max length: 255

Availability