Turn off browser geolocation
Désactiver la géolocalisation du navigateur
Explanation
This policy setting allows you to disable browser geolocation support. This will prevent websites from requesting location data about the user.
If you enable this policy setting, browser geolocation support is turned off.
If you disable this policy setting, browser geolocation support is turned on.
If you do not configure this policy setting, browser geolocation support can be turned on or off in Internet Options on the Privacy tab.
Ce paramètre de stratégie vous permet de désactiver la prise en charge de la géolocalisation du navigateur. Cela empêche les sites Web de demander les données d’emplacement relatives à l’utilisateur.
Si vous activez ce paramètre de stratégie, la prise en charge de la géolocalisation du navigateur est désactivée.
Si vous désactivez ce paramètre de stratégie, la prise en charge de la géolocalisation du navigateur est activée.
Si vous ne configurez pas ce paramètre de stratégie, la prise en charge de la géolocalisation du navigateur peut être activée ou désactivée dans Options Internet sous l’onglet Confidentialité.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Internet Explorer\GeolocationHKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Geolocation- Value name
PolicyDisableGeolocation
| 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.
Computer (HKLM)
Enable
# Enable: inetres/GeolocationDisable
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Geolocation'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PolicyDisableGeolocation' -Value 1 -Type DWordDisable
# Disable: inetres/GeolocationDisable
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Geolocation'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PolicyDisableGeolocation' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": inetres/GeolocationDisable
$k = 'HKLM:\Software\Policies\Microsoft\Internet Explorer\Geolocation'
Remove-ItemProperty -Path $k -Name 'PolicyDisableGeolocation' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"