Bug Report
Title: Registry values not cleaned up on exit via power button — Windows power options permanently disabled
Describe the bug
When closing SEB using the integrated power button (with or without a quit password), the NoClose registry value is intermittently not deleted after SEB exits.
This causes Windows to permanently hide the power/energy options from the Start Menu and taskbar. The restriction survives reboots since the value is written to the persistent machine and user registry hives.
To Reproduce
- Launch SEB with any config (password-protected quit or confirmation-only).
- Close SEB using the integrated power button in the SEB taskbar.
- After SEB fully exits, open
regedit and check for NoClose (DWORD 1) in:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
HKEY_USERS\<SID>\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
- Reboot the machine.
- Observe: Windows power/energy options are still missing from the Start Menu and taskbar after reboot.
Expected behavior
All registry values set during an exam session are fully reverted on exit, regardless of how SEB is closed.
Actual behavior
The NoClose DWORD persists permanently in the registry after exit. Power/energy options remain hidden even after rebooting. The only resolution is manually deleting the value via regedit.
Workaround
Manually delete NoClose from:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
HKEY_USERS\<SID>\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
Environment
- OS: Windows 10 / 11
- Reproducibility: Intermittent — more likely when the
Explorer\Policies subkey did not already exist before SEB launched
Additional context
The issue appears to be in the lockdown feature configuration restore/cleanup path (SafeExamBrowser.Lockdown). Specifically, MachinePowerOptionsConfiguration and UserPowerOptionsConfiguration silently fail to revert their changes on shutdown under certain registry key states.
Bug Report
Title: Registry values not cleaned up on exit via power button — Windows power options permanently disabled
Describe the bug
When closing SEB using the integrated power button (with or without a quit password), the
NoCloseregistry value is intermittently not deleted after SEB exits.This causes Windows to permanently hide the power/energy options from the Start Menu and taskbar. The restriction survives reboots since the value is written to the persistent machine and user registry hives.
To Reproduce
regeditand check forNoClose(DWORD1) in:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\ExplorerHKEY_USERS\<SID>\Software\Microsoft\Windows\CurrentVersion\Policies\ExplorerExpected behavior
All registry values set during an exam session are fully reverted on exit, regardless of how SEB is closed.
Actual behavior
The
NoCloseDWORD persists permanently in the registry after exit. Power/energy options remain hidden even after rebooting. The only resolution is manually deleting the value viaregedit.Workaround
Manually delete
NoClosefrom:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\ExplorerHKEY_USERS\<SID>\Software\Microsoft\Windows\CurrentVersion\Policies\ExplorerEnvironment
Explorer\Policiessubkey did not already exist before SEB launchedAdditional context
The issue appears to be in the lockdown feature configuration restore/cleanup path (
SafeExamBrowser.Lockdown). Specifically, MachinePowerOptionsConfiguration and UserPowerOptionsConfiguration silently fail to revert their changes on shutdown under certain registry key states.