How to Automatically Lock Your Windows PC with Dynamic Lock
In this article
Dynamic Lock is a built-in Windows feature that automatically locks your PC when you walk away with your paired phone. It works by using Bluetooth to detect when your phone is out of range. To use it, you need a Windows 10 or 11 PC with Bluetooth, and a smartphone that supports Bluetooth pairing. Once set up, your PC locks itself about 30 seconds after your phone disconnects, adding a layer of security without manual effort.
What You'll Need
- A Windows 10 or 11 PC with Bluetooth capability (most laptops and many desktops have it).
- A smartphone (Android or iPhone) with Bluetooth enabled.
- Your PC must be signed in with a Microsoft account (Dynamic Lock requires it).
- Your PC must be locked with a password, PIN, or Windows Hello (face or fingerprint) – Dynamic Lock won't work if your account has no sign-in method.
Step-by-Step
- Pair your phone with your PC via Bluetooth.
- On Windows: Open Settings (Windows key + I) > Bluetooth & devices > Add device > Bluetooth. Your PC will search for nearby devices.
- On your phone: Turn on Bluetooth and make it discoverable (usually in Bluetooth settings).
- Select your phone from the list on your PC, then confirm the pairing code on both devices if prompted.
- Enable Dynamic Lock in Windows Settings.
- Go to Settings > Accounts > Sign-in options.
- Scroll down to the Dynamic lock section.
- Check the box that says “Allow Windows to automatically lock your device when you're away”.
- Test it.
- Lock your PC manually (Windows key + L) to ensure your sign-in method works.
- Unlock your PC, then walk away with your phone. After about 30 seconds to a minute, your PC should lock automatically.
- Adjust the timeout (optional).
- Dynamic Lock uses a fixed timeout – you can't change the delay in Windows settings. However, you can adjust the screen timeout in Settings > System > Power & sleep to make the screen turn off sooner, but the lock itself is not configurable.
Note: Menu labels can vary slightly depending on your Windows version (e.g., Windows 10 vs 11) and region.
Common Mistakes
- Not pairing the phone first: Many users enable Dynamic Lock but forget to pair their phone via Bluetooth. The feature won't work unless the phone is already paired.
- Phone Bluetooth is off: If your phone's Bluetooth is disabled, Dynamic Lock can't detect it, so the PC won't lock.
- Using a local account: Dynamic Lock requires a Microsoft account. If you're using a local account, you'll need to switch to a Microsoft account in Settings > Accounts > Your info.
- No sign-in method set: If your PC has no password, PIN, or Windows Hello, Dynamic Lock is greyed out or won't work. Set up a PIN or password first.
- Phone stays connected due to range: Bluetooth range can be up to 30 feet (10 meters), so if you walk just a few feet away, the phone may still be in range and the PC won't lock. Walk further away to test.
Tips
- Use a strong PIN or Windows Hello: Dynamic Lock is only as secure as your sign-in method. Make sure you have a strong PIN or use Windows Hello face/fingerprint.
- Keep your phone charged: If your phone dies, Bluetooth disconnects, and your PC will lock even if you're sitting right there. That's a feature, but be aware of it.
- Combine with other lock settings: You can also set your PC to lock when you step away using the “Require sign-in” option in Settings > Accounts > Sign-in options. But Dynamic Lock is the automatic one.
- Disable Dynamic Lock when not needed: If you're in a meeting and don't want your PC to lock unexpectedly, uncheck the box or turn off Bluetooth on your phone temporarily.
Troubleshooting
- Dynamic Lock option is greyed out:
- Ensure you're signed in with a Microsoft account.
- Make sure your PC has a sign-in method (PIN, password, or Windows Hello) set up.
- Restart your PC and try again.
- PC doesn't lock when you walk away:
- Check that Bluetooth is on for both devices.
- Verify the phone is still paired – go to Settings > Bluetooth & devices > your phone, and see if it shows “Connected” or “Paired”. If not, re-pair.
- Walk further away – the Bluetooth signal may still be strong if you're only a few feet away.
- Make sure Dynamic Lock is enabled (the checkbox is checked).
- PC locks too quickly or too slowly:
- Windows uses a fixed delay (about 30 seconds after Bluetooth disconnects). You can't change it directly. If it's locking too quickly, you might be walking out of range often. If it's too slow, check your Bluetooth signal strength.
- Phone disconnects randomly:
- Update your Bluetooth drivers (Settings > Windows Update > Advanced options > Optional updates).
- Remove the phone from Bluetooth devices and re-pair.
- Check for interference from other devices.
- If none of the above works:
- Run the Bluetooth troubleshooter: Settings > System > Troubleshoot > Other troubleshooters > Bluetooth.
- Restart your PC and phone.
- As a last resort, sign out of your Microsoft account and sign back in, then re-pair the phone.
Frequently Asked Questions
Does Dynamic Lock work with any phone?
Yes, as long as your phone supports Bluetooth pairing. Both Android and iPhone work, but the phone must be paired via Bluetooth to your PC.
Can I adjust the delay before the PC locks?
No, Windows doesn't allow you to change the delay. It locks about 30 seconds after your phone disconnects. You can only adjust the screen timeout, not the lock delay.
Will Dynamic Lock work if my phone is on silent or vibrate?
Yes, it doesn't depend on phone notifications. It only relies on Bluetooth connection status.
Does Dynamic Lock drain my phone battery?
Bluetooth does use some battery, but it's minimal. If you're concerned, you can disable Bluetooth on your phone when you're not using Dynamic Lock.
Can I use Dynamic Lock with a tablet or another PC?
Yes, you can pair any Bluetooth device that supports the Bluetooth HID profile, but it's primarily designed for phones. You can pair a smartwatch or fitness tracker as well.
What happens if I forget my phone at home?
Your PC will lock automatically when the Bluetooth connection drops, which is a security feature. You'll need to sign in with your password or PIN to unlock it.