Windows can lock itself the moment you walk away from your PC, and the feature that does it is called Dynamic Lock. You enable it in Settings > Accounts > Sign-in options by checking "Allow Windows to lock your device automatically when you're away," pairing your phone over Bluetooth, and confirming your phone is listed under Bluetooth & devices > Devices. The feature is built into Windows 10 version 1803 and later and every Windows 11 edition. It ships switched off, and it depends on one condition most guides skip: your phone's Bluetooth has to stay connected and within roughly 30 feet, with no walls or metal between the two radios.
What Dynamic Lock Actually Does When Your Phone Leaves Range
Dynamic Lock is a proximity rule, and Windows enforces it through Bluetooth signal strength rather than location data. Your PC pairs with your phone, watches the connection, and fires a standard lock command once that link drops below a threshold for a sustained window. Microsoft introduced the feature in Windows 10 version 1803, released in April 2018, and documented it through its Windows IT Pro Blog and support pages. No app runs on the phone side; the pairing alone is the sensor.
The approach is deliberately simple, and that simplicity is also its weakness. The lock fires at the moment Windows decides the phone has left, and the actual delay runs somewhere between 30 seconds and several minutes in practice. Users on Microsoft's own support forums have reported waits of one to five minutes before the screen locks. In that gap, anyone at your desk can use the machine.
There's a second check worth knowing before you trust it. Dynamic Lock works by Bluetooth range, so it can't tell the difference between you walking to a meeting and you leaving your phone on the charger while you sit at the keyboard. Windows will lock while you're still working if the phone stays put but goes idle enough to drop the Bluetooth link.
Finally, understand what "lock" means here. Windows locks the session, the same as pressing Windows+L. Documents stay open, the screen shows the lock screen, and signing back in restores everything. It's a privacy and physical-access barrier, not a shutdown or sign-out.
Enable the Feature in Settings: The Five-Step Route Most People Take
The Settings path works on both Windows 10 and Windows 11 with minor wording differences. Follow it in this order, because pairing before enabling avoids the most common failure where the toggle won't stick.
1: Pair your phone as a Bluetooth device. Go to Settings > Bluetooth & devices > Devices (Windows 11) or Settings > Devices > Bluetooth & other devices (Windows 10), turn Bluetooth on, choose "Add device" or "Add Bluetooth or other device," pick Bluetooth, and select your phone from the list. Confirm the matching PIN on both screens. 2: Open Settings > Accounts > Sign-in options. 3: Scroll to the "Dynamic lock" section, which sits below the sign-in requirements area. 4: Check the box labeled "Allow Windows to lock your device automatically when you're away." 5: Lock the screen once with Windows+L and sign back in, then walk out of range with your phone and watch for the lock. If nothing happens within about five minutes, jump to the troubleshooting section below.
If the checkbox is greyed out, your PC's Bluetooth adapter likely lacks the required capability or is disabled in Device Manager. Check Device Manager under Bluetooth for an adapter with a working driver. If the box appears but the setting reverts to unchecked after a restart, re-pair the phone; a stale pairing is the most frequent cause.
One small panel under that checkbox lists your paired phones. Windows only watches devices shown there. If you own two phones and only one appears, click the entry and confirm which device Windows treats as your presence sensor before relying on the feature.
Turn It On Through the Registry When the Checkbox Won't Cooperate
Group Policy and registry edits give administrators a scriptable route, and they also fix the edge case where the Settings checkbox won't persist. This is the path IT teams use to roll the setting out across machines. The Dynamic Lock setting lives in the registry under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Winlogon with the value name EnableGoodbye.
Open Registry Editor with administrator rights, navigate to that key, and create a DWORD value named EnableGoodbye with a value of 1 to turn the feature on or 0 to turn it off. Sign out and back in for the change to apply, since Winlogon reads the value at session start. A missing value behaves like 0, meaning the feature is off by default.
If your organization manages Windows through Group Policy, check whether a policy blocks automatic locking features before you edit anything. Microsoft's documentation lists Dynamic Lock alongside other sign-in options that administrators can restrict, and a managed machine can silently reapply policy and discard manual registry changes at the next refresh cycle. Confirm with whoever administers the machine.
Registry edits carry risk beyond this one setting. Back up the key before changing it by right-clicking EnableGoodbye and choosing Export, or create a system restore point first. A mistyped value name does nothing, but a deleted Winlogon key can break sign-in behavior in ways that take longer to fix than the feature saves.
Bluetooth Range, Battery, and Delay: What Sets the Real Timing
The lock delay isn't a fixed number, and that surprises people. Windows watches the Bluetooth connection, and the time between your phone leaving and the screen locking depends on how quickly the link degrades, how aggressively Windows checks, and whether the phone stays awake. Bluetooth Classic connections typically hold to about 30 feet (10 meters) in open air, but walls, desks, and bodies cut that sharply. Leave your phone on a desk across the office and the link may not drop at all.
Phone battery behavior changes the calculus more than range does. Both iOS and Android throttle background radios to save power, and a phone that sleeps deeply can drop the Bluetooth link while sitting beside you. The result: Windows locks while you're at the keyboard. Users report this most often with iPhones and with Android battery-optimization settings set to aggressive. If Windows locks on you twice in a day, battery optimization on the phone is the first suspect, not the PC.
Distance alone doesn't determine the trigger either. Bluetooth signal strength varies with the orientation of the phone, what's in the room, and even the density of the case you carry. That's why timing varies so much between one desk and another, and why two people running identical setups get different results.
There is no official latency figure from Microsoft. The company's support documentation describes the behavior as "after a short delay" without specifying it. Treat the five-minute ceiling as an observed maximum from user reports, and test your own setup before you count on any particular timing.
Compare Dynamic Lock With Sleep, Screen Saver, and Intune Options
Several Windows mechanisms can lock or secure a machine, and they don't overlap much. Here's how they line up on the dimensions that matter.
| Method | Signed-in editions | What triggers it | Typical delay | Requires extra hardware | Works when phone is off |
|---|---|---|---|---|---|
| Dynamic Lock | Windows 10 1803+ and all Windows 11 editions | Bluetooth link drop | 30 seconds to 5 minutes | Bluetooth adapter plus paired phone | No |
| Screen saver lock | Every supported edition | Inactivity timer | Set down to 1 minute | None | Yes |
| Sleep timeout lock | Every supported edition | Inactivity timer | Set to 1 minute or longer | None | Yes |
| Windows Hello proximity (Intune-managed) | Enterprise configurations | Nearby companion device | Configured by policy | Supported companion device | No |
The comparison makes the choice clearer than any single feature description can. Dynamic Lock is the only option that reacts to you physically leaving. Screen saver and sleep timeouts react to you not touching anything, which is why setting a one-minute screen saver with "On resume, display logon screen" is the better choice for a shared office. Combine them if you want both layers: a short screen saver for idle scenarios and Dynamic Lock for walk-aways.
The Intune route is worth naming for completeness because enterprise buyers often ask about it. Microsoft documents companion-device dynamic locking as a configuration-profile setting for managed endpoints, and it works with supported companion devices rather than a personal phone. If your organization has access to Intune and a supported device, that path gives you policy-level control that the consumer checkbox doesn't.
Pairing Your Phone Properly and Confirming the Device Showed Up
Pairing is the step where the feature most often dies quietly. Windows will only watch a device that appears in both the Bluetooth list and the Dynamic lock panel, and a pairing that succeeded for file transfer doesn't always register as a presence device. Check both places after pairing: Settings > Bluetooth & devices > Devices, and the small device list under the Dynamic lock checkbox in Sign-in options.
The steps depend on phone platform. On Android, pull down the quick settings shade, long-press Bluetooth, and make sure the phone is discoverable during the pairing. On iPhone, go to Settings > Bluetooth and keep that screen open until pairing finishes; iOS does not broadcast discoverability the same way Android does, and pairing can time out if you leave Settings.
Once paired, remove the phone from Windows' device list and re-add it if the Dynamic lock panel doesn't show it. A stale pairing often looks fine in the Bluetooth list while failing to register with Winlogon. This one re-pair has fixed more reports than any other intervention.
Name your device clearly before pairing. If you own multiple phones, a generic "iPhone" or "Galaxy" entry in the Dynamic lock list makes it impossible to know which device Windows is watching. Rename the phone on the phone side first, then pair.
Common Failures: Grey Checkbox, No Lock, and Rapid Re-Locking
Three failures account for nearly every complaint about this feature. The first is the greyed-out checkbox, which means Windows doesn't see a Bluetooth radio it can use. Check Device Manager for a Bluetooth adapter with no warning icon, and confirm Bluetooth is on in Settings before returning to Sign-in options. A disabled adapter in Device Manager explains most cases.
The second is nothing happening when you leave. Start by testing with the phone in hand and the PC's Bluetooth on. Walk outside the room and wait five minutes. If the screen never locks, open the Dynamic lock panel and confirm the phone is listed. If it is listed and still fails, re-pair the device, because the pairing has likely gone stale in Winlogon's view.
The third is the annoyingly common one where Windows locks while you're still sitting there. Check the phone's battery optimization settings first, then the phone's Bluetooth sleep policy. Some Android manufacturers enable aggressive radio sleeping by default, and the fix is to exempt Bluetooth from optimization or keep the phone awake during work hours.
When the phone is in your pocket or bag rather than on the desk, expect different behavior. Body proximity changes signal strength, and pockets dampen Bluetooth more than you'd think. A phone in a bag at your feet may register as farther away than a phone on the far corner of the desk, and your lock timing will shift accordingly.
Under the Hood: How Winlogon Reads the Bluetooth Link
The mechanism is worth a paragraph because the name gives away the plumbing. The registry value EnableGoodbye tells Winlogon, the Windows component that handles sign-in and session security, to monitor a Bluetooth device's presence. When the monitored device drops out of range, Winlogon issues a lock. The name is a developer's nod to saying goodbye to your desk, and that's the whole system.
There is no database of your location and no cloud service involved. The check happens locally, over the Bluetooth radio in your PC, against the device pairing record on the machine. That's why the feature works offline and why it fails when the radio is disabled.
Because Winlogon owns the setting, it reads the value at session start. Toggling the checkbox in Settings writes the same registry value, which is why the registry route and the Settings route give identical results. Neither one goes through a background agent or a scheduled task, and there's no service to restart when troubleshooting.
One practical consequence: the lock behavior only applies while you're signed in. On the lock screen, the feature is inactive, so a machine left at the lock screen stays at the lock screen. That's expected, and it's why you can't use Dynamic Lock as a phone-based unlock.
Combine It With Screen Saver Lock for a Complete Coverage Strategy
Dynamic Lock leaves a gap: if your phone stays with you but you keep working, it does nothing, and if your phone drops its Bluetooth connection due to battery optimization, you get a lock you didn't want. Pair it with an inactivity-based lock and you cover both the walk-away and the idle-while-present cases. The cost is a second timer to configure, but both settings live in the same place.
Configure the screen saver first. Go to Settings > Personalization > Lock screen > Screen saver settings, pick a screen saver or Blank, set the wait to 60 seconds or 5 minutes depending on your environment, and check "On resume, display logon screen." That second checkbox is the one that actually locks the session; without it, the screen saver is decoration.
Then enable Dynamic Lock on top. The screen saver handles the case where you sit at the desk reading a document without touching anything for long enough to hit the timeout. Dynamic Lock handles the case where you pick up your phone and walk out the door, which the screen saver wouldn't catch for the full timeout period.
On shared or semi-public desks, drop the screen saver wait to 60 seconds and keep Dynamic Lock enabled. The two settings cost a couple of minutes to configure and cover nearly every way a machine gets left exposed. If you travel with a laptop, the standby lock on lid close does the same job when you shut it.
This is about coverage, and no single setting gives you that. Microsoft's own sign-in options documentation treats Dynamic Lock as one choice among several, not a replacement for inactivity locking. The combination is what a security-minded reviewer or IT admin would recommend, and it's cheap to set up.
FAQ
Does Dynamic Lock work with an iPhone?
Yes, and the pairing works the same way as Android: pair the iPhone as a Bluetooth device in Windows, then confirm it appears under the Dynamic lock device list. The caveat is that iPhones throttle background Bluetooth more aggressively than most Android phones when locked, and users report Windows locking while the phone sits nearby. If that happens, test with the phone unlocked and the screen on to confirm the pairing works before blaming the feature.
How long after I walk away does Windows lock?
Microsoft does not publish a latency figure, and user reports place the lock between roughly 30 seconds and 5 minutes, with most cases landing in the one- to three-minute range. The delay depends on the Bluetooth link dropping, not on a Windows timer, so it varies with distance, obstructions, and the phone's sleep behavior. Test your setup once before you rely on the feature for a security requirement.
Why is the Dynamic lock checkbox greyed out?
A grey checkbox means Windows doesn't see a usable Bluetooth radio, which usually means the adapter is disabled in Device Manager or the driver isn't functioning. Check Device Manager under Bluetooth for a warning icon, enable the adapter if it's disabled, and confirm Bluetooth is switched on in Settings. If the adapter is missing entirely, the PC may not have Bluetooth hardware at all.
Can Dynamic Lock work without Bluetooth on the PC?
No. The feature requires a working Bluetooth adapter inside the PC and a paired phone; there is no Wi-Fi-based or location-based alternative in the Windows implementation. If your desktop lacks Bluetooth, add a USB Bluetooth dongle and confirm Windows installs a driver for it before enabling the feature. Laptops almost always have one built in.
Does Dynamic Lock sign me out or just lock the screen?
It locks the screen session, identical to pressing Windows+L. Open applications and documents stay open, and signing back in with your password or PIN restores everything as it was. The feature never signs you out, shuts down the PC, or closes files, so it's a physical-presence barrier rather than a session-ending action.
What happens if my phone dies while I'm at the PC?
Windows locks the screen once the Bluetooth link drops, which will happen when the phone powers off or its radio sleeps. Users with battery-optimization settings on aggressive report mid-session locks, and the fix is to exempt Bluetooth from battery optimization on the phone or keep the phone charging when you're working for long stretches. If the phone dying is a routine event, a screen saver lock is the more predictable setting.
Can I use a tablet or smartwatch instead of a phone?
Windows watches a paired Bluetooth device, and in principle that can be any device that pairs and stays connected, including a tablet or a smartwatch that maintains a Bluetooth link. The support documentation describes phones, and reports with watches are inconsistent because watch battery management drops the link often. Test a tablet or watch the same way you'd test a phone, and don't assume it will work just because it pairs.
Does the feature survive Windows updates and restarts?
The setting persists across restarts because it's stored in the registry under Winlogon. Feature updates occasionally reset sign-in option toggles, and some users report the checkbox reverting after major upgrades, in which case re-checking it and re-pairing the phone restores it. Registry-edited values survive updates as long as the Winlogon key isn't reset by a major build change; confirm the checkbox state after each large update if the feature matters to you.
The whole feature costs nothing, needs no extra software, and depends entirely on one thing: a Bluetooth link that stays honest. Test it before you trust it, pair the phone carefully, and back it with a screen saver lock. Those three actions cover the walk-away case and the idle case that no proximity feature reaches on its own.