Open in the explorer

Disallow changing of geographic location

Interdire le changement d’emplacement géographique

Type
User
GPO path
User Configuration › Policies › Administrative Templates › System › Locale Services FR: Configuration utilisateur › Stratégies › Modèles d'administration › Système › Services Paramètres régionaux
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
Globalization.admx
Internal name
Globalization/PreventGeoIdChange_1

Explanation

This policy setting prevents users from changing their user geographical location (GeoID).

If you enable this policy setting, users cannot change their GeoID.

If you disable or do not configure this policy setting, users may select any GeoID.

If you enable this policy setting at the computer level, it cannot be disabled by a per-user policy setting. If you disable this policy setting at the computer level, the per-user policy is ignored. If you do not configure this policy setting at the computer level, restrictions are based on per-user policy settings.

To set this policy setting on a per-user basis, make sure that the per-computer policy setting is not configured.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche les utilisateurs de changer leur emplacement géographique (GeoID).

Si vous activez ce paramètre de stratégie, les utilisateurs ne peuvent pas modifier leur emplacement géographique.

Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les utilisateurs peuvent sélectionner tout emplacement géographique.

Si vous activez ce paramètre de stratégie au niveau de l’ordinateur, il ne peut pas être désactivé par un paramètre de stratégie au niveau de l’utilisateur. Si vous désactivez ce paramètre de stratégie au niveau de l’ordinateur, la stratégie au niveau de l’utilisateur est ignorée. Si vous ne configurez pas ce paramètre de stratégie au niveau de l’ordinateur, les limitations reposent sur les paramètres de stratégie au niveau de l’utilisateur.

Pour définir ce paramètre de stratégie au niveau de l’utilisateur, vérifiez que le paramètre de stratégie au niveau de l’ordinateur n’est pas configuré.

Registry

HKEY_CURRENT_USER\Software\Policies\Microsoft\Control Panel\International
Value name
PreventGeoIdChange
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: Globalization/PreventGeoIdChange_1
$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 'PreventGeoIdChange' -Value 1 -Type DWord

Disable

# Disable: Globalization/PreventGeoIdChange_1
$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 'PreventGeoIdChange' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Globalization/PreventGeoIdChange_1
$k = 'HKCU:\Software\Policies\Microsoft\Control Panel\International'
Remove-ItemProperty -Path $k -Name 'PreventGeoIdChange' -ErrorAction SilentlyContinue

Availability