Default sensors setting
Explanation
Set whether websites can access and use sensors such as motion and light sensors. You can completely block or allow websites to get access to sensors.
Setting the policy to 1 lets websites access and use sensors. Setting the policy to 2 denies access to sensors. Setting the policy to 3 is intended to prompt the user when a site requests access to sensors, but this option isn't yet supported; if you select it, websites can still access and use sensors.
You can override this policy for specific URL patterns by using the 'SensorsAllowedForUrls' (Allow access to sensors on specific sites) and 'SensorsBlockedForUrls' (Block access to sensors on specific sites) policies.
If you don't configure this policy, websites can access and use sensors, and users can change this setting. This setting is the global default for 'SensorsAllowedForUrls' and 'SensorsBlockedForUrls'.
Policy options mapping:
* AllowSensors (1) = Allow sites to access sensors
* BlockSensors (2) = Do not allow any site to access sensors
* AskSensors (3) = Ask whenever a site wants to access sensors (This policy is not yet supported)
Use the preceding information when configuring this policy.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\EdgeHKEY_CURRENT_USER\Software\Policies\Microsoft\Edge- 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.
Computer (HKLM)
Enable
# Enable: msedge/DefaultSensorsSetting
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Default sensors setting
# Possible options:
# Allow sites to access sensors = 1
# Do not allow any site to access sensors = 2
# Ask whenever a site wants to access sensors (This policy is not yet supported) = 3
Set-ItemProperty -Path $k -Name 'DefaultSensorsSetting' -Value 1 -Type DWordDisable
# Disable: msedge/DefaultSensorsSetting
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msedge/DefaultSensorsSetting
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'DefaultSensorsSetting' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Default sensors settingDefaultSensorsSetting | Drop-down listenum | DefaultSensorsSetting | REG_DWORD |
|
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.