Open in the explorer

Default idle detection setting

Type
Computer and user
GPO path
Computer Configuration › Policies › Administrative Templates › Microsoft Edge › Content settings User Configuration › Policies › Administrative Templates › Microsoft Edge › Content settings
Supported on
Microsoft Edge version 145, Windows 7 or later
ADMX file
msedge.admx
Internal name
msedge/DefaultIdleDetectionSetting

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\Edge
HKEY_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 DWord

Disable

# 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 SilentlyContinue

User (HKCU)

Enable

Disable

Revert to "Not configured"

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Idle detectionDefaultIdleDetectionSettingDrop-down listenumDefaultIdleDetectionSettingREG_DWORD
LabelValue
Allow sites to detect idle state without asking the userREG_DWORD = 1
Do not allow any site to detect the user's idle stateREG_DWORD = 2
Ask every time a site wants to detect the user's idle stateREG_DWORD = 3

Application

Microsoft Edge (+ Edge Update, WebView2) (Microsoft) — November 2026 templates

Official templates downloaded on November 12, 2026.