If you’re like most people, you probably leave your computer running when you go out the door. But if you’re a security expert, you may want to consider locking your computer when you leave so that unauthorized people can’t access it while you’re away. Here are some tips on how to do this:

  1. Make sure your computer is locked by pressing the power button and then the lock key at the same time.
  2. If your computer is password-protected, enter the password when prompted.
  3. If your computer is not password-protected, create a strong password and remember it somewhere safe (like in a safe deposit box).
  4. If you have an antivirus program installed, make sure it’s enabled and updated to protect against unauthorized access to your computer.

Using a Windows 11 feature called Dynamic Lock, you can make your PC automatically lock and secure itself when you physically step away out of Bluetooth range. All it takes is a linked Android smartphone and a few changes in Settings. Here’s how to set it up.

First, Connect Your Smartphone to Your PC

To make Dynamic Lock work, you’ll need to link your Android smartphone to your Windows 11 PC as a Bluetooth device. An iPhone might work, but we’ve seen reports on forums that it might not work reliably. To get started, open Windows Settings (press Windows+i on your keyboard), then click “Bluetooth & Devices.”

In Bluetooth & Devices, make sure the switch beside “Bluetooth” is turned on. Then click “Add Device” (with the plus symbol on it) near the top of the window.

On your smartphone, make sure that Bluetooth is enabled and that your device is in range of your Windows 11 PC (about 10 feet or less is ideal). Windows will scan for your smartphone. Once detected on the “Add a Device” screen, select your smartphone from the list.

If asked to confirm a PIN number displayed on both your PC and your smartphone screens, make sure the PIN number matches, then click “Yes.”

After pairing, your smartphone will show up in a special box at the top of Settings > Bluetooth & Devices.

If you’re having trouble connecting through Windows 11, you may need to attempt to connect to your PC though your smartphone’s Bluetooth settings menu. Also, double check that Bluetooth is enabled on both your PC and the smartphone.

RELATED: How to Turn On Bluetooth on Windows 11

Next, Set Up Dynamic Lock

While still in the Settings app (press Windows+i to bring it back if you closed it), click “Accounts” in the sidebar, then select “Sign-In Options.”

Next, scroll down until you see “Dynamic Lock.” Below that, place a check mark in the box beside “Allow Windows to automatically lock your device when you’re away.”

After that, close the Settings app. The next time you carry your smartphone away from your PC and leave Bluetooth range (which can vary depending on which devices you’re using and the walls and furniture that might be in the way), your Windows 11 PC will automatically lock itself within one or two minutes. To use your PC again when you come back, just sign in again as usual. Good luck!

RELATED: How to Lock Your Windows 11 PC