How to prevent Windows from locking automatically

Both Windows 10 and 11 automatically lock the screen after a period of inactivity to protect user data and prevent unauthorized access. However, if you want to keep your PC accessible without constantly logging in, there are ways to disable the auto-lock feature in Windows.

1. Modify login options

Disabling the Windows sign-in requirement is an effective way to prevent Windows from locking itself when idle. You'll also want to disable Dynamic Lock, which automatically locks your PC when a connected Bluetooth device , such as a smartphone, is out of range. Here's how to do both:

  • Press Win + I to open the Settings app and go to Accounts > Sign-in options .
  • In the Additional settings section , select Never from the drop-down menu.
  • In the same menu, disable Dynamic Lock by unchecking the Allow Windows to automatically lock your device when you're away option .
How to prevent Windows from locking automatically
Sign-in options in Windows 11 Settings app

2. Turn off Sleep mode and screensavers

By default, Windows automatically locks when it goes to Sleep. To prevent this, you can prevent Windows from automatically going to Sleep when it is inactive. This way, it won't lock itself.

To turn off Sleep mode in Windows, follow these steps:

  • Open the Settings app and go to System > Power & battery .
  • Click Screen and sleep to expand.
  • Click the drop-down menu next to "On battery power, put my device to sleep after" and "When plug in, put my device to sleep after" and select Never .
How to prevent Windows from locking automatically
Set Sleep Mode in Windows 11

You should also turn off screensavers, as they can sometimes cause Windows to lock automatically. Here's how to do it:

  • Press Win + S to open Windows Search.
  • Type Turn screen saver on or off and select the first result that appears.
  • In the Screen Saver Settings window, set Screen saver to None and uncheck On resume, display the logon screen .
How to prevent Windows from locking automatically
Install screensaver in Windows

3. Edit Windows Registry

Another way to prevent Windows from locking itself is to edit some registry files. However, it is important to understand that editing the Windows Registry can be dangerous, so only use this method if other methods do not work.

Even if you are familiar with editing registry files, make sure you back up all registry files or create a restore point first, just in case anything goes wrong.

  • Click the search icon on the taskbar, type registry editor and select Run as administrator .
  • In the Registry Editor window, navigate to HKEY_LOCAL_MACHINE > Software > Policies > Microsoft from the left pane.
  • Right-click Windows and select New > Key . Name the new key "DisableAutoLock".
  • Right-click on the newly created key, go to New and select DWORD (32-bit) Value . Rename this new DWORD to "NoLockScreen".
  • Open NoLockScreen and set the Value data to 1 . Click OK and restart your computer to apply the changes.
How to prevent Windows from locking automatically
Modify DWORD in Registry

Unlocking your PC is incredibly convenient if it supports Windows Hello , whether it's through facial recognition or a fingerprint scan. However, if your computer lacks these features, you can prevent your Windows 10 or 11 computer from locking itself using any of the methods above.

Good luck!

See more articles below:

Leave a Comment

How to Use Windows 11 Quick Assist for Help

How to Use Windows 11 Quick Assist for Help

Discover how to use Windows 11 Quick Assist for seamless remote support. Learn step-by-step setup, troubleshooting, and tips to help friends or family with tech issues instantly.

Troubleshooting Windows 11 Dual Monitor Lag Fixes

Troubleshooting Windows 11 Dual Monitor Lag Fixes

Struggling with dual monitor lag on Windows 11? Discover proven troubleshooting fixes to eliminate stuttering, delays, and performance issues for seamless multi-monitor setups. Step-by-step guide inside.

How to Fix Windows 11 Startup Settings Blank Error

How to Fix Windows 11 Startup Settings Blank Error

Struggling with the frustrating Windows 11 "Startup Settings" blank error? Discover proven, step-by-step fixes to restore your boot options quickly and get your PC running smoothly again. No tech expertise needed!

How to Activate Windows 11 Enterprise with KMS

How to Activate Windows 11 Enterprise with KMS

Discover how to activate Windows 11 Enterprise using KMS effortlessly. This comprehensive guide covers everything from requirements to troubleshooting, ensuring seamless activation for your business needs.

How to Fix Windows 11 Kmode Exception Not Handled

How to Fix Windows 11 Kmode Exception Not Handled

Struggling with the dreaded KMODE EXCEPTION NOT HANDLED error on Windows 11? Discover proven, step-by-step fixes to resolve this blue screen nightmare quickly and get your PC running smoothly again. No tech expertise needed!

Troubleshooting Windows 11 Motherboard Driver Error Fix

Troubleshooting Windows 11 Motherboard Driver Error Fix

Struggling with Windows 11 "Motherboard" Driver Error? Discover proven troubleshooting steps to fix it fast and get your PC running smoothly again. Easy, step-by-step guide for beginners.

How to Fix Windows 11 Ping Spikes Over Wi-Fi Fixes

How to Fix Windows 11 Ping Spikes Over Wi-Fi Fixes

Struggling with ping spikes on Windows 11 over Wi-Fi? Discover proven fixes to stabilize your connection, reduce lag, and enjoy smooth gaming or streaming. Step-by-step solutions for instant results.

How to Recover Deleted Photos in Windows 11

How to Recover Deleted Photos in Windows 11

Accidentally deleted precious photos? Discover proven methods to recover deleted photos in Windows 11 effortlessly. Step-by-step guides, tools, and tips to restore your images safely.

How to Use Windows 11 Terminal Instead of CMD

How to Use Windows 11 Terminal Instead of CMD

Discover how to use Windows 11 Terminal instead of CMD for a modern, efficient command-line interface. Learn installation, setup, and tips to boost your productivity with tabs, themes, and more.

How to Activate Windows 11 Pro Without a Product Key

How to Activate Windows 11 Pro Without a Product Key

Discover safe, legitimate ways to activate Windows 11 Pro without a product key. Learn step-by-step methods using built-in tools and official Microsoft options to get your OS up and running smoothly. No risks, no hassle – just pure productivity.

Fixing Battery Drain During Hibernate in Windows 11

Fixing Battery Drain During Hibernate in Windows 11

Struggling with battery drain during hibernate in Windows 11? Discover expert fixes to preserve your laptop

How to Fix Windows 11 Input Lag for Valorant and CS2

How to Fix Windows 11 Input Lag for Valorant and CS2

Struggling with input lag in Windows 11 while playing Valorant or CS2? Discover proven, step-by-step fixes to restore smooth gameplay and boost your performance. Say goodbye to delays and hello to precision shots.

How to Fix Out of Memory Error in Microsoft Edge

How to Fix Out of Memory Error in Microsoft Edge

Struggling with the frustrating "Out of Memory" error in Microsoft Edge? Discover proven, step-by-step fixes to reclaim your browsing speed and stability. Updated with the latest tips for optimal performance.

How to Fix Windows 11 Google Drive Not Launching Fix

How to Fix Windows 11 Google Drive Not Launching Fix

Struggling with Google Drive not launching on Windows 11? Discover proven fixes to resolve the issue fast, from restarts to advanced troubleshooting. Get your cloud storage working seamlessly today!

How to Disable Gamebar Presence Writer for Performance

How to Disable Gamebar Presence Writer for Performance

Discover how to disable Game Bar Presence Writer on Windows to optimize gaming performance. Step-by-step guide to reduce lag, boost FPS, and enhance your setup for smoother gameplay. Essential tips for gamers in 2026.