

I have not taken the time to test this because I've re-enabled the system shortcut, but I assume that it works.To lock the screen on your Mac immediately using a swift keyboard shortcut: In the comments below, user lub094 suggests a way to assign the shortcut to the chord Ctrl- Alt- L (or whatever shortcut you'd like).

The screen will not lock immediately, but it should lock within a few seconds.īelow is a picture of the taskbar shortcut I made (using this icon):ĮDIT: Using a chord, such as Ctrl- Alt- L You do not need to wait for the search to load you can quickly press Win, L, Enter in sequence and walk away. the shortcut will be called, and your computer will lock. Enter - once the search finds an item, it will be launched-i.e.( Verify this before attempting to lock your computer this way!) L - searches for the custom lock-script on my machine, the lock.bat shortcut was always the first L result if it was the only shortcut on my taskbar starting with L.Win - brings up the Start menu, although you don't actually need to wait for it to load.

This is because that sequence is interpreted as follows:

In DisableLockWorkstation.reg: Windows Registry Editor Version 5.00 This is the same as in Brent Foust's answer. Locking can either be done via a shortcut on the taskbar or by pressing them in sequence followed by Enter.įirst, create a batch file that can toggle system locking and trigger the lock itself instructions for doing this are taken from a forum post:Ĭreate reg-edit files for turning system locking on or off. Here is a method that actually provides a way to lock the computer without the Win- L chord. The registry-based solution on its own completely disables locking the system (even via the Start menu).
