Force Onlooker Detection Action: registry value ForceOnlookerDetectionActionComputerHKLM\Software\Policies\Microsoft\HumanPresence
- Policy ID
- ForceOnlookerDetectionAction
- Scope
- Computer Configuration
- Supported on
- At least Windows 11 Version 24H2
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- Windows Components › Human Presence
Registry
ForceOnlookerDetectionAction
-ComputerHKLM\Software\Policies\Microsoft\HumanPresence Current key
ForceOnlookerDetectionAction
REG_DWORDComputerHKLM\Software\Policies\Microsoft\HumanPresence Current key
- Enabled value
- Depends on the option value
- Element
- Choose one of the following actions
| Item | Stored value |
|---|---|
| Defaults to user choice | 0 |
| Notify | 2 |
| Dim and Notify | 3 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\HumanPresence] ; Options (use only one) ; Defaults to user choice "ForceOnlookerDetectionAction"=dword:00000000 ; Notify "ForceOnlookerDetectionAction"=dword:00000002 ; Dim and Notify "ForceOnlookerDetectionAction"=dword:00000003
CMD
:: Options (use only one) :: Defaults to user choice reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetectionAction" /t REG_DWORD /d 0 /f :: Notify reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetectionAction" /t REG_DWORD /d 2 /f :: Dim and Notify reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetectionAction" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Force | Out-Null # Options (use only one) # Defaults to user choice New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceOnlookerDetectionAction' -PropertyType DWord -Value 0 -Force | Out-Null # Notify New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceOnlookerDetectionAction' -PropertyType DWord -Value 2 -Force | Out-Null # Dim and Notify New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceOnlookerDetectionAction' -PropertyType DWord -Value 3 -Force | Out-Null