sodcalculator

10 Tech How-To

Ways to Lock Windows 10 Computer: 7 Methods

Guide 10-38758 · Updated · Step by step

To lock your Windows 10 computer, press Windows + L at any time. This instantly returns to the lock screen, requiring your password, PIN, or biometric sign-in. If you prefer using the mouse, click the Start button, select your account icon at the top left, and choose Lock.

Why Locking Matters

Locking your PC is a basic security habit that prevents unauthorized access when you step away. Without a lock, anyone who sits down can view your files, read your emails, or make changes to your settings. In workplaces, locking is often mandatory to comply with data protection policies. Even at home, a quick lock keeps children or visitors from accidentally altering your work or accessing sensitive accounts.

The lock screen also serves as a privacy shield. It hides your open windows and running applications, so a passerby cannot glance at your screen and see what you were working on. For laptops, locking is especially important because the device is portable and easily lost or stolen.

Method 1: Keyboard Shortcut (Fastest)

The most efficient way to lock your computer is the keyboard shortcut Windows + L. Press both keys simultaneously, and the screen immediately switches to the lock screen. This works in any application, even full-screen games or presentations, and requires no additional setup. It is the method most IT professionals recommend because it is quick, reliable, and does not require navigating menus.

If you have a laptop with a Fn key, make sure you press the Windows key (the one with the logo) and the L key together. On some keyboards, the Windows key may be labeled with the logo only. The shortcut works on all editions of Windows 10, including Home, Pro, and Enterprise.

Method 2: Start Menu

If you prefer using the mouse, click the Start button (the Windows icon in the bottom-left corner). In the left column, you will see your account picture and name. Click on the account icon, and a menu appears with options like Lock, Sign out, and Switch account. Choose Lock. This method is straightforward and works even if you are not sure about keyboard shortcuts.

One advantage of the Start menu method is that it also shows you which account is currently signed in. If you have multiple accounts on the same PC, you can lock and then switch to another user from the lock screen.

Method 3: Ctrl+Alt+Delete Screen

Press Ctrl + Alt + Delete simultaneously. This opens a full-screen menu with several options: Lock, Switch user, Sign out, and Task Manager. Click Lock. This method is slightly slower than Windows + L because it requires an extra click, but it is useful if your keyboard’s Windows key is broken or if you are already using the Ctrl+Alt+Delete sequence for other purposes.

Note that on some remote desktop sessions, Ctrl+Alt+Delete might be intercepted by the host machine. In that case, use the Start menu method instead.

Method 4: Automatic Lock via Screen Timeout

Windows 10 can lock itself automatically after a period of inactivity. To configure this, go to Settings > Accounts > Sign-in options. Under the Require sign-in section, choose When PC wakes up from sleep. Then set your screen timeout in Settings > System > Power & sleep. For example, set the screen to turn off after 5 minutes of inactivity. When the screen turns off, the PC goes to sleep, and when you wake it, you must sign in again.

This method is ideal if you often forget to lock manually. However, it only works if your PC actually goes to sleep. If you leave it running with the screen on, the lock will not trigger. You can also set a shorter timeout for the lock screen itself by using the Screen saver settings (search for “Change screen saver” in the Start menu). Check the box On resume, display logon screen and set a wait time.

Method 5: Dynamic Lock (Bluetooth Proximity)

Windows 10 includes a feature called Dynamic Lock that automatically locks your PC when you walk away with your phone. To set it up, pair your phone with your PC via Bluetooth. Then go to Settings > Accounts > Sign-in options and scroll down to Dynamic lock. Check the box Allow Windows to automatically lock your device when you’re away. When your phone is out of Bluetooth range (about 10 meters), Windows locks the screen after about 30 seconds of detecting the signal loss.

This feature is convenient but not perfect. It relies on Bluetooth signal strength, which can be affected by walls or interference. Also, it only locks when the phone is out of range, not immediately when you step away. For critical security, use Windows + L as a manual backup.

Method 6: Lock with a Command or Shortcut

You can create a desktop shortcut that locks your PC. Right-click on the desktop, choose New > Shortcut, and type rundll32.exe user32.dll,LockWorkStation as the location. Name it something like “Lock PC” and click Finish. Double-clicking this shortcut locks the computer. You can also assign a keyboard shortcut to this shortcut: right-click the shortcut, select Properties, and set a Shortcut key (e.g., Ctrl+Alt+L).

Alternatively, you can use the command prompt or PowerShell: type rundll32.exe user32.dll,LockWorkStation and press Enter. This is useful for scripting or for users who prefer command-line tools.

Method 7: Lock via Task Manager or Remote

If you are in the Task Manager (Ctrl+Shift+Esc), you can lock the PC by clicking File > Run new task, typing rundll32.exe user32.dll,LockWorkStation, and pressing Enter. This is a fallback if the normal methods fail. For remote desktop users, you can lock the remote machine by pressing Ctrl+Alt+End (instead of Ctrl+Alt+Delete) and selecting Lock.

Frequently Asked Questions

Does locking my PC close my apps?

No. Locking only shows the lock screen; all your running applications and open documents remain in the background. When you sign back in, you return to exactly where you left off. This is different from signing out, which closes all apps and processes.

What is the difference between Lock and Sign out?

Lock keeps your session running in the background, preserving your open apps and unsaved work. Sign out ends your session, closing all programs and returning to the login screen. Sign out is useful if you want to free up memory or if you are done for the day, but you must save your work first.

Can I lock my PC with a password instead of a PIN?

Yes. The lock screen accepts any sign-in method you have set up: password, PIN, picture password, or Windows Hello (fingerprint or face). You can change your sign-in options in Settings > Accounts > Sign-in options. If you have multiple methods, Windows will show the one you used last, but you can click “Sign-in options” on the lock screen to choose another.

Why doesn’t Dynamic Lock work reliably?

Dynamic Lock depends on Bluetooth signal strength and may not trigger if your phone is still within range or if Bluetooth is disabled on either device. It also has a delay of about 30 seconds after the signal is lost. For immediate locking, use Windows + L. Make sure your phone is paired and that Bluetooth is enabled on both devices.

How do I lock my PC when I’m using a remote desktop?

In a remote desktop session, press Ctrl + Alt + End (instead of Ctrl+Alt+Delete) to bring up the security screen, then select Lock. This locks the remote computer, not your local one. Alternatively, you can use the Start menu method on the remote desktop.

Is there a way to lock my PC automatically at a specific time?

Windows does not have a built-in scheduler for locking, but you can use Task Scheduler to run the command rundll32.exe user32.dll,LockWorkStation at a specific time. Create a basic task that triggers daily at your desired time and runs that command. This is useful for enforcing breaks or end-of-day security.

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

The whole Tech How-To bed →