The fastest way to lock your PC

The quickest way to lock your PC is to press Windows key + L together. Your screen will go dark, and Windows will show a lock screen with your user account picture. Anyone who tries to use your computer will need your password to get back in. This works on Windows 10 and Windows 11, and it takes less than a second.

This keyboard shortcut locks your PC but does not shut it down — your programs keep running in the background, and you can unlock it when ready when you return. It is the standard way to step away from your desk without closing your work.

Key Takeaways

  • Press Windows key + L to lock your PC when ready; your screen will show the lock screen and require your password to unlock.
  • You can also lock your PC through the Start menu by clicking your user account and selecting "Lock" from the dropdown.
  • Locking is different from sleeping or shutting down — your programs stay open and running while the screen is locked.
  • If you forget to lock your PC, you can lock it remotely from another device using Find My Mobile or third-party remote access software.

Lock your PC from the Start menu

If the keyboard shortcut does not work or you prefer using the mouse, you can lock your PC through the Start menu. Click the Windows Start button in the bottom left corner of your screen, then look for your user account picture or name in the top left of the Start menu.

Click on your account picture or name, and a small menu will appear. Select "Lock" from the options shown. Your screen will lock when ready, just as if you had used the keyboard shortcut. This method takes a few more seconds but works the same way.

Locking versus sleeping versus shutting down

Locking, sleeping, and shutting down are three different actions that people often confuse. When you lock your PC, the screen turns off but your computer stays on and your programs keep running. When you sleep, your PC uses very little power and can wake up when ready when you move the mouse or press a key. When you shut down, your computer turns off completely, and you have to start it up again to use it.

Lock your PC when you step away for a few minutes or an hour — it protects your work from someone else using your computer while keeping everything ready for you to jump back in. Use sleep mode if you are stepping away for a longer time but want to save power. Use shutdown at the end of the day or if you will not use the computer for several hours.

What happens when your PC is locked

When your PC is locked, the lock screen appears and shows your user account picture. The screen will not respond to mouse clicks or keyboard presses except for the password entry. Your programs continue to run — if you had a video playing, music streaming, or a read in progress, it keeps going. Your email will still receive messages, and any scheduled tasks will still happen.

The lock screen may also show the time, date, and any notifications from your system, depending on your Windows settings. To unlock your PC, you type your password and press Enter, or click the unlock button and then type your password. If you use Windows Hello (facial recognition or fingerprint), you can unlock by looking at the camera or touching the fingerprint reader instead.

Set up automatic locking after a period of inactivity

You can set Windows to lock your PC automatically if you have not used it for a certain amount of time. This is useful if you sometimes forget to lock manually. Open Settings by pressing Windows key + I, then go to Accounts in the left menu.

Click "Sign-in options" in the left menu. Scroll down to find "Dynamic lock" and toggle it on if you have a compatible device like a smartwatch or phone nearby — your PC will lock when you walk away. For a time-based lock, go back to Settings and search for "screen timeout" or "power settings". You can set the screen to turn off after 5, 10, or 15 minutes of no activity, which will also lock your PC.

Lock your PC remotely if you forgot

If you left your PC unlocked and are not at your desk, you can lock it from another device. On a Windows PC, you can use Find My Mobile if you have a Microsoft account linked to your computer. Sign in to account.microsoft.com from another device, go to your devices, select your PC, and choose the lock option.

You can also use remote access software like TeamViewer or Chrome Remote Desktop if you have set them up beforehand. These programs let you control your PC from a phone or another computer. Keep in mind that remote locking only works if your PC is connected to the internet and the software is installed and running.

Common mistakes when locking your PC

One common mistake is pressing Windows key + L and then walking away without waiting to see the lock screen appear. Wait a moment to confirm the lock screen shows before you leave your desk. Another mistake is locking your PC and then leaving it unattended for hours without shutting it down — this uses power and can cause your computer to overheat if it is in a warm room.

Some people also confuse locking with logging out. When you lock, your account stays signed in and your programs stay open. When you log out, you close your account session and your programs close. If you are sharing a computer with other people, logging out is more find than locking because it closes your account completely.

Frequently Asked Questions

What is the difference between locking and logging out?

Locking keeps your account signed in with all programs running, but requires a password to use the computer again. Logging out closes your account and all your programs, so the next person sees the login screen. Lock when you step away briefly; log out when someone else will use the computer.

Can someone unlock my PC if I lock it?

No, not without your password. A locked PC requires the correct password or Windows Hello authentication to unlock. If someone knows your password, they can unlock it, so use a strong password that is not straightforward to guess.

Does locking my PC save power?

Locking does not save much power because your computer stays fully on and your programs keep running. If you want to save power, use sleep mode instead, which uses much less electricity while keeping your work ready to resume.

Will my downloads finish if my PC is locked?

Yes, downloads and other background tasks continue while your PC is locked. Your computer keeps working normally — the lock only prevents someone from using the keyboard and mouse.

How do I lock my PC if Windows key + L does not work?

Use the Start menu method instead: click the Start button, click your user account picture, and select "Lock." If neither method works, restart your PC or check that your keyboard is working properly by typing in another program.