Lock Windows PC Without Locking Screen
In this article
This guide shows you how to lock your Windows PC while keeping the screen visible and interactive. This is useful when you want to step away briefly but need others to see a presentation, monitor a process, or watch a video. You can achieve this by using the built-in Dynamic Lock feature or by creating a simple shortcut that locks the workstation without turning off the display. No additional software is required.
What You'll Need
- A Windows 10 or Windows 11 PC
- Administrator access (only for changing power settings, optional)
Step-by-Step
- Decide which method to use. There are two main approaches: Dynamic Lock (locks automatically when you walk away with your phone) and a manual shortcut (locks instantly when you double-click it). Choose the one that fits your workflow.
- Method 1: Use Dynamic Lock (automatic)
- On your phone, enable Bluetooth and pair it with your PC via Settings > Devices > Bluetooth & other devices.
- On your PC, open Settings > Accounts > Sign-in options.
- Scroll down to Dynamic lock and check the box for “Automatically lock your device when you’re away”.
- Windows will now lock the screen when your phone is out of Bluetooth range (usually about 30 seconds after disconnection).
- Method 2: Create a manual lock shortcut (instant)
- Right-click on your desktop and select New > Shortcut.
- In the location field, type:
rundll32.exe user32.dll,LockWorkStation(without quotes). - Click Next, name the shortcut (e.g., “Lock PC”), and click Finish.
- Double-click this shortcut whenever you want to lock the PC instantly. The screen will go to the lock screen, but the display stays on (unless your power settings turn it off).
- Keep the screen on (optional but recommended). By default, Windows may turn off the display after a few minutes of inactivity, which defeats the purpose. To prevent this:
- Open Settings > System > Power & sleep (Windows 10) or Settings > System > Power > Screen and sleep (Windows 11).
- Set “On battery power, turn off screen after” and “When plugged in, turn off screen after” to Never (or a long duration like 30 minutes).
- Alternatively, you can create a separate power plan or use the Power Options control panel for more granular control.
- Test the lock. After setting up, press
Win + Lto confirm the normal lock behavior. Then try your chosen method (walk away with your phone for Dynamic Lock, or double-click the shortcut) to verify it works.
Common Mistakes
- Using the wrong shortcut command: Some tutorials suggest
LockWorkStation.exe– that doesn’t exist. The correct command isrundll32.exe user32.dll,LockWorkStation. - Forgetting to enable Bluetooth pairing: Dynamic Lock won’t work if your phone isn’t paired or Bluetooth is off on either device.
- Screen still turns off: This happens because the default power plan turns off the display after a few minutes. You must adjust the “turn off screen” settings as described above.
- Creating the shortcut with quotes: If you type the command with quotation marks around the whole thing, Windows will treat it as a single path and fail. Enter it exactly as shown.
Tips
- Pin the shortcut to your taskbar for even faster access. Right-click the shortcut and select Pin to taskbar.
- Use a keyboard shortcut for the shortcut: right-click the shortcut, go to Properties, and assign a “Shortcut key” (e.g., Ctrl+Alt+L). Note that this only works if the shortcut is on your desktop or Start Menu.
- Combine with a password – ensure your account requires a password on wakeup (Settings > Accounts > Sign-in options > “Require sign-in”). This is essential for security.
- If you want the screen to stay on but the PC to lock after a timeout, you can use a third-party tool like “Insomnia” or “Caffeine” to prevent sleep, but the built-in power settings are sufficient for most users.
Troubleshooting
- Shortcut doesn’t do anything: Make sure you typed the command correctly. Try copying and pasting:
rundll32.exe user32.dll,LockWorkStation. If it still fails, run it from a Command Prompt (as administrator) to see if there’s an error. - Dynamic Lock doesn’t trigger: Check that Bluetooth is on and your phone is paired. Also, ensure the “Allow Bluetooth devices to wake this PC” option is enabled in Device Manager (under Bluetooth adapters). Sometimes Windows only locks after a delay – wait up to a minute.
- Screen goes black after locking: This is normal – the lock screen appears. If you want the screen to stay on the same content (e.g., a presentation), you need a different approach: use Present mode or a tool like “PowerPoint’s presenter view” that keeps the slide show running while locked. Alternatively, you can use Windows + P to duplicate the screen to a projector, which often keeps the display active.
- PC still sleeps: Even if the screen is set to never turn off, the PC may go to sleep after a set time. Go to Power & sleep and set “Sleep” to Never as well.
Frequently Asked Questions
Will my running programs keep running when I lock the PC?
Yes, locking the PC does not close or pause your programs. They continue to run in the background, and the screen shows the lock screen.
Can I lock the PC without using a password?
If your account has no password, locking will simply show the lock screen, and you can click to sign back in. However, it’s highly recommended to have a password for security.
Does Dynamic Lock work with any phone?
It works with any phone that supports Bluetooth and can pair with Windows. Both devices must have Bluetooth enabled, and the phone must be paired via the Windows Bluetooth settings.
Can I set a custom time for Dynamic Lock to lock after I walk away?
No, Windows doesn’t offer a delay setting. It locks as soon as the Bluetooth connection is lost, which is typically within a few seconds to a minute.
Is there a way to lock only the keyboard and mouse, not the whole screen?
No, Windows doesn’t have a built-in feature to lock input devices without locking the screen. You would need third-party software like “KeyFreeze” or “Mouse Lock” for that.
What if I want the screen to stay on the same app (e.g., a video) while locked?
Locking always shows the lock screen, so the app’s content won’t be visible. For presentations, use a separate display or a tool like “OBS” to mirror the screen to another device.