Locking your Windows 10 PC when you step away protects your files and privacy from anyone who might sit down at your desk. This guide covers seven different ways to lock your screen, from keyboard shortcuts to automatic locking, so you can choose the method that fits how you work. No special software or admin rights are needed for most methods.
What You’ll Need
- A Windows 10 PC or laptop
- Your Windows account password or PIN (to unlock later)
- Administrator access only for the Dynamic Lock and Group Policy methods (if you want to set those up)
Step-by-Step
Method 1: Keyboard Shortcut (Fastest)
- Press Windows key + L simultaneously. The screen will lock immediately, showing the lock screen.
- If you have multiple monitors, all screens lock at once.
Method 2: Ctrl+Alt+Delete Menu
- Press Ctrl + Alt + Delete together.
- From the blue screen that appears, click Lock.
Method 3: Start Menu
- Click the Start button (Windows icon) in the bottom-left corner.
- Click your account picture (top-left of the Start menu).
- Select Lock from the dropdown menu.
Method 4: Command Prompt or PowerShell
- Right-click the Start button and select Windows PowerShell or Command Prompt.
- Type the following command and press Enter:
rundll32.exe user32.dll,LockWorkStation - The screen locks instantly. You can also create a desktop shortcut with this command for one-click locking.
Method 5: Create a Desktop Shortcut
- Right-click an empty area on your desktop.
- Select New > Shortcut.
- In the location field, type:
rundll32.exe user32.dll,LockWorkStation - Click Next, name it (e.g., “Lock PC”), and click Finish.
- Double-click the shortcut to lock your screen. You can also pin it to your taskbar for quicker access.
Method 6: Automatic Lock with Dynamic Lock (Bluetooth)
- Pair your phone with your PC via Bluetooth (Settings > Devices > Bluetooth & other devices).
- Open Settings (Windows + I) and go to Accounts > Sign-in options.
- Scroll down to Dynamic lock.
- Check the box for “Automatically lock my device when I’m away”.
- When you walk away with your phone, Windows will lock after about 30 seconds of detecting the Bluetooth signal is lost.
Method 7: Lock After Inactivity (Screen Saver)
- Right-click your desktop and select Personalize.
- Click Lock screen in the left sidebar.
- Click Screen saver settings at the bottom.
- In the Screen Saver Settings window, choose any screen saver (or “None”).
- Set the Wait time (e.g., 5 minutes).
- Check the box for “On resume, display logon screen”.
- Click OK. Your PC will lock automatically after the set time of inactivity.
Common Mistakes
- Forgetting to set a password or PIN: If your account has no password, locking does nothing—anyone can just press a key to get in. Ensure you have a password, PIN, or picture password set under Settings > Accounts > Sign-in options.
- Using the screen saver without checking “On resume, display logon screen”: If you skip this, the screen saver just shows but doesn’t lock.
- Typing the command incorrectly: The command is case-sensitive? Actually, it’s not case-sensitive, but it must be exact:
rundll32.exe user32.dll,LockWorkStation—a typo like “LockWorkstation” (lowercase ‘s’) will fail. - Not pairing the phone properly for Dynamic Lock: If Bluetooth is not enabled on both devices, Dynamic Lock won’t work.
Tips
- Use Windows Hello: Set up a PIN or facial recognition to unlock faster after locking.
- Pin the shortcut to your taskbar: Right-click the shortcut you created and select “Pin to taskbar” for one-click locking.
- Set a short inactivity timeout: For better security, set the screen saver wait time to 5 minutes or less.
- Use Dynamic Lock with a smartwatch: If you have a Bluetooth smartwatch, it works the same as a phone.
- Lock before stepping away: Even for a quick coffee break, it’s good practice to lock.
Troubleshooting
- Windows key + L does nothing: This shortcut is built-in and rarely fails. If it doesn’t work, try Ctrl+Alt+Delete and select Lock. If that also fails, restart your PC—it may be a temporary glitch.
- Command prompt says “Access is denied”: You might not have permission. Run the command prompt as administrator (right-click > Run as administrator) and try again.
- Dynamic Lock doesn’t lock: Make sure Bluetooth is on for both devices, and that your phone is paired. Also check that you haven’t disabled the feature in Settings. Sometimes the lock takes up to a minute after the phone disconnects.
- Screen saver doesn’t appear: If you set “None” as the screen saver, the lock won’t trigger. Choose any screen saver (like “Blank”) to enable the timeout.
- Lock screen shows but then goes to desktop: This is normal if you have no password set. Set a password or PIN to prevent this.
Frequently Asked Questions
Does locking Windows 10 close my programs?
No, locking only shows the lock screen. Your open apps and files remain exactly as you left them. When you unlock, you’ll see everything still running.
Can I lock Windows 10 with a fingerprint?
Yes, if your PC has a fingerprint reader, you can set up Windows Hello Fingerprint in Settings > Accounts > Sign-in options. Then you can lock with Windows key + L and unlock with your fingerprint.
How do I lock Windows 10 without a keyboard?
Use the Start menu method: click Start, then your account picture, then Lock. Or use the on-screen keyboard if you have a touch screen.
Is there a way to lock Windows 10 automatically when I walk away?
Yes, use Dynamic Lock (Method 6) with a Bluetooth phone or smartwatch. It locks when the Bluetooth signal is lost.
What’s the difference between locking and signing out?
Locking keeps your apps running in the background and just shows the lock screen. Signing out closes all your apps and returns to the login screen. Locking is faster and preserves your work.
Can I lock Windows 10 from my phone?
Not directly, but you can use Dynamic Lock to auto-lock when you walk away. Some third-party apps allow remote locking, but they require setup and may not be reliable.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Gmail Gemini Privacy: Data Access & Limit Settings
- Fix Outlook Inbox Corruption with DISM in Windows
- How to Set Up Apple Pay on iPhone
- How to Choose a Refurbished iPhone With Years of Support
- Voice Dictation in Google Docs: How to Use It
- Turn Off Message Notifications on Mac