The fastest way to lock your PC
The quickest way to lock your PC is to press Windows key + L at the same time. Your screen will go dark, and Windows will show a login screen. Only someone with your password can unlock it from there. This works on Windows 10 and Windows 11, and it takes one second.
If you are using a Mac, press Control + Command + Q to lock the screen when ready. On a Mac, this also locks your user account, so the next person to use the computer will need to enter a password to wake it up.
Both methods lock your account without shutting down your PC. Your programs keep running in the background, and you can unlock it again by typing your password when you return.
Key Takeaways
- Windows key + L is the fastest way to lock a Windows PC and requires only one keystroke.
- A locked PC shows a login screen but keeps all your open programs and files running in the background.
- You can also lock your PC through the Start menu or by using your lock screen settings to set an automatic timeout.
- If you forget to lock your PC manually, you can set Windows to lock automatically after a period of inactivity.
- A locked PC protects your files and accounts from someone sitting down at your desk, but it does not encrypt your hard drive.
Locking through the Start menu
If you prefer not to use the keyboard shortcut, you can lock your PC from the Start menu. Click the Start button in the bottom left corner, then click your user account picture or name at the top of the menu. A dropdown will appear with several options.
Select Lock from that dropdown. Your PC will lock when ready, and the login screen will appear. This method takes a few more clicks than the keyboard shortcut, but it works the same way.
Setting your PC to lock automatically
You can tell Windows to lock your PC automatically if you walk away and forget to do it yourself. Open the Start menu and type screen timeout into the search box. Click Change screen timeout settings when it appears.
You will see two dropdown menus: one for when your PC is plugged in, and one for when it is on battery power. Set each one to the number of minutes you want to wait before the screen goes dark. For example, if you set it to 5 minutes, your screen will turn off after 5 minutes of no keyboard or mouse movement.
Once the screen is off, you can set Windows to require a password to wake it up. In the same settings window, look for Require a password on wakeup and make sure it is turned on. Now when your screen times out, anyone who tries to use your PC will need your password to unlock it.
Using the lock screen for extra security
Windows shows a lock screen before the login screen appears. This is the screen with the date, time, and sometimes a background image. You can customize what appears on your lock screen and add extra security steps.
Open the Start menu and type lock screen settings. You can choose a background image, add a slideshow, or display a custom message. More importantly, you can turn on Require sign-in and set it to When this device wakes up from sleep. This forces anyone who wakes your PC to enter a password before they can see your desktop.
What a locked PC does and does not protect
A locked PC prevents someone from using your keyboard and mouse to access your files, open your email, or log into your accounts. It stops casual access by someone who sits down at your desk while you are away.
A locked PC does not encrypt your hard drive or protect your files if someone removes the hard drive from your computer. It also does not protect you if someone restarts your PC and boots from a USB drive or external device. For those kinds of threats, you would need to turn on BitLocker (on Windows Pro, Enterprise, or Education editions) or use third-party encryption software.
For most home and office use, locking your PC when you step away is enough to keep your files safe from coworkers, family members, or anyone else who might use your desk.
Troubleshooting a stuck lock screen
Occasionally your PC may not respond to the Windows key + L shortcut, or the lock screen may freeze. If this happens, try pressing Ctrl + Alt + Delete. A menu will appear with several options, including Lock. Click it to lock your PC.
If your PC is completely frozen and will not respond to any keyboard input, you may need to restart it. Hold down the power button for 10 seconds until the PC shuts off completely, then press the power button again to turn it back on. This is a last resort and may cause you to lose unsaved work.
Frequently Asked Questions
Does locking my PC save my work?
No. Locking your PC does not save your files. You should save your work before you lock your PC or step away from your desk. Locking only prevents someone else from accessing your account while you are gone.
Can someone unlock my PC if they know my password?
Yes. A locked PC only requires the correct password to unlock. If someone knows your password, they can log back in. To prevent this, use a strong password that is hard to guess, and do not share it with others.
What happens to my open programs when I lock my PC?
Your programs keep running. Downloads continue, emails sync, and any background tasks stay active. When you unlock your PC, everything will be exactly as you left it.
Can I lock my PC remotely if I forgot to lock it at the office?
Not with the built-in Windows lock feature. However, if your workplace uses remote desktop software or a mobile device management system, your IT department may be able to lock your PC from a distance. Check with your IT support team about what options are available.
Is locking my PC the same as putting it to sleep?
No. Locking keeps your PC awake and running, but blocks access to your account. Sleep mode turns off your screen and most hardware to save power, but your PC can wake up if someone presses a key or moves the mouse. Locking is better for short breaks; sleep is better if you will be away for a while.