Home
» PC Tips
»
How to prevent Windows from locking automatically
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:
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 .
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 .
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 .
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.
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.