Computer location
Emplacement de l’ordinateur
Explanation
If this policy setting is enabled, it specifies the default location criteria used when searching for printers.
This setting is a component of the Location Tracking feature of Windows printers. To use this setting, enable Location Tracking by enabling the "Pre-populate printer search location text" setting.
When Location Tracking is enabled, the system uses the specified location as a criterion when users search for printers. The value you type here overrides the actual location of the computer conducting the search.
Type the location of the user's computer. When users search for printers, the system uses the specified location (and other search criteria) to find a printer nearby. You can also use this setting to direct users to a particular printer or group of printers that you want them to use.
If you disable this setting or do not configure it, and the user does not type a location as a search criterion, the system searches for a nearby printer based on the IP address and subnet mask of the user's computer.
Lorsqu’il est activé, ce paramètre de stratégie spécifie les critères d’emplacement par défaut utilisés lors de la recherche d’imprimantes.
Ce paramètre est un composant de la fonctionnalité Recherche d’emplacement des imprimantes Windows. Pour l’utiliser, activez la Recherche d’emplacement en activant le paramètre « Préparer le texte de recherche d’emplacement d’imprimante ».
Lorsque la Recherche d’emplacement est activée, le système utilise l’emplacement spécifié comme critère lorsque des utilisateurs recherchent des imprimantes. La valeur entrée ici remplace l’emplacement réel de l’ordinateur qui effectue la recherche.
Tapez l’emplacement de l’ordinateur de l’utilisateur. Quand un utilisateur recherche des imprimantes, l’ordinateur utilise l’emplacement spécifié (et d’autres critères de recherche) pour trouver une imprimante proche. Vous pouvez également utiliser ce paramètre pour diriger les utilisateurs vers une imprimante ou un groupe d’imprimantes spécifique que vous voulez qu’ils utilisent.
Si ce paramètre est désactivé ou s’il n’est pas configuré, et que l’utilisateur n’indique pas d’emplacement comme critère de recherche, le système recherche une imprimante proche en se basant sur l’adresse IP et le masque de sous-réseau de l’ordinateur de l’utilisateur.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers- 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/PhysicalLocation
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Location
Set-ItemProperty -Path $k -Name 'PhysicalLocation' -Value '<value>' -Type StringDisable
# Disable: Printing/PhysicalLocation
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Printing/PhysicalLocation
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers'
Remove-ItemProperty -Path $k -Name 'PhysicalLocation' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| LocationEmplacementPhysicalLocation_Name | Text boxtext | PhysicalLocation | REG_SZ | Max length: 259 |