Open in the explorer

Pre-populate printer search location text

Préparer le texte de recherche d’emplacement d’imprimante

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Printers FR: Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
Printing.admx
Internal name
Printing/PhysicalLocationSupport

Explanation

Enables the physical Location Tracking setting for Windows printers.

Use Location Tracking to design a location scheme for your enterprise and assign computers and printers to locations in the scheme. Location Tracking overrides the standard method used to locate and associate computers and printers. The standard method uses a printer's IP address and subnet mask to estimate its physical location and proximity to computers.

If you enable this setting, users can browse for printers by location without knowing the printer's location or location naming scheme. Enabling Location Tracking adds a Browse button in the Add Printer wizard's Printer Name and Sharing Location screen and to the General tab in the Printer Properties dialog box. If you enable the Group Policy Computer location setting, the default location you entered appears in the Location field by default.

If you disable this setting or do not configure it, Location Tracking is disabled. Printer proximity is estimated using the standard method (that is, based on IP address and subnet mask).

French text from Windows 11 26H2

Active le paramètre Recherche d’emplacement physique des imprimantes Windows.

La Recherche d’emplacement vous permet de créer un schéma d’emplacement pour votre entreprise et d’assigner des ordinateurs et des imprimantes à des emplacements de ce schéma. La Recherche d’emplacement remplace la méthode standard utilisée pour rechercher et associer des utilisateurs et des imprimantes. La méthode standard utilise l’adresse IP et le masque de sous-réseau d’une imprimante pour déterminer son emplacement physique et la proximité des ordinateurs.

Si vous activez ce paramètre, les utilisateurs peuvent rechercher des imprimantes par emplacement sans connaître l’emplacement de l’imprimante, ni le schéma de nom des emplacements. L’activation de la Recherche d’emplacement ajoute un bouton Parcourir dans l’écran Nom d’imprimante et emplacement de partage de l’Assistant Ajout d’une imprimante, ainsi que sous l’onglet Général de la boîte de dialogue Propriétés de l’imprimante. Si vous activez le paramètre Emplacement de l’ordinateur de la stratégie de groupe, l’emplacement par défaut que vous entrez s’affiche par défaut dans le champ Emplacement.

Si vous désactivez ce paramètre ou si vous ne le configurez pas, la Recherche d’emplacement est désactivée. La proximité des imprimantes est estimée à l’aide de la méthode standard (c’est-à-dire en se basant sur l’adresse IP et le masque de sous-réseau).

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers
Value name
PhysicalLocationSupport
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

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/PhysicalLocationSupport
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PhysicalLocationSupport' -Value 1 -Type DWord

Disable

# Disable: Printing/PhysicalLocationSupport
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PhysicalLocationSupport' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Printing/PhysicalLocationSupport
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'PhysicalLocationSupport' -ErrorAction SilentlyContinue

Availability