The fastest way to lock your screen

The quickest way to lock your Windows computer is to press Windows key + L together. Your screen will go dark, and Windows will ask for your password before anyone can use the computer. This works on Windows 10 and Windows 11, and it takes about one second.

If you are at your desk and need to step away — to a meeting, to get coffee, or to the bathroom — this keyboard shortcut is faster than shutting down or putting the computer to sleep. The computer stays on and running, but locked. When you come back, type your password and you are back where you left off.

You can also lock your computer by clicking the Start button, then your user account icon in the top left corner, and selecting Lock from the menu. This takes longer than the keyboard shortcut, but it works if you forget the hotkey.

Key Takeaways

  • Press Windows key + L to lock your screen when ready without closing any programs.
  • A locked screen requires your password to unlock, so no one else can access your files or accounts while you are away.
  • You can also lock your computer through the Start menu by clicking your account icon and selecting Lock.
  • Locking is different from sleeping or shutting down — your computer stays powered on and ready to use when you return.
  • If you forget to lock manually, you can set Windows to lock automatically after a period of inactivity.

Setting up automatic locking after inactivity

If you often forget to lock your computer before stepping away, you can tell Windows to lock it automatically after a set amount of time with no keyboard or mouse movement. This is called screen timeout, and it works even if you walk away without thinking about it.

On Windows 10 and 11, go to Settings (press Windows key + I), then select Accounts on the left side. Click Sign-in options. Under the section labeled Privacy and security, find the option that says Require sign-in. Open the dropdown menu and choose how long you want Windows to wait before locking — options usually range from 1 minute to 10 minutes, or you can choose Never to turn off automatic locking.

A common choice is 5 minutes, which gives you time to grab something without locking when ready, but protects your computer if you forget. If you work in an office or anywhere with shared space, a shorter time like 1 or 2 minutes is safer.

Locking with a PIN or biometric instead of a password

Windows lets you lock your computer with a PIN (a short number code), your fingerprint, or facial recognition instead of typing a full password. These methods are faster to unlock and just as find.

To set up a PIN, go to Settings > Accounts > Sign-in options. Under PIN (Windows Hello), click Add. Windows will ask you to enter your current password first, then you create a PIN of at least 4 digits. After that, you can unlock your locked computer by typing your PIN instead of your password.

If your computer has a fingerprint reader or camera, you can also set up Windows Hello for your fingerprint or face. Go to the same Sign-in options page and look for Facial recognition or Fingerprint recognition. Click Set up and follow the prompts. Once it is set up, you can unlock your locked screen by scanning your face or touching the fingerprint reader — no typing needed.

Locking a specific user account while staying signed in

If you share a computer with other people, you can lock your account without signing out. This keeps your programs and files open, but prevents anyone else from accessing them until you unlock with your password.

Press Windows key + L to lock. Your account stays active in the background — email will still arrive, downloads will still finish, and any programs you left running will keep running. When you unlock, everything is exactly as you left it. This is different from signing out, which closes all your programs and files.

If you want another person to use the computer while yours is locked, they can click Sign in with a different account on the lock screen and enter their own password. Your account remains locked and protected.

What to do if you forget your password and the computer is locked

If you forget your password and your computer is locked, you have a few options depending on whether you set up a PIN or biometric sign-in. If you did, use your PIN or fingerprint to unlock instead — you do not need to remember your password.

If you did not set up a PIN or biometric, and you truly cannot remember your password, you will need to use your Microsoft account password to reset it. On the lock screen, click I forgot my password (this link appears below the password field). Windows will guide you through steps to verify your identity using your Microsoft account email address or phone number, and then let you create a new password.

If you do not have a Microsoft account linked to your computer, or if you cannot access that email or phone number, you may need to restart your computer in Safe Mode or use a password reset disk if you created one earlier. This is why setting up a PIN or biometric is useful — it gives you a backup way to unlock if you forget your main password.

Locking your computer on a network or at work

If your computer is part of a workplace network or domain, your IT department may have set rules about how locking works. Some workplaces require you to lock after a certain time, or they may have set a specific timeout period that you cannot change.

If you cannot find the Require sign-in option in Settings, or if the timeout is grayed out and you cannot adjust it, your network administrator has likely locked down these settings. Contact your IT support team to ask about the locking policy or to request a change.

Even if your workplace has set automatic locking, you can still use Windows key + L to lock manually whenever you want. This hotkey works on all Windows computers, whether they are on a network or not.

Frequently Asked Questions

Does locking my computer turn it off?

No. Locking keeps your computer powered on and running. All your programs stay open, and any work in progress stays in memory. If you want to turn off the computer completely, you need to shut it down separately through the Start menu.

Can someone unlock my computer if they know my password?

Yes, they can unlock it if they type your password correctly. This is why locking is important when you step away — it prevents people who do not know your password from accessing your files. If you are concerned about someone knowing your password, change it through Settings > Accounts > Your info > Password.

What is the difference between locking and sleeping?

Locking requires a password to use the computer again, but it stays powered on. Sleeping turns off the screen and uses very little power, but the computer wakes up faster than from a full shutdown. You can lock a sleeping computer, and you can sleep a locked computer — they are separate actions.

Will my downloads or uploads finish if my computer is locked?

Yes. Locking only prevents keyboard and mouse input — it does not stop background processes. Downloads, uploads, email syncing, and other tasks will continue while your computer is locked.

Can I lock my computer remotely if I forgot to lock it at home?

Not directly through Windows. However, if you set up Remote Desktop or use a third-party remote access tool, you may be able to lock it from another device. For most home users, the best prevention is to set automatic locking in Settings so it locks itself after a few minutes of inactivity.