Detectieactie van toeschouwers forceren: registerwaarde ForceOnlookerDetectionActionComputerHKLM\Software\Policies\Microsoft\HumanPresence

Beleids-ID
ForceOnlookerDetectionAction
Bereik
Computerconfiguratie
Ondersteund op
Minimaal Windows 11 versie 24H2
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Windows-onderdelen › Menselijke aanwezigheid

Register

ForceOnlookerDetectionAction

-Computer

ForceOnlookerDetectionAction

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Kies een van de volgende acties
Opties
ItemOpgeslagen waarde
Wordt standaard ingesteld op gebruikersselectie0
Waarschuwen2
Dimmen en melden3
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\HumanPresence]

; Opties (gebruik er maar één)
; Wordt standaard ingesteld op gebruikersselectie
"ForceOnlookerDetectionAction"=dword:00000000
; Waarschuwen
"ForceOnlookerDetectionAction"=dword:00000002
; Dimmen en melden
"ForceOnlookerDetectionAction"=dword:00000003
CMD
:: Opties (gebruik er maar één)

:: Wordt standaard ingesteld op gebruikersselectie
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetectionAction" /t REG_DWORD /d 0 /f
:: Waarschuwen
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetectionAction" /t REG_DWORD /d 2 /f
:: Dimmen en melden
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetectionAction" /t REG_DWORD /d 3 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Force | Out-Null

# Opties (gebruik er maar één)
# Wordt standaard ingesteld op gebruikersselectie
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceOnlookerDetectionAction' -PropertyType DWord -Value 0 -Force | Out-Null
# Waarschuwen
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceOnlookerDetectionAction' -PropertyType DWord -Value 2 -Force | Out-Null
# Dimmen en melden
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceOnlookerDetectionAction' -PropertyType DWord -Value 3 -Force | Out-Null