How to Configure Dynamic Lock and Bluetooth Proximity in Windows 11 Using PowerShell

Workstation security policies frequently mandate that users lock their screens whenever stepping away from their desks. However, in busy corporate offices or shared workspaces, employees often forget to press Windows + L, leaving open email inboxes, administrative consoles, and sensitive spreadsheets vulnerable to unauthorized physical access. Windows 11 includes Dynamic Lock—a security feature that pairs with a user’s Bluetooth-connected smartphone or wearable device to automatically lock the workstation when the signal drops below a safe proximity threshold. Configuring Dynamic Lock via PowerShell allows administrators to audit and enforce physical access security across managed endpoints.

Understanding How Dynamic Lock Operates

Dynamic Lock leverages the Received Signal Strength Indicator (RSSI) of a paired Bluetooth device (such as an iPhone, Android smartphone, or smart watch). When Dynamic Lock is enabled:

  • Windows continuously samples the Bluetooth RSSI connection to the designated device.
  • When the user walks away from their workstation carrying the device, the Bluetooth signal attenuates past the acceptable threshold (typically -10 dBm below baseline).
  • If the device remains out of range for approximately 30 seconds, Windows automatically locks the desktop session.
  • Unlike standard inactivity timers that require 5 to 15 minutes of idle time, Dynamic Lock secures the computer shortly after physical departure.

Prerequisites and Hardware Requirements

  • Windows 11 Pro, Enterprise, or Education edition.
  • A built-in Bluetooth adapter or USB Bluetooth dongle (Bluetooth 4.0 or newer recommended).
  • A personal smartphone or wearable paired with the Windows 11 workstation.
  • An elevated PowerShell console running as local Administrator.

Pairing a Bluetooth Device with Windows 11

Before configuring Dynamic Lock policies, the mobile device must be actively paired with the workstation:

  1. Ensure Bluetooth is enabled on your smartphone or smartwatch and set to discoverable mode.
  2. On Windows 11, open Settings (Windows + I) and navigate to Bluetooth & devices.
  3. Click Add device > Bluetooth.
  4. Select your smartphone from the list, confirm the PIN code on both screens, and complete pairing.

Verifying Bluetooth Pairing Status via PowerShell

To confirm that your paired Bluetooth device is recognized by the operating system, open PowerShell and query connected PnP devices:

Get-PnpDevice -Class "Bluetooth" | Where-Object { $_.Status -eq "OK" } | Select-Object FriendlyName, InstanceId | Format-Table -AutoSize

Configuring Dynamic Lock via PowerShell Registry Settings

Dynamic Lock settings are maintained under the Windows Logon registry key. You can enable Dynamic Lock for the current user profile or script it across workstations:

# Registry path for Windows Logon policy
$LogonPath = "HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Winlogon"

# Enable Dynamic Lock (EnableGoodbye = 1)
Set-ItemProperty -Path $LogonPath -Name "EnableGoodbye" -Value 1 -Type DWord

Write-Host "Dynamic Lock enabled successfully." -ForegroundColor Green

Configuring Machine-Wide Dynamic Lock Enforcement

For enterprise IT administrators enforcing physical security baselines across domain-joined machines:

# Machine-wide policy path
$PolicyPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Control Panel\Desktop"

if (-not (Test-Path $PolicyPath)) {
    New-Item -Path $PolicyPath -Force | Out-Null
}

# Enforce Dynamic Lock policy
Set-ItemProperty -Path $PolicyPath -Name "DynamicLock" -Value 1 -Type DWord

Auditing Dynamic Lock Status in Settings

To verify that Windows 11 recognizes the paired Bluetooth device as the active Dynamic Lock anchor:

  1. Navigate to Settings > Accounts > Sign-in options.
  2. Scroll down to the Dynamic lock section.
  3. Confirm that the checkbox Allow Windows to automatically lock your device when you’re away is checked.
  4. Verify that the status message displays: “Paired to [Your Device Name]”.

Operational Considerations and Best Practices

  • Combine with Screen Timeout: Dynamic Lock acts as a secondary defense. Always maintain a standard 5-minute screen saver or display sleep timeout as a safety net in case the user leaves their smartphone on the desk.
  • Bluetooth Power Saving: Ensure the workstation’s Bluetooth adapter does not have aggressive power saving enabled in Device Manager, which can cause false-positive disconnects.
  • Unlocking Behaviour: For security reasons, Dynamic Lock does not automatically unlock your PC when returning to your desk; the user must re-enter their Windows Hello PIN, facial recognition, or password.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.