winget install --id=PolarGoose.CoffeeBean -e
A tray icon utility to prevent a policy-enforced screen lock in Windows.
A utility to prevent a policy-enforced screen lock in Windows.
Windows can be configured to lock the screen after some time of inactivity.
In case corporate IT policies enforce this option, it is impossible to disable it via Windows settings.
This utility is a convenient and reliable way to solve this problem.
CoffeeBean.exe.zip
(portable executable) or CoffeeBean.msi
from the latest release%AppData%\CoffeeBean
folder and create a desktop icon.Win+L
)Close
in the tray icon context menu. After the utility is closed, the locking behavior returns to what it was before you started the utilityLaunch at startup
context menu item if you want the application to run at Windows startup.Enable
context menu item to turn the screen lock prevention functionality on or off.There are command line arguments to control screen lock functionality. You can use them in the following way:
CoffeeBean.exe enable
CoffeeBean.exe disable
The application uses SetThreadExecutionState WinAPI method, which allows an application to keep the system "in use" even if there is no user activity. It is better than simulating key presses or mouse movements. For instance, it is the function that video players use to keep the screen on while playing a video.
Visual Studio 2022
with Wix Toolset Visual Studio 2022 Extension and Wix Toolsetgithub/workflows/build.ps1
to build a release (to run this script git.exe
should be in your PATH)