How to Disable Windows L: Lock Screen Shortcut
In this article
Pressing Windows + L locks your PC instantly. If you want to disable this shortcut—for a shared computer, kiosk mode, or to avoid accidental locks—you can do it via the Windows Registry, but there is no built-in toggle. The steps below show you how to remove the shortcut's effect, with a warning that this also disables the lock screen itself. You'll need administrator access.
What You'll Need
- A Windows PC with administrator privileges (local admin account).
- Access to the Registry Editor (regedit.exe).
- Backup of your registry (optional but recommended).
Step-by-Step
- Open Registry Editor. Press Win + R, type
regedit, and press Enter. Click Yes if prompted by User Account Control. - Back up the registry (recommended). In Registry Editor, click File > Export, choose a location, name the file (e.g.,
registry-backup), and click Save. This creates a .reg file you can double-click to restore if needed. - Navigate to the policy key. In the left pane, go to:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System
If theSystemkey does not exist, right-click onPolicies, select New > Key, and name itSystem. - Create a new DWORD value. Right-click in the right pane, select New > DWORD (32-bit) Value, and name it
DisableLockWorkstation. - Set the value to 1. Double-click the new value, change Value data to
1, and click OK. - Restart your PC. The change takes effect after a restart. After rebooting, pressing Windows + L will no longer lock the screen.
Note: This method disables the lock screen entirely for the current user. It does not disable other lock methods (like Ctrl+Alt+Delete then Lock).
Common Mistakes
- Editing the wrong registry hive. Make sure you are in
HKEY_CURRENT_USER, notHKEY_LOCAL_MACHINE. The latter requires more steps and may not work for a single user. - Typo in the value name. The value must be exactly
DisableLockWorkstation(case doesn't matter, but spelling does). - Setting the value to 0 instead of 1. A value of 0 means the shortcut remains enabled.
- Not restarting. The change only applies after a restart, not immediately.
- Forgetting to back up. If you make a mistake, you may need to restore from backup.
Tips
- Use a keyboard remapper instead. If you only want to change the shortcut (not disable the lock screen), use a third-party tool like AutoHotkey to remap
Win+Lto something harmless. This is safer and reversible. - Test with a temporary account. If you're unsure, create a test user account and apply the registry change there first.
- Know the trade-off. Disabling this shortcut also disables the lock screen, meaning you can't lock the PC manually via the Start menu (clicking your avatar > Lock) either. If you need to lock, use Ctrl+Alt+Delete > Lock instead.
- Group Policy alternative. On Windows Pro/Enterprise, you can use
gpedit.mscto set Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options and enable Interactive logon: Do not require CTRL+ALT+DEL—but that doesn't disable Win+L; it's a separate setting.
Troubleshooting
- Win+L still locks after restart. Double-check the registry path and value. Ensure you're in the correct user hive. If you're on a domain, Group Policy may override this setting.
- Registry Editor says you don't have permission. You must be logged in as an administrator. If you're not, ask an admin to make the change for you.
- You can't find the Policies\(System) key. Create it manually as described in Step 3. Right-click on
Policiesand choose New > Key. - After disabling, you can't lock your PC at all. Use Ctrl+Alt+Delete > Lock as a workaround, or re-enable by setting
DisableLockWorkstationback to0and restarting. - Change doesn't affect other users. This setting is per-user. Apply it to each user account you want to affect, or use the local machine policy (though that's more complex and not recommended).
Frequently Asked Questions
Does disabling Win+L also disable the lock screen from the Start menu?
Yes. The DisableLockWorkstation value disables the lock workstation feature entirely, so the Start menu's lock option also becomes unavailable.
Can I just remap Win+L without disabling the lock screen?
Yes, using a third-party tool like AutoHotkey or PowerToys Keyboard Manager. This changes the shortcut but keeps the lock screen functional via other methods.
Will this work on Windows 10 and Windows 11?
Yes, the same registry key works on both Windows 10 and Windows 11.
Is there a way to disable only the shortcut but keep the lock screen?
No official way exists in Windows. The registry method disables the lock screen itself. Third-party tools can remap the shortcut, but they don't disable the lock screen—they just reassign the key combo.
What if I want to re-enable it?
Set DisableLockWorkstation back to 0 (or delete the value) and restart. Your lock screen and Win+L shortcut will return.
Does this affect the Ctrl+Alt+Delete lock option?
No, the Ctrl+Alt+Delete menu still shows the Lock option, and that method still works because it's a separate system function.