The fastest way to lock your screen

The quickest way to lock a Windows computer is to press Windows key + L together. Your screen will go dark, and Windows will return to the login screen. Only someone with your password can unlock it from there.

This keyboard shortcut works on Windows 10, Windows 11, and earlier versions. It locks when ready—you do not have to save your work first or close any programs. Everything stays open in the background; the lock just prevents anyone from seeing or using your computer until you log back in.

If your keyboard does not have a Windows key (some older or compact keyboards skip it), you can use Ctrl + Alt + Delete, then click "Lock" from the menu that appears. It takes one extra step, but it works on any Windows machine.

Key Takeaways

  • Windows key + L is the fastest lock method and works on all Windows versions.
  • Locking your computer leaves all your programs and files open but hides them behind a password-protected screen.
  • You can set your computer to lock automatically after a period of inactivity through Settings.
  • Ctrl + Alt + Delete followed by clicking "Lock" is an alternative if your keyboard lacks a Windows key.

Locking from the Start menu

If you prefer using the mouse, you can lock your computer through the Start menu. Click the Start button (Windows logo in the lower left), then click your user account picture or name in the upper left corner of the Start menu.

A small menu will appear with several options. Click "Lock" and your screen will lock when ready. This method is slower than the keyboard shortcut, but it is straightforward if you are already at the desktop.

Setting your computer to lock automatically

You can tell Windows to lock your screen automatically after you have not used your keyboard or mouse for a set amount of time. This is useful if you step away from your desk and forget to lock manually.

Open Settings by pressing Windows key + I. Go to Accounts on the left side, then click Sign-in options. Scroll down to the section labeled Screen timeout. Under "If you've been away, when should your PC require you to sign in again?", choose how long you want Windows to wait before locking—options usually range from 1 minute to 1 hour.

Once you set this, Windows will lock automatically if your computer sits idle for that length of time. You will still be able to unlock it with your password as usual.

Locking when you use a PIN or biometric login

If you log into Windows with a PIN, fingerprint, or facial recognition instead of a password, locking still works the same way. Press Windows key + L, and your computer locks. When you unlock it, Windows will ask for your PIN, fingerprint, or face scan—whichever method you set up.

The lock screen itself does not change based on your login method. It is the unlock process that uses your chosen authentication. This means you get the same security whether you use a traditional password or a biometric method.

What happens when your computer is locked

When your screen is locked, anyone looking at your monitor cannot see what you were doing. All your open programs, files, and browser tabs remain in memory and running in the background—they do not close. The lock is purely a visual and access barrier.

To unlock, the person at the keyboard must enter your password, PIN, or biometric data. If they enter it wrong, Windows will ask them to try again. There is no time limit on how long a locked computer stays locked; it will remain locked until someone with the correct credentials unlocks it.

Locking is different from putting your computer to sleep. A locked computer is still powered on and using electricity. If you want to save power when stepping away for a long time, you can set your computer to sleep after a certain period, which will lock it first.

Locking a computer on a network or workplace domain

If your computer is connected to a workplace network or domain, your IT department may have set additional lock policies. Some organizations require you to lock your screen after a certain time, or they may have rules about what happens when you lock.

The Windows key + L shortcut still works the same way on a domain-connected computer. However, if you have questions about your workplace's specific lock requirements or policies, contact your IT support team. They can tell you whether any special rules explore to your machine.

Troubleshooting lock issues

If Windows key + L does not work, check whether your keyboard is responding. Try pressing other key combinations to see if the keyboard itself is the problem. If other shortcuts work but the lock shortcut does not, restart your computer and try again.

If your computer locks but you cannot unlock it because you forgot your password, you will need to use your Microsoft account password or a password reset disk if you created one earlier. If you are locked out of a work computer, contact your IT department for help resetting your credentials.

On rare occasions, a frozen or unresponsive computer may not respond to the lock command. If your screen is not responding at all, hold down the power button for 10 seconds to force a shutdown, then turn the computer back on.

Frequently Asked Questions

Does locking my computer save my work?

Locking does not save your work. Any unsaved files remain unsaved when you lock. Before stepping away, save your documents in whatever program you are using. Locking only protects your screen from being seen or used by someone else.

Can someone unlock my computer if they know my password?

Yes. A lock screen protects against casual viewing, but anyone with your password can unlock your computer. If you are concerned about someone accessing your account, change your password through Settings > Accounts > Your info > Password.

What is the difference between locking and logging out?

Locking keeps your programs and files open in the background. Logging out closes all your open programs and returns Windows to the login screen. Locking is faster if you are stepping away briefly; logging out is better if someone else will use the computer next.

Will my computer lock if I close the lid on a laptop?

By default, closing a laptop lid puts the computer to sleep rather than locking it. You can change this in Settings > System > Power & sleep > Additional power settings. Look for "Choose what closing the lid does" to set it to lock or sleep based on your preference.

Can I lock my computer remotely?

Windows does not have a built-in remote lock feature. If you need to find a computer you are not at, you can use Windows Remote Desktop to connect to it and lock it from there, but this requires that feature to be enabled on your machine beforehand.