Disallow changing of geographic location
Interdire le changement d’emplacement géographique
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.
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
| 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/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 DWordDisable
# 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 DWordRevert 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