r/Surface • u/North_Measurement213 • 12h ago
[WINDOWS] I fixed Windows Hello face unlock in the dark on my Surface Laptop 7 without disabling the webcam
Like a lot of people, I noticed Windows Hello face recognition completely stopped working in dark rooms after Microsoft pushed the security update that requires both the IR sensor and the regular color webcam to see your face at the same time (CVE-2025-26644).
If you use your laptop at night, it is super annoying. The usual workaround is disabling the regular webcam in Device Manager or running a background script that turns it off every time you lock the screen, which either breaks video calls or gets messy with sleep and wake.
Instead of disabling the webcam, I wrote a small PowerShell script that simply unlinks the color camera from the Windows Hello sensor group (FSSensorGroupId and FaceAuth_Mode) and clears the cached SWD\SGDEVAPI group device. After doing that, Windows Hello only sees the IR sensor again and unlocks in pitch darkness, while the regular webcam stays on 100% of the time for Teams, Zoom, and the Camera app.
I put it on GitHub in case it helps someone else: https://github.com/enese94/windows-hello-ir-only
A few quick notes:
- It detects the camera IDs dynamically and works in any Windows language (my laptop is in Portuguese).
- You can run
.\Check-WindowsHelloStatus.ps1first to see if your laptop uses this setup, or.\Enable-WindowsHelloIROnly.ps1 -DryRunto preview what it would change. - It automatically exports
.regbackups before touching anything, and.\Restore-WindowsHelloDefault.ps1puts everything back to Microsoft's defaults. - I tested this on a Surface Laptop 7 (Windows 11). It should work on other Windows 11 laptops that group the IR and RGB cameras the same way, though single-sensor hybrid cameras will just show as not applicable and stay untouched.
- Just keep in mind that going back to IR-only removes the extra RGB anti-spoofing check Microsoft added for CVE-2025-26644, so decide if you are okay with that trade-off.
Hope this saves someone else from typing their PIN in the dark every night.