Quick Links

Locking your Windows 10 PC is the best way to secure your computer when you step away. This won't quit or interrupt any running applications, and you have to type your PIN or password to get past the lock screen. Here are 10 ways you can lock your computer.

Lock Your Computer in the Start Menu

Unsurprisingly, the Start Menu offers an option for locking your PC. Just click the Start button (the Windows icon), select your account name, and then click "Lock."

Click the Start button, click your username, then click 'Lock.'

Use the Windows Key

Almost every Windows PC has a Windows key on the keyboard. As you've probably guessed, it's the one with the Windows icon. You can press Windows+L to lock your computer.

Ctrl+Alt+Delete

The Ctrl+Alt+Delete keyboard shortcut is commonly used to kill unresponsive software, but you can also use it to lock your computer. Press Ctrl+Alt+Delete, and then click "Lock" in the menu that appears.

Lock from ctrl alt delete shortcut

Lock Your Computer in Task Manager

You can also lock your PC in Task Manager. Pressing Ctrl+Alt+Delete, and then click "Task Manager." You can also type "Task Manager" in the Windows Search box, and then select it in the search results.

Search 'Task Manager,' then click the result or click 'Open.'

Go to the "Users" tab, select your user account, then click 'Disconnect.'

Tap 'Users,' select your user, then click 'Disconnect.'

A popup appears asking if you're sure you want to disconnect; click "Disconnect User" to confirm.

Click 'Disconnect User' to lock your PC.

Lock It From the Command Prompt

You can also type "CMD" in the Windows Search box to open the Command Prompt. Click "Command Prompt" in the search results.

Search 'Command Prompt,' then click the top result.

Type the following command:

Rundll32.exe user32.dll,LockWorkStation

The lock command in Command Prompt.

Once this executes, your PC will be locked.

Use the Run Prompt

This method is exactly the same as the Command Prompt method above, except you use Run. Just type "run" in the Windows Search box, and then click "Run" in the search results. You may also press Windows+R to open a Run window.

Searching for 'Run' in the Start Menu.

In the "Run" window, type the following command, and then click "OK":

Rundll32.exe user32.dll,LockWorkStation

The command to lock your PC in a Run window.

Once this executes, your PC will be locked.

Create a Desktop Icon to Lock Your Computer

If you'd rather lock your PC with just a click, you can create a desktop icon. To do so, right-click your desktop, hover over "New," and then select "Shortcut."

Create a new desktop shortcut

In the "Create Shortcut" window that appears, type the following command in the "Type the Location of the Item" text box, and then click "Next":

Rundll32.exe user32.dll,LockWorkStation

Create shortcut code

Give your icon a name, and then click "Finish."

Name the shortcut icon

Your icon will appear on your desktop—double-click it any time to lock your PC.

Set It Up in the Screen Saver Settings

You can set your PC to lock after the screen saver has been on for a certain amount of time. To do so, type "Screen Saver" in the Windows Search box. Click "Change Screen Saver" in the search results.

Search 'Screen Saver,' then click 'Change Screen Saver.'

In the "Screen Saver Settings" menu, select the checkbox next to the "On Resume, Display Logon Screen" option. Use the Arrow buttons in the "Wait:" box to select how many minutes should pass before your PC locks, and then click "Apply."

Enable 'On Resume, Display Logon Screen,' set the time you want, then click 'Apply.'

We don't recommend this method for security reasons. It's always best to lock your PC before you step away from it.

Use Dynamic Lock

Dynamic Lock is a feature that automatically locks your PC after you step away from it. It does this by detecting the strength of the Bluetooth signal. When the signal drops, Windows assumes you've left the immediate area of your PC and locks it for you.

To use Dynamic Lock, you'll first need to pair your smartphone with your PC. To do this, go to Settings > Bluetooth (on both Android or iOS) and toggle-On the slider. On your PC, go to Settings > Devices > Bluetooth and Other Devices, and then click "Add Bluetooth or Other Device." Select your phone, confirm the PIN, and they'll be paired.

Now all that's left to do is enable the Dynamic Lock feature. Head to Settings > Accounts > Sign-in Options and scroll down to the "Dynamic Lock" section. Select the checkbox next to the "Allow Windows to Automatically Lock Your Device When You're Away" option.

Dynamic Lock Feature

Your PC will now lock if you move too far away.

Use the Remote Lock Feature

The Remote Lock feature should only be used in a worst-case scenario. We always recommend locking your PC before you step away from it. However, we all forget things sometimes. If you've left your PC accessible, Microsoft has provided a way for you to lock it remotely.

However, this will only work if you've enabled "Find My Device" on your PC, you have a Microsoft account on the device with admin privileges, and the device is connected to the internet.

To use the Remote Lock feature, sign in to your Microsoft account, and then click "Show Details" under the device you want to lock.

Show details for PC to lock remotely

Next, click the "Find My Device" tab, and then click "Lock."

Lock PC remotely

Confirm in all the messages that appear to finish locking your PC.


When it comes to cybersecurity, you are the first layer of defense. It doesn't matter which of these methods you choose to lock your PC, as long as you actually do so. Also, be sure to configure your PC to automatically lock itself if you forget.