rundll32.exe user32.dll,LockWorkStation
If the Win + L shortcut fails, consider the following diagnostics: windows shortcut lock screen
To ensure security even if the user forgets to lock manually, Windows can lock automatically after a set period of inactivity. rundll32
rundll32.exe user32.dll,LockWorkStation
Now pressing Ctrl + Alt + L locks your screen without any mouse movement. windows shortcut lock screen