Detectie van toeschouwers forceren: registerwaarde ForceOnlookerDetectionComputerHKLM\Software\Policies\Microsoft\HumanPresence

Beleids-ID
ForceOnlookerDetection
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

ForceOnlookerDetection

-Computer

ForceOnlookerDetection

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
Geforceerd aan1
Geforceerd uit2
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
"ForceOnlookerDetection"=dword:00000000
; Geforceerd aan
"ForceOnlookerDetection"=dword:00000001
; Geforceerd uit
"ForceOnlookerDetection"=dword:00000002
CMD
:: Opties (gebruik er maar één)

:: Wordt standaard ingesteld op gebruikersselectie
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetection" /t REG_DWORD /d 0 /f
:: Geforceerd aan
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetection" /t REG_DWORD /d 1 /f
:: Geforceerd uit
reg add "HKLM\Software\Policies\Microsoft\HumanPresence" /v "ForceOnlookerDetection" /t REG_DWORD /d 2 /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 'ForceOnlookerDetection' -PropertyType DWord -Value 0 -Force | Out-Null
# Geforceerd aan
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceOnlookerDetection' -PropertyType DWord -Value 1 -Force | Out-Null
# Geforceerd uit
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\HumanPresence' -Name 'ForceOnlookerDetection' -PropertyType DWord -Value 2 -Force | Out-Null