Default idle detection setting
Explanation
Setting this policy to 1 - AllowIdleDetection allows websites to use the Idle Detection API without requesting user permission.
Setting this policy to 2 - BlockIdleDetection prevents websites from using the Idle Detection API.
Setting this policy to 3 - AskIdleDetection requires websites to request user permission each time before using the Idle Detection API.
If you do not configure this policy, users can decide whether to allow the Idle Detection API and can change this setting themselves.
Policy options mapping:
* AllowIdleDetection (1) = Allow sites to detect idle state without asking the user
* BlockIdleDetection (2) = Do not allow any site to detect the user's idle state
* AskIdleDetection (3) = Ask every time a site wants to detect the user's idle state
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/DefaultIdleDetectionSetting
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Idle detection
# Possible options:
# Allow sites to detect idle state without asking the user = 1
# Do not allow any site to detect the user's idle state = 2
# Ask every time a site wants to detect the user's idle state = 3
Set-ItemProperty -Path $k -Name 'DefaultIdleDetectionSetting' -Value 1 -Type DWordDisable
# Disable: msedge/DefaultIdleDetectionSetting
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": msedge/DefaultIdleDetectionSetting
$k = 'HKLM:\Software\Policies\Microsoft\Edge'
Remove-ItemProperty -Path $k -Name 'DefaultIdleDetectionSetting' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Idle detectionDefaultIdleDetectionSetting | Drop-down listenum | DefaultIdleDetectionSetting | REG_DWORD |
|
Application
Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates
Official templates downloaded on November 12, 2026.