Introduction
Learn a minimalistic approach to bypassing the Windows lock screen when a client has set a timeout rule that the client has disabled, altering the timeout value.
All work is done in a console project rather than in the system tray, as the user may not have permission to run it as a Windows startup application.
Code flow
- Minimize application to Windows taskbar
- Disable the screen saver and monitor sleep see the following code.
- Stops with a Console.ReadLine
- Restore window, press ENTER to restore normal lock timeout, see the following code.
Source code
Written with Microsoft Visual Studio 2026, NET 10 Framework.

Top comments (0)