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:

Sign up and earn $1000 a day ⋙

Leave a Comment

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows

Instructions to fix the error “not recognized as an internal or external command” when using CMD in Windows

One day, you turn on your computer, go to CMD and get the error is not recognized as an internal or external command, operable program or batch file. What should you do?

Fix Copy Paste command not working on Word, Excel (2007, 2010)

Fix Copy Paste command not working on Word, Excel (2007, 2010)

There are many reasons why the Copy Paste command does not work on a Windows computer, such as your computer is attacked by a virus, the clipboard does not work, and therefore the copy command (Ctrl + C) and the paste command (Ctrl + V) do not work. So how to fix this error, please refer to the article below of WebTech360.

Fix function keys not working in Windows 10

Fix function keys not working in Windows 10

The Fn function keys give you a quicker and easier way to control some hardware features.

How to remove yellow triangle warning on Windows C drive

How to remove yellow triangle warning on Windows C drive

This out-of-place indicator usually means that BitLocker encryption has been disabled, an update requires a reboot, or a firmware upgrade is pending.

Instructions to change Google DNS 8.8.8.8 and 8.8.4.4

Instructions to change Google DNS 8.8.8.8 and 8.8.4.4

Google DNS 8.8.8.8 8.8.4.4 is one of the DNS chosen by many users, especially to increase network access speed or access blocked Facebook.

How to use TickTick desktop widget instead of to-do apps

How to use TickTick desktop widget instead of to-do apps

Once you put your to-do lists on Windows 11's widget panel, they start appearing in front of you every morning—and suddenly, it's not so easy to ignore them anymore.

How to Open Windows Security in Windows 10

How to Open Windows Security in Windows 10

Windows Security is turned on and proactively protects your device by scanning for malware, viruses, and other security threats.

How to Free Up 48GB on Windows 11 PC Without Losing Any Important Data

How to Free Up 48GB on Windows 11 PC Without Losing Any Important Data

Between temporary files, outdated backups, duplicate data, and unused apps, there are plenty of ways to reclaim space without touching your personal files.

How to view computer configuration easily and quickly

How to view computer configuration easily and quickly

There are many ways for you to view your computer configuration, view your laptop configuration.

Check MD5 and SHA1 to check file integrity

Check MD5 and SHA1 to check file integrity

We will use a specialized program to check the MD5 and SHA1 codes of the file to see if there are any errors in the file. And the MD5 check software HashCalc is one of the quite useful tools to check MD5 and SHA1 codes.

What is the AppData folder in Windows? When should I use it?

What is the AppData folder in Windows? When should I use it?

Have you ever stumbled upon the mysterious AppData folder while rummaging through files on your computer or trying to get a Minecraft mod to work?

How to show hidden files and folders on Windows 10/8/7

How to show hidden files and folders on Windows 10/8/7

To view hidden files, hidden folders, hidden system files on Windows is quite simple. Readers can see detailed instructions on showing hidden files and viewing file extensions in this article.

Fix Windows + Shift + S shortcut not working on Windows 10

Fix Windows + Shift + S shortcut not working on Windows 10

The Win + Shift + S shortcut in Windows 10 allows users to capture a portion or the entire screen and copy it to the clipboard. In most cases, this feature works as expected, but sometimes it can become unresponsive.

12 ways to quickly access Settings on Windows 10

12 ways to quickly access Settings on Windows 10

On Windows 10, Microsoft integrated a new application called Settings. This Settings application is a Metro application created by Microsoft to replace the classic Control Panel application.

List of useful Alt shortcuts to insert special characters in Windows

List of useful Alt shortcuts to insert special characters in Windows

Simply hold down the Alt key and type the corresponding number to insert a special character. If you have memorized the code of your favorite special character, you can insert it in less than a second.