TechBuzzPro

Turn Automatic Lock On or Off in Windows 11

· 6 min read · Windows & PC

In this article
  1. What You’ll Need
  2. Step‑By‑Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can turn the automatic lock feature on or off in Windows 11 by adjusting the screen timeout and sign‑in requirements in Settings.

What You’ll Need

  • A Windows 11 PC (any edition)
  • An account with administrator privileges (or the ability to change system settings)

Step‑By‑Step

  1. Press Win + I to open the Settings app.
  2. In the left navigation pane select System. The System page opens by default.
  3. Click Power & battery. (On some builds the label may appear as Power.)
  4. Locate the Screen and sleep section. You will see four dropdowns:
    • On battery power, turn off my screen after
    • When plugged in, turn off my screen after
    • On battery power, put my device to sleep after
    • When plugged in, put my device to sleep after
    To stop the PC from automatically locking, set the "turn off my screen" options to Never (or to a longer interval you prefer). Setting the "sleep" options to Never will also prevent the lock that occurs when the device wakes from sleep.
  5. Return to the System page and select Sign‑in options (the label may be Login options on some regional builds).
  6. Scroll to the Require sign‑in setting. Choose one of the following:
    • When PC wakes from sleep – this enables the lock each time the device resumes.
    • Never – this disables the lock after sleep, effectively turning off automatic locking.
    If you only want the lock after a period of inactivity while the screen is still on, keep this set to When PC wakes from sleep and rely on the screen timeout you configured in the previous step.
  7. Close Settings. The changes take effect immediately; you can test them by letting the PC sit idle or by putting it to sleep (Win+X → Shut down or sign‑out → Sleep).

Common Mistakes

  • Changing only the screen timeout. If you set the screen to turn off after 5 minutes but leave "Require sign‑in" set to "When PC wakes from sleep", Windows will still lock when the device wakes, which many users interpret as the automatic lock still being active.
  • Using the screen‑saver settings instead of Power settings. The classic screen‑saver dialog (Control Panel → Appearance and Personalisation → Change screen saver) only matters when a screen saver is enabled and set to "On resume, display logon screen". Most modern Windows 11 installations have the screen saver disabled, so adjusting it has no effect on automatic lock.
  • Overlooking corporate or family‑group policies. On a work‑managed device, an administrator can enforce a mandatory password on wake‑up via Group Policy. In that case the UI toggle will be greyed out, and the setting cannot be changed locally.
  • Setting "Never" for sleep but leaving the screen timeout short. The screen may turn off, and Windows can still require a sign‑in when you click the mouse or press a key, giving the impression that the lock is still active.

Tips

  • Use Dynamic Lock. If you keep a paired Bluetooth phone nearby, enable Dynamic Lock (Settings → Accounts → Sign‑in options → Dynamic lock). Windows will automatically lock when the phone is out of range, providing security without relying on timers.
  • Set different timers for battery vs. plugged‑in. It is often useful to keep a longer timeout when the PC is on AC power and a shorter one on battery to conserve energy while still preventing accidental lock.
  • Create a custom shortcut. You can create a desktop shortcut that runs rundll32.exe user32.dll,LockWorkStation to manually lock the PC instantly when you need it, regardless of the automatic settings.
  • Group Policy for multiple machines. In a domain environment, the "Interactive logon: Require Windows Hello for Business or a smart card" policy can enforce a lock after a set idle time for all computers at once.
  • Check for third‑party power‑management tools. Some laptop manufacturers install utilities (e.g., Dell Power Manager, Lenovo Vantage) that override Windows’ native power settings. If the automatic lock does not behave as expected, verify those tools’ own screen‑off and sleep options.

Troubleshooting

If the PC still locks after you have followed the steps above, try the following checks in order.

  1. Restart the computer. A simple reboot clears any cached power‑policy changes.
  2. Confirm the sign‑in option is not greyed out. Open Settings → Accounts → Sign‑in options and verify that "Require sign‑in" is selectable. If it is disabled, a corporate policy or a family‑group setting is enforcing a lock.
  3. Disable Dynamic Lock temporarily. Dynamic Lock can lock the device even when the screen timeout is set to "Never". Turn it off in the same Sign‑in options page and test again.
  4. Check the screen‑saver settings. Open the classic screen‑saver dialog (right‑click the desktop, choose Personalise, then Lock screen → Screen saver settings) and ensure the screen saver is set to None or that "On resume, display logon screen" is unchecked.
  5. Look for manufacturer utilities. Open any pre‑installed power‑management app and verify that its "Lock on suspend" or "Password on wake" options are disabled.
  6. Run the Power Troubleshooter. Settings → System → Troubleshoot → Other troubleshooters → Power. Let Windows detect and fix any mis‑configured power settings.
  7. Update Windows. An outdated build can contain bugs that ignore the sign‑in setting. Go to Settings → Windows Update and install any pending updates.
  8. Reset Power Settings to default. Open an elevated Command Prompt and run powercfg -restoredefaultschemes. This restores the default power plan, after which you can re‑apply your preferred timeout values.

If none of the above resolves the issue, consider contacting Microsoft Support or your organization’s IT department, as the device may be subject to a mandatory security policy that cannot be overridden locally.

Frequently Asked Questions

How can I set a specific idle time before Windows locks?

Adjust the "turn off my screen after" dropdowns in Settings → System → Power & battery to the desired minutes, then keep "Require sign‑in" set to "When PC wakes from sleep". The lock will trigger when the screen turns back on after the idle period.

Does changing the screen timeout also change the lock timer?

No. Screen timeout only turns the display off. The lock is controlled separately by the "Require sign‑in" option. You can have a short screen timeout but keep the lock disabled, or vice‑versa.

Can I have different lock behaviours for battery and plugged‑in modes?

Yes. Set different values for the two "turn off my screen after" and "put my device to sleep after" dropdowns. You can also keep "Require sign‑in" as "When PC wakes from sleep" for both modes, which will lock only after the device actually sleeps.

Will disabling automatic lock affect Remote Desktop sessions?

Remote Desktop respects the lock state of the host PC. If you disable the lock, a remote session will stay active unless the remote user manually locks the machine or the session times out due to server‑side policies.

Is there a quick keyboard shortcut to toggle the lock on and off?

Windows does not provide a built‑in shortcut to toggle the setting itself. However, you can lock the PC instantly with Win + L. To change the automatic lock setting you must use the Settings UI described above.