Hide the geographic location option
Masquer l’option d’emplacement géographique
Explanation
This policy setting removes the option to change the user's geographical location (GeoID) from the Region settings control panel.
This policy setting is used only to simplify the Regional Options control panel.
If you enable this policy setting, the user does not see the option to change the GeoID. This does not prevent the user or an application from changing the GeoID programmatically.
If you disable or do not configure this policy setting, the user sees the option for changing the user location (GeoID).
Note: Even if a user can see the GeoID option, the "Disallow changing of geographical location" option can prevent them from actually changing their current geographical location.
Ce paramètre de stratégie supprime l’option permettant de modifier l’emplacement géographique de l’utilisateur (GeoID) dans l’application Paramètres régionaux du Panneau de configuration.
Ce paramètre de stratégie sert uniquement à simplifier l’application Options régionales du Panneau de configuration.
Si ce paramètre de stratégie est activé, l’utilisateur ne voit pas l’option permettant de modifier la valeur GeoID. Cela n’empêche pas l’utilisateur ou une application de modifier la valeur GeoID par programme.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, l’utilisateur peut voir l’option permettant de modifier l’emplacement de l’utilisateur.
Remarque : même si un utilisateur peut voir l’option GeoID, l’option « Interdire le changement d’emplacement géographique » peut l’empêcher de modifier son emplacement géographique actuel.
Registry
HKEY_CURRENT_USER\Software\Policies\Microsoft\Control Panel\International- Value name
HideCurrentLocation
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_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: Globalization/HideCurrentLocation
$k = 'HKCU:\Software\Policies\Microsoft\Control Panel\International'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'HideCurrentLocation' -Value 1 -Type DWordDisable
# Disable: Globalization/HideCurrentLocation
$k = 'HKCU:\Software\Policies\Microsoft\Control Panel\International'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'HideCurrentLocation' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Globalization/HideCurrentLocation
$k = 'HKCU:\Software\Policies\Microsoft\Control Panel\International'
Remove-ItemProperty -Path $k -Name 'HideCurrentLocation' -ErrorAction SilentlyContinue